Commit 0593f65f by ziyue

完善代码

parent e88281b2
...@@ -463,10 +463,10 @@ void RtmpSession::onRtmpChunk(RtmpPacket::Ptr packet) { ...@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论