修复firefox上webrtc echo测试无法通过的问题: #1493

This commit is contained in:
xiongziliang 2022-03-26 22:11:50 +08:00
parent 822a401f30
commit b0af3334c1

View File

@ -24,6 +24,8 @@ WebRtcEchoTest::WebRtcEchoTest(const EventPoller::Ptr &poller) : WebRtcTransport
void WebRtcEchoTest::onRtcConfigure(RtcConfigure &configure) const {
WebRtcTransportImp::onRtcConfigure(configure);
configure.audio.direction = configure.video.direction = RtpDirection::sendrecv;
configure.audio.extmap.emplace(RtpExtType::sdes_mid, RtpDirection::sendrecv);
configure.video.extmap.emplace(RtpExtType::sdes_mid, RtpDirection::sendrecv);
}
void WebRtcEchoTest::onRtp(const char *buf, size_t len, uint64_t stamp_ms) {