整理MediaSource协议类型

This commit is contained in:
夏楚
2023-12-02 16:31:40 +08:00
committed by GitHub
parent 10c2197e76
commit 76aebd74c6
6 changed files with 20 additions and 10 deletions

View File

@@ -1258,7 +1258,7 @@ void play_plugin(Session &sender, const WebRtcArgs &args, const WebRtcPluginMana
return;
}
// 还原成rtc目的是为了hook时识别哪种播放协议
info.schema = RTC_SCHEMA;
info.schema = "rtc";
auto rtc = WebRtcPlayer::create(EventPollerPool::Instance().getPoller(), src, info, preferred_tcp);
cb(*rtc);
});