mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
修复zlm推流FMS,修正zlm的RTMP协议 (#1140)
* 修复zlm推流FMS,修正zlm的RTMP协议 Co-authored-by: 夏楚 <771730766@qq.com>
This commit is contained in:
@@ -165,7 +165,13 @@ void RtmpProtocol::sendInvoke(const string &cmd, const AMFValue &val) {
|
||||
}
|
||||
|
||||
void RtmpProtocol::sendRequest(int cmd, const string& str) {
|
||||
sendRtmp(cmd, _stream_index, str, 0, CHUNK_SERVER_REQUEST);
|
||||
if (cmd <= MSG_SET_PEER_BW) {
|
||||
// 若 cmd 属于 Protocol Control Messages ,则应使用 chunk id 2 发送
|
||||
sendRtmp(cmd, _stream_index, str, 0, CHUNK_NETWORK);
|
||||
} else {
|
||||
// 否则使用 chunk id 发送(任意值3-128,参见 obs 及 ffmpeg 选取 3)
|
||||
sendRtmp(cmd, _stream_index, str, 0, CHUNK_SYSTEM);
|
||||
}
|
||||
}
|
||||
|
||||
class BufferPartial : public Buffer {
|
||||
|
||||
Reference in New Issue
Block a user