博主好,
SrsSharedPtrMessage msg; data = msg.payload,
看到srs中对payload的注释:/**
* the payload of message, the SrsCommonMessage never know about the detail of payload,
* user must use SrsProtocol.decode_message to get concrete packet.
* @remark, not all message payload can be decoded to packet. for example,
* video/audio packet use raw bytes, no video/audio packet.
*/
char* payload;
初始接触rtmp,这里的payload就是指message body ?是不是写入第一个rtmp包就行,看ffmpeg封装rtmp包,应该是从rtmpproto.c: rtmp_write() 开始的,不知道怎么和这里定义的data[1]对应起来呢
srs流媒体服务器(simple rtmp server)如何支持h2652020.4.24更新:最新的srs代码已经支持hevc了,请直接阅读srs代码进行对接。 我在srs(1.0) 地址 (https://github.com/ossrs/s...