mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-11 08:30:52 +08:00
rtc推流添加媒体事件相关接口
This commit is contained in:
@@ -1137,6 +1137,7 @@ void installWebApi() {
|
||||
auto push_src = std::make_shared<RtspMediaSourceImp>(info._vhost, info._app, info._streamid);
|
||||
push_src->setProtocolTranslation(enableHls, enableMP4);
|
||||
auto rtc = WebRtcTransportImp::create(EventPollerPool::Instance().getPoller());
|
||||
push_src->setListener(rtc);
|
||||
rtc->attach(push_src, false);
|
||||
val["sdp"] = rtc->getAnswerSdp(offer_sdp);
|
||||
val["type"] = "answer";
|
||||
|
||||
Reference in New Issue
Block a user