手撕Rtmp协议细节(8)——publish推流

  ​publish 对于推流端,经过releaseStream,createStream消息之后,得到了_result消息之后,接下来客户端就可以发起publish消息。推流端使用publish消息向rtmp服务器端发布一个命名的流,发布之后,任意客户端都可以以该名称请求视频、音频和数据。我们首先来看一下publish消息的组织结构: commandName:使用string类型,表示消息类型(
相关文章
相关标签/搜索