remote stream always get failed, local stream work normally
See original GitHub issueHi, in my case, i need to join AudioBridge + VideoRoom from Janus. The below log say it’s work normally until other publisher joined into this room, then this peerconnection always get ICE FAILED.
Can u take a look, i really dont know why:
LOG socket message => {"data": {"id": 4387327487818508}, "janus": "success", "transaction": "1Tv6o8yDd8da"}
LOG iceserver [{"credential": "CMClink@123", "urls": ["turn:cmcturn1.vedax.ai:3478", "turn:cmcturn1.vedax.ai:3478?transport=tcp", "turn:cmcturn1.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn2.vedax.ai:3478", "turn:cmcturn2.vedax.ai:3478?transport=tcp", "turn:cmcturn2.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn3.vedax.ai:3478", "turn:cmcturn3.vedax.ai:3478?transport=tcp", "turn:cmcturn3.vedax.ai:3478?transport=udp"], "username": "link"}, {"url": "stun:stun.l.google.com:19302"}, {"url": "stun:stun1.l.google.com:19302"}, {"url": "stun:stun2.l.google.com:19302"}, {"url": "stun:stun3.l.google.com:19302"}, {"url": "stun:stun4.l.google.com:19302"}]
LOG iceserver [{"credential": "CMClink@123", "urls": ["turn:cmcturn1.vedax.ai:3478", "turn:cmcturn1.vedax.ai:3478?transport=tcp", "turn:cmcturn1.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn2.vedax.ai:3478", "turn:cmcturn2.vedax.ai:3478?transport=tcp", "turn:cmcturn2.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn3.vedax.ai:3478", "turn:cmcturn3.vedax.ai:3478?transport=tcp", "turn:cmcturn3.vedax.ai:3478?transport=udp"], "username": "link"}, {"url": "stun:stun.l.google.com:19302"}, {"url": "stun:stun1.l.google.com:19302"}, {"url": "stun:stun2.l.google.com:19302"}, {"url": "stun:stun3.l.google.com:19302"}, {"url": "stun:stun4.l.google.com:19302"}]
LOG socket message => {"data": {"id": 7091696702246426}, "janus": "success", "session_id": 4387327487818508, "transaction": "1haOEGuYCqYD"}
LOG socket message => {"data": {"id": 4978382489650451}, "janus": "success", "session_id": 4387327487818508, "transaction": "N7PuAdPCrNBt"}
LOG socket message => {"janus": "event", "plugindata": {"data": {"attendees": [Array], "description": "Video room 1666345920972", "id": 5602225450558893, "private_id": 1256348923, "publishers": [Array], "room": 1666345920972, "videoroom": "joined"}, "plugin": "janus.plugin.videoroom"}, "sender": 7091696702246426, "session_id": 4387327487818508, "transaction": "z2tr4daLQGCL"}
LOG joined to video room
LOG onnegotiationneeded
LOG signalingState janus.plugin.videoroom 7091696702246426 have-local-offer
LOG socket message => {"janus": "event", "plugindata": {"data": {"audiobridge": "joined", "id": 5603229811024820, "participants": [Array], "room": 1666345920972}, "plugin": "janus.plugin.audiobridge"}, "sender": 4978382489650451, "session_id": 4387327487818508, "transaction": "Mqa8yQ2b5M5W"}
LOG setOnParticipantsListener []
LOG joined to audio room 1666345920972 []
LOG iceGatheringState janus.plugin.videoroom 7091696702246426 gathering
LOG onnegotiationneeded
LOG signalingState janus.plugin.audiobridge 4978382489650451 have-local-offer
LOG audioroom setLocalDescription succses
LOG candidate event janus.plugin.videoroom 7091696702246426
LOG candidate event janus.plugin.videoroom 7091696702246426
LOG iceGatheringState janus.plugin.audiobridge 4978382489650451 gathering
LOG candidate event janus.plugin.audiobridge 4978382489650451
LOG candidate event janus.plugin.audiobridge 4978382489650451
LOG candidate event janus.plugin.videoroom 7091696702246426
LOG candidate event janus.plugin.videoroom 7091696702246426
LOG candidate event janus.plugin.audiobridge 4978382489650451
LOG candidate event janus.plugin.audiobridge 4978382489650451
LOG socket message => {"janus": "event", "jsep": {"sdp": "v=0
o=- 8296731308387028278 2 IN IP4 13.251.178.176
s=VideoRoom 1666345920972
t=0 0
a=group:BUNDLE audio video
a=ice-options:trickle
a=fingerprint:sha-256 D3:2A:77:C2:3C:7E:4D:E1:DC:EF:A2:1C:19:2A:35:BD:81:9F:99:05:B3:30:E9:96:19:89:AC:90:E0:47:44:07
a=extmap-allow-mixed
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 13.251.178.176
a=recvonly
a=mid:audio
a=rtcp-mux
a=ice-ufrag:0jQn
a=ice-pwd:zch6vZW+Q8AmobiDUMMDxX
a=ice-options:trickle
a=setup:active
a=rtpmap:111 opus/48000/2
a=fmtp:111 useinbandfec=1
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=msid:janus janusaudio
a=ssrc:874483686 cname:janus
a=candidate:1 1 udp 2015363327 13.251.178.176 34166 typ host
a=end-of-candidates
m=video 9 UDP/TLS/RTP/SAVPF 96 97
c=IN IP4 13.251.178.176
a=recvonly
a=mid:video
a=rtcp-mux
a=ice-ufrag:0jQn
a=ice-pwd:zch6vZW+Q8AmobiDUMMDxX
a=ice-options:trickle
a=setup:active
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=msid:janus janusvideo
a=ssrc:3706952781 cname:janus
a=ssrc:3464583707 cname:janus
a=candidate:1 1 udp 2015363327 13.251.178.176 34166 typ host
a=end-of-candidates
", "type": "answer"}, "plugindata": {"data": {"audio_codec": "opus", "configured": "ok", "room": 1666345920972, "streams": [Array], "video_codec": "vp8", "videoroom": "event"}, "plugin": "janus.plugin.videoroom"}, "sender": 7091696702246426, "session_id": 4387327487818508, "transaction": "sMhcI5OjWTtI"}
LOG videoroom onWebRTCUpListener
LOG signalingState janus.plugin.videoroom 7091696702246426 stable
LOG iceconnectionstate janus.plugin.videoroom 7091696702246426 checking
LOG audioroom setremote success []
LOG connectionState janus.plugin.videoroom 7091696702246426 connecting
LOG NotifyJsonStr RoomCallUserMediaChanged
LOG socket message => {"janus": "event", "jsep": {"sdp": "v=0
o=- 1666345925916833 1 IN IP4 13.251.178.176
s=AudioBridge 1666345920972
t=0 0
a=group:BUNDLE audio
a=ice-options:trickle
a=fingerprint:sha-256 D3:2A:77:C2:3C:7E:4D:E1:DC:EF:A2:1C:19:2A:35:BD:81:9F:99:05:B3:30:E9:96:19:89:AC:90:E0:47:44:07
a=extmap-allow-mixed
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 13.251.178.176
a=sendrecv
a=mid:audio
a=rtcp-mux
a=ice-ufrag:AX3R
a=ice-pwd:brdKRj8r6VbBxdZzbt8NqE
a=ice-options:trickle
a=setup:active
a=rtpmap:111 opus/48000/2
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=fmtp:111 maxplaybackrate=16000; stereo=0; sprop-stereo=0; useinbandfec=1
a=msid:janus janusaudio
a=ssrc:1710502261 cname:janus
a=candidate:1 1 udp 2015363327 13.251.178.176 58758 typ host
a=end-of-candidates
m=video 0 UDP/TLS/RTP/SAVPF 0
c=IN IP4 13.251.178.176
a=inactive
a=mid:video
", "type": "answer"}, "plugindata": {"data": {"audiobridge": "event", "result": "ok"}, "plugin": "janus.plugin.audiobridge"}, "sender": 4978382489650451, "session_id": 4387327487818508, "transaction": "qhsO8CQt1kkk"}
LOG updateMediaSource success undefined
LOG signalingState janus.plugin.audiobridge 4978382489650451 stable
LOG iceconnectionstate janus.plugin.audiobridge 4978382489650451 checking
LOG audio setOnStreamListener {"_reactTag": "7585e1d5-a8fe-4ea1-aa26-2583adc76c0d", "_tracks": [{"_constraints": [Object], "_enabled": true, "_muted": false, "_settings": [Object], "id": "janusaudio", "kind": "audio", "label": "Audio", "readyState": "live", "remote": true}], "active": true, "id": "janus"} => videoEnabled: true => isOutgoing: true
LOG audioroom isRemoteDescriptionSet succses
LOG connectionState janus.plugin.audiobridge 4978382489650451 connecting
LOG candidate event janus.plugin.videoroom 7091696702246426
LOG iceGatheringState janus.plugin.videoroom 7091696702246426 complete
LOG candidate event janus.plugin.audiobridge 4978382489650451
LOG iceGatheringState janus.plugin.audiobridge 4978382489650451 complete
LOG connectionState janus.plugin.videoroom 7091696702246426 connected
LOG iceconnectionstate janus.plugin.videoroom 7091696702246426 connected
LOG iceconnectionstate janus.plugin.videoroom 7091696702246426 completed
LOG connectionState janus.plugin.audiobridge 4978382489650451 connected
LOG iceconnectionstate janus.plugin.audiobridge 4978382489650451 connected
LOG iceconnectionstate janus.plugin.audiobridge 4978382489650451 completed
LOG socket message => {"janus": "webrtcup", "sender": 7091696702246426, "session_id": 4387327487818508}
LOG socket message => {"janus": "webrtcup", "sender": 4978382489650451, "session_id": 4387327487818508}
LOG socket message => {"janus": "media", "mid": "video", "receiving": true, "sender": 7091696702246426, "session_id": 4387327487818508, "type": "video"}
LOG video plugin receiving video now...
LOG socket message => {"janus": "media", "mid": "audio", "receiving": true, "sender": 4978382489650451, "session_id": 4387327487818508, "type": "audio"}
LOG audio plugin receiving audio now...
LOG socket message => {"janus": "media", "mid": "audio", "receiving": true, "sender": 7091696702246426, "session_id": 4387327487818508, "type": "audio"}
LOG video plugin receiving audio now...
LOG fcm onMessage {"CallId": "CS0e1mWRhUiVGiplNkfOig", "CallerId": "60016949-876f-43d6-abf4-8ace9a2a36cf", "Cmd": "HideCallScreen", "RoomId": "077816f358d245189fa43ca3eca920c960016949876f43d6abf48ace9a2a36cf"}
LOG route name SingleCall
LOG NotifyJsonStr RoomContactAcceptCall
LOG NotifyJsonStr RoomChatMsgReadedByUser
LOG socket message => {"janus": "event", "plugindata": {"data": {"joining": [Object], "room": 1666345920972, "videoroom": "event"}, "plugin": "janus.plugin.videoroom"}, "sender": 7091696702246426, "session_id": 4387327487818508}
LOG socket message => {"janus": "event", "plugindata": {"data": {"joining": [Object], "room": 1666345920972, "videoroom": "event"}, "plugin": "janus.plugin.videoroom"}, "sender": 7091696702246426, "session_id": 4387327487818508}
LOG NotifyJsonStr RoomCallUserMediaChanged
LOG socket message => {"janus": "event", "plugindata": {"data": {"publishers": [Array], "room": 1666345920972, "videoroom": "event"}, "plugin": "janus.plugin.videoroom"}, "sender": 7091696702246426, "session_id": 4387327487818508}
LOG receivePublisher {"codecs": {"audio": "opus", "video": "vp8"}, "displayName": "077816f3-58d2-4518-9fa4-3ca3eca920c9", "id": 2346095661122979, "isTalking": undefined}
LOG iceserver [{"credential": "CMClink@123", "urls": ["turn:cmcturn1.vedax.ai:3478", "turn:cmcturn1.vedax.ai:3478?transport=tcp", "turn:cmcturn1.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn2.vedax.ai:3478", "turn:cmcturn2.vedax.ai:3478?transport=tcp", "turn:cmcturn2.vedax.ai:3478?transport=udp"], "username": "link"}, {"credential": "CMClink@123", "urls": ["turn:cmcturn3.vedax.ai:3478", "turn:cmcturn3.vedax.ai:3478?transport=tcp", "turn:cmcturn3.vedax.ai:3478?transport=udp"], "username": "link"}, {"url": "stun:stun.l.google.com:19302"}, {"url": "stun:stun1.l.google.com:19302"}, {"url": "stun:stun2.l.google.com:19302"}, {"url": "stun:stun3.l.google.com:19302"}, {"url": "stun:stun4.l.google.com:19302"}]
LOG socket message => {"data": {"id": 1554807603046315}, "janus": "success", "session_id": 4387327487818508, "transaction": "But9Te1noUdz"}
LOG socket message => {"janus": "event", "jsep": {"sdp": "v=0
o=- 1666345942417095 1 IN IP4 13.251.178.176
s=VideoRoom 1666345920972
t=0 0
a=group:BUNDLE 0 1
a=ice-options:trickle
a=fingerprint:sha-256 D3:2A:77:C2:3C:7E:4D:E1:DC:EF:A2:1C:19:2A:35:BD:81:9F:99:05:B3:30:E9:96:19:89:AC:90:E0:47:44:07
a=extmap-allow-mixed
a=msid-semantic: WMS janus
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 13.251.178.176
a=sendonly
a=mid:0
a=rtcp-mux
a=ice-ufrag:UKYS
a=ice-pwd:+zfH176BMHzsILJFo8Su14
a=ice-options:trickle
a=setup:actpass
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:111 useinbandfec=1
a=msid:janus janus0
a=ssrc:4012436350 cname:janus
a=candidate:1 1 udp 2015363327 13.251.178.176 50039 typ host
a=end-of-candidates
m=video 9 UDP/TLS/RTP/SAVPF 96
c=IN IP4 13.251.178.176
a=sendonly
a=mid:1
a=rtcp-mux
a=ice-ufrag:UKYS
a=ice-pwd:+zfH176BMHzsILJFo8Su14
a=ice-options:trickle
a=setup:actpass
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:13 urn:3gpp:video-orientation
a=ssrc-group:FID 193860723 2323073930
a=msid:janus janus1
a=ssrc:193860723 cname:janus
a=ssrc:2323073930 cname:janus
a=candidate:1 1 udp 2015363327 13.251.178.176 50039 typ host
a=end-of-candidates
", "type": "offer"}, "plugindata": {"data": {"display": "077816f3-58d2-4518-9fa4-3ca3eca920c9", "id": 2346095661122979, "room": 1666345920972, "streams": [Array], "videoroom": "attached", "warning": "deprecated_api"}, "plugin": "janus.plugin.videoroom"}, "sender": 1554807603046315, "session_id": 4387327487818508, "transaction": "lWWb5YzC1FLh"}
LOG receive => joinResponse
LOG signalingState janus.plugin.videoroom 1554807603046315 have-remote-offer
LOG onpublisher stream listener {"codecs": {"audio": "opus", "video": "vp8"}, "displayName": "077816f3-58d2-4518-9fa4-3ca3eca920c9", "id": 2346095661122979, "isTalking": undefined}
LOG set other user remoteDesc success
LOG signalingState janus.plugin.videoroom 1554807603046315 stable
LOG receive setLocalDescription succes
LOG iceconnectionstate janus.plugin.videoroom 1554807603046315 checking
LOG iceGatheringState janus.plugin.videoroom 1554807603046315 gathering
LOG connectionState janus.plugin.videoroom 1554807603046315 connecting
LOG candidate event janus.plugin.videoroom 1554807603046315
LOG candidate event janus.plugin.videoroom 1554807603046315
LOG socket message => {"janus": "event", "plugindata": {"data": {"room": 1666345920972, "started": "ok", "videoroom": "event"}, "plugin": "janus.plugin.videoroom"}, "sender": 1554807603046315, "session_id": 4387327487818508, "transaction": "t35OXvXOPMRv"}
LOG receive => startResponse []
LOG iceconnectionstate janus.plugin.videoroom 1554807603046315 failed
LOG connectionState janus.plugin.videoroom 1554807603046315 failed
LOG socket message => {"janus": "hangup", "reason": "ICE failed", "sender": 1554807603046315, "session_id": 4387327487818508}
LOG video plugin hangup ICE failed
Issue Analytics
- State:
- Created a year ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Steam Remote Play Not Working? Try these fixes! - Driver Easy
Quick & Easy fixes to get your Steam Remote Play back to work. · Try these fixes · Fix 1: Check if your...
Read more >Unable to connect to remote computer :: Steam Remote Play
The client says that streaming is available and I can click to stream them. The game launches in the host but my client...
Read more >6 steps to solving your streaming video problems - TechHive
Got buffering or other streaming video issues? Here's a step-by-step troubleshooting guide.
Read more >local audio is not getting stream on remote side - Stack Overflow
Problem is that local audio/video working properly in my web app, but remote audio/video is not getting stream on remote side. in console ......
Read more >Steam Link - Suggested Network Settings - Steam Support
Remote Play Streaming Suggested Network Settings. The Steam Link hardware and streaming app both leverage Steam Remote Play. See our Steam Remote Play...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok it’s work now, base on my server block ip
The 401 error indicates that the TURN server connection couldn’t be established properly due to an authentication issue. Ensure that your TURN server is working correctly and you are using the correct username/password. You can test over here.
Might also want to have a read of this as it advises why you need both a working STUN and TURN server.