media-server-client-js
media-server-client-js copied to clipboard
RTCPeerConnection.setRemoteDescription rejection on Chrome 104/Linux
MediaServerClient can't establish connection, either with or without using adapter.js
I can reproduce this using Chrome (dev) Version 104.0.5112.20 (Official Build) beta (64-bit), while the same code works in v.103 or even into a browserstack's (vm?) Windows 11 Version 104.0.5083.0 (Official Build) beta (64-bit)
Console (error):
Uncaught (in promise) DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. a=rtpmap:0 pcmu/8000 Duplicate statically assigned payload type with conflicting codec name or clock rate. at PeerConnectionClient.renegotiate (https://.../mmsc.js?r=1656413494:2663:17) at new PeerConnectionClient (https://.../mmsc.js?r=1656413494:2398:8) at MediaServerClient.createManagedPeerConnection (https://.../mmsc.js?r=1656413494:2273:10)
I've created a PR that fix this for me, but I'm not sure about possible side effects: https://github.com/medooze/media-server-client-js/pull/11
It seems that this is only needed when server uses capabilities returned from getDefaultCapabilites()