完善代码

This commit is contained in:
ziyue 2021-06-08 14:50:12 +08:00
parent e88281b2ff
commit 0593f65fcb

View File

@ -463,10 +463,10 @@ void RtmpSession::onRtmpChunk(RtmpPacket::Ptr packet) {
std::string type = dec.load<std::string>(); std::string type = dec.load<std::string>();
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;
} }
break; break;