Failed to execute 'addTransceiver' on 'RTCPeerConnection'

178 views
Skip to first unread message

Gurjinder

unread,
Oct 19, 2020, 4:36:17 AM10/19/20
to meetecho-janus
Sometimes we get the following error in janus.js.

Uncaught (in promise) DOMException: Failed to execute 'addTransceiver' on 'RTCPeerConnection': This operation is only supported in 'unified-plan'.
    at createAnswer.

Value of Janus.unifiedPlan is true; 

This is the code where we get this error:

} else {
// In theory, this is the only case where we might not have a transceiver yet
audioTransceiver = config.pc.addTransceiver("audio", { direction: "recvonly" });
Janus.log("Adding recvonly audio transceiver:", audioTransceiver);
}

Stephan Strittmatter

unread,
Oct 21, 2021, 5:43:38 AM10/21/21
to meetecho-janus
Same to me. Have you found something in this case.

Alessandro Toppi

unread,
Oct 21, 2021, 9:04:49 AM10/21/21
to meetecho-janus
check the "sdpSemantics" of the involved peer connection in webrtc-internals
Reply all
Reply to author
Forward
0 new messages