Merge branch 'master' of https://gitee.com/xia-chu/ZLMediaKit into dev

This commit is contained in:
xia-chu
2021-04-12 13:48:34 +08:00
6 changed files with 29 additions and 9 deletions

View File

@@ -303,7 +303,7 @@ Value makeMediaSourceJson(MediaSource &media){
item["originSock"] = Json::nullValue;
}
for(auto &track : media.getTracks()){
for(auto &track : media.getTracks(false)){
Value obj;
auto codec_type = track->getTrackType();
obj["codec_id"] = track->getCodecId();