完善代码

This commit is contained in:
ziyue 2021-06-08 14:50:12 +08:00
parent e88281b2ff
commit 0593f65fcb
1 changed files with 4 additions and 4 deletions

View File

@ -464,7 +464,7 @@ void RtmpSession::onRtmpChunk(RtmpPacket::Ptr packet) {
if (type == "@setDataFrame") { if (type == "@setDataFrame") {
setMetaData(dec); setMetaData(dec);
} else if (type == "onMetaData") { } else if (type == "onMetaData") {
//setMetaData(dec); //兼容某些不规范的推流器
_publisher_metadata = dec.load<AMFValue>(); _publisher_metadata = dec.load<AMFValue>();
} else { } else {
TraceP(this) << "unknown notify:" << type; TraceP(this) << "unknown notify:" << type;