Commit 03f6f4c4 by yangkun

fix publish type

parent 9217a5db
......@@ -173,9 +173,10 @@ inline void RtmpPusher::send_createStream() {
});
}
#define RTMP_STREAM_LIVE "live"
inline void RtmpPusher::send_publish() {
AMFEncoder enc;
enc << "publish" << ++_send_req_id << nullptr << _stream_id << _app;
enc << "publish" << ++_send_req_id << nullptr << _stream_id << RTMP_STREAM_LIVE;
sendRequest(MSG_CMD, enc.data());
addOnStatusCB([this](AMFValue &val) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论