Commit f29c44cc by 夏楚 Committed by GitHub

Merge pull request #974 from xyyangkun/master

fix publish type
parents 9217a5db 03f6f4c4
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论