media-server-client-js icon indicating copy to clipboard operation
media-server-client-js copied to clipboard

RTCPeerConnection.setRemoteDescription rejection on Chrome 104/Linux

Open netizen-ais opened this issue 3 years ago • 2 comments

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)

netizen-ais avatar Jun 28 '22 10:06 netizen-ais

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

netizen-ais avatar Jul 06 '22 15:07 netizen-ais

It seems that this is only needed when server uses capabilities returned from getDefaultCapabilites()

netizen-ais avatar Aug 08 '22 15:08 netizen-ais