支持是否修改rtmp时间戳配置 修改对象命名

This commit is contained in:
xiongziliang
2018-06-21 14:14:05 +08:00
parent ca885013af
commit 806cf29eac
4 changed files with 14 additions and 6 deletions

View File

@@ -71,13 +71,13 @@ public:
virtual Buffer::Ptr readData() = 0;
};
class HttpBodyString : public HttpBody{
class HttpStringBody : public HttpBody{
public:
typedef std::shared_ptr<HttpBodyString> Ptr;
HttpBodyString(const string &str){
typedef std::shared_ptr<HttpStringBody> Ptr;
HttpStringBody(const string &str){
_str = str;
}
virtual ~HttpBodyString(){}
virtual ~HttpStringBody(){}
uint64_t remainSize() override {
return _str.size();
@@ -229,7 +229,7 @@ public:
return *this;
}
void setBody(const string &body){
_body.reset(new HttpBodyString(body));
_body.reset(new HttpStringBody(body));
}
void setBody(const HttpBody::Ptr &body){
_body = body;