-
Notifications
You must be signed in to change notification settings - Fork 14
Description
The sample works fine on chrome but on firefox, there are some problems
- easy fix: Firefox cannot use planB
- firefox has problems to reconnect.
Scenario: (chrome or Firefox) streams
Firefox watches: OK
Chrome watches: OK
(chrome or Firefox) disconnects and reconnects and stream again
Chrome watches OK
Firefox watches KO !
NodeJS error:
got Answer from id=rlkfCsyktr8HDBe-AAAd
setRemoteDescription for Answer ERROR: InvalidStateError: invalid RTCSessionDescription.type [type:answer, signalingState:stable]
at klass (/var/www/webtv.fr/node_modules/mediasoup/lib/errors.js:9:4)
at RTCPeerConnectionUnifiedPlan.setRemoteDescription (/var/www/webtv.fr/node_modules/mediasoup/lib/webrtc/RTCPeerConnection/RTCPeerConnectionCommon.js:396:28)
at handleAnswer (/var/www/webtv.fr/mganeko/mediasoup_sample_socketio_ssl.js:211:18)
at Socket.incoming (/var/www/webtv.fr/mganeko/mediasoup_sample_socketio_ssl.js:108:7)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Socket.onevent (/var/www/webtv.fr/node_modules/socket.io/lib/socket.js:330:8)
at Socket.onpacket (/var/www/webtv.fr/node_modules/socket.io/lib/socket.js:290:12)
at Client.ondecoded (/var/www/webtv.fr/node_modules/socket.io/lib/client.js:193:14)
at Decoder.Emitter.emit (/var/www/webtv.fr/node_modules/component-emitter/index.js:134:20)
Firefox logs:
empty ice event
---sending sdp ---
sending SDP: Object { type: "answer", sdp: "v=0 o=mozilla...THIS_IS_SDPARTA-55.…", planb: false }
ICE failed, add a STUN server and see about:webrtc for more details