From 8721c5a62b5378ed273c47ff00da875c485f958d Mon Sep 17 00:00:00 2001 From: xgj Date: Tue, 8 Jun 2021 10:07:51 +0800 Subject: [PATCH] for joy4 rtmp push onMetaData compatibility --- src/Rtmp/RtmpSession.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Rtmp/RtmpSession.cpp b/src/Rtmp/RtmpSession.cpp index 7775c553..a1e0caa9 100644 --- a/src/Rtmp/RtmpSession.cpp +++ b/src/Rtmp/RtmpSession.cpp @@ -463,7 +463,10 @@ void RtmpSession::onRtmpChunk(RtmpPacket::Ptr packet) { std::string type = dec.load(); if (type == "@setDataFrame") { setMetaData(dec); - } else { + } else if(type == "onMetaData"){ + //setMetaData(dec); + _publisher_metadata = dec.load(); + }else { TraceP(this) << "unknown notify:" << type; } break;