ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.17k stars 618 forks source link

WebRTC Playing doesn't work properly old version Firefox browser #3160

Open SelimEmre opened 3 years ago

SelimEmre commented 3 years ago

Short description

WebRTC Playing should able to play on Firefox 78 version. Firefox 78 version should support WebRTC Playing according to this doc. But WebRTC playing doesn't work.

Steps to reproduce

  1. Install Firefox 78 version at this link -> https://ftp.mozilla.org/pub/firefox/releases/78.0.1/
  2. Try to play any WebRTC stream.

Expected behavior

WebRTC playing doesn't work.

Actual behavior

WebRTC playing should work.

Logs

websocket connected websocket_adaptor.js:19:25
initialized play.html:395:14
sent message:{"command":"getStreamInfo","streamId":"stream1"} websocket_adaptor.js:136:17
stream information play.html:399:14
sent message:{"command":"play","streamId":"stream1","viewerInfo":""} websocket_adaptor.js:136:17
received remote description type for stream id: stream1 type: offer websocket_adaptor.js:55:29
stream id in init peer connection: stream1 close stream id: stream1 webrtc_adaptor.js:1029:12
received ice candidate for stream id stream1 websocket_adaptor.js:46:29
candidate:438349719 1 udp 2122260223 51.89.116.109 39416 typ host generation 0 ufrag fQRm network-id 1 network-cost 50 websocket_adaptor.js:47:29
Ice candidate is added to list because remote description is not set yet webrtc_adaptor.js:1306:12
received ice candidate for stream id stream1 websocket_adaptor.js:46:29
candidate:438349719 1 udp 2122260223 51.89.116.109 41111 typ host generation 0 ufrag fQRm network-id 1 network-cost 50 websocket_adaptor.js:47:29
Ice candidate is added to list because remote description is not set yet webrtc_adaptor.js:1306:12
onTrack webrtc_adaptor.js:919:11
Received remote stream webrtc_adaptor.js:924:13
onTrack webrtc_adaptor.js:919:11
set remote description is succesfull with response: undefined for stream : stream1 and type: offer webrtc_adaptor.js:1244:13
v=0

o=- 8088731221943995558 2 IN IP4 127.0.0.1

s=-

t=0 0

a=group:BUNDLE audio video

a=msid-semantic: WMS ARDAMS

m=audio 9 UDP/TLS/RTP/SAVPF 111 110

c=IN IP4 0.0.0.0

a=rtcp:9 IN IP4 0.0.0.0

a=ice-ufrag:fQRm

a=ice-pwd:g7n/q46nnfJlltN7UVO7Kvw2

a=ice-options:trickle renomination

a=fingerprint:sha-256 7A:91:49:91:48:30:90:A3:6C:4B:F9:7F:F6:78:FD:CD:E4:6C:7D:CC:D1:2A:B1:C6:6A:B7:40:19:C5:FA:DE:82

a=setup:actpass

a=mid:audio

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

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=sendrecv

a=rtcp-mux

a=rtpmap:111 opus/48000/2

a=rtcp-fb:111 transport-cc

a=fmtp:111 minptime=10;useinbandfec=1

a=rtpmap:110 telephone-event/48000

a=ssrc:643700664 cname:z45r8pD8rwuXEg9X

a=ssrc:643700664 msid:ARDAMS ARDAMSastream1

a=ssrc:643700664 mslabel:ARDAMS

a=ssrc:643700664 label:ARDAMSastream1

m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100

c=IN IP4 0.0.0.0

a=rtcp:9 IN IP4 0.0.0.0

a=ice-ufrag:fQRm

a=ice-pwd:g7n/q46nnfJlltN7UVO7Kvw2

a=ice-options:trickle renomination

a=fingerprint:sha-256 7A:91:49:91:48:30:90:A3:6C:4B:F9:7F:F6:78:FD:CD:E4:6C:7D:CC:D1:2A:B1:C6:6A:B7:40:19:C5:FA:DE:82

a=setup:actpass

a=mid:video

a=extmap:14 urn:ietf:params:rtp-hdrext:toffset

a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time

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=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type

a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing

a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07

a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space

a=sendrecv

a=rtcp-mux

a=rtcp-rsize

a=rtpmap:96 H264/90000

a=rtcp-fb:96 goog-remb

a=rtcp-fb:96 transport-cc

a=rtcp-fb:96 ccm fir

a=rtcp-fb:96 nack

a=rtcp-fb:96 nack pli

a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f

a=rtpmap:97 rtx/90000

a=fmtp:97 apt=96

a=rtpmap:98 red/90000

a=rtpmap:99 rtx/90000

a=fmtp:99 apt=98

a=rtpmap:100 ulpfec/90000

a=ssrc-group:FID 2200347046 466111993

a=ssrc:2200347046 cname:z45r8pD8rwuXEg9X

a=ssrc:2200347046 msid:ARDAMS ARDAMSvstream1

a=ssrc:2200347046 mslabel:ARDAMS

a=ssrc:2200347046 label:ARDAMSvstream1

a=ssrc:466111993 cname:z45r8pD8rwuXEg9X

a=ssrc:466111993 msid:ARDAMS ARDAMSvstream1

a=ssrc:466111993 mslabel:ARDAMS

a=ssrc:466111993 label:ARDAMSvstream1

webrtc_adaptor.js:1246:13
Ice candidate list size to be added: 2 webrtc_adaptor.js:1251:12
try to create answer for stream id: stream1 webrtc_adaptor.js:1259:13
Candidate is added for stream stream1 2 webrtc_adaptor.js:1336:14
created answer for stream id: stream1 webrtc_adaptor.js:1264:14
Set local description successfully for stream Id stream1 webrtc_adaptor.js:1150:12
local sdp: webrtc_adaptor.js:1161:13
v=0

o=mozilla...THIS_IS_SDPARTA-78.0.1 2840319375112484018 0 IN IP4 0.0.0.0

s=-

t=0 0

a=fingerprint:sha-256 14:71:F0:51:70:89:E7:3F:77:A1:7A:FC:18:42:54:F0:55:61:46:AE:84:26:4F:34:48:11:8D:5B:9D:E0:06:41

a=group:BUNDLE audio

a=ice-options:trickle

a=msid-semantic:WMS *

m=audio 9 UDP/TLS/RTP/SAVPF 111

c=IN IP4 0.0.0.0

a=recvonly

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=fmtp:111 maxplaybackrate=48000;stereo=1;useinbandfec=1

a=ice-pwd:a6c3ae3d4eb093a226cf44a9c7a10107

a=ice-ufrag:5ce01058

a=mid:audio

a=rtcp-mux

a=rtpmap:111 opus/48000/2

a=setup:active

a=ssrc:1318928768 cname:{369b9dce-f570-4c1a-bbad-afd9e25f1bc5}

m=video 0 UDP/TLS/RTP/SAVPF 120

c=IN IP4 0.0.0.0

a=inactive

a=mid:video

a=rtpmap:120 VP8/90000

webrtc_adaptor.js:1162:13
sent message:{"command":"takeConfiguration","streamId":"stream1","type":"answer","sdp":"v=0\r\no=mozilla...THIS_IS_SDPARTA-78.0.1 2840319375112484018 0 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256 14:71:F0:51:70:89:E7:3F:77:A1:7A:FC:18:42:54:F0:55:61:46:AE:84:26:4F:34:48:11:8D:5B:9D:E0:06:41\r\na=group:BUNDLE audio\r\na=ice-options:trickle\r\na=msid-semantic:WMS *\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=recvonly\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=fmtp:111 maxplaybackrate=48000;stereo=1;useinbandfec=1\r\na=ice-pwd:a6c3ae3d4eb093a226cf44a9c7a10107\r\na=ice-ufrag:5ce01058\r\na=mid:audio\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=setup:active\r\na=ssrc:1318928768 cname:{369b9dce-f570-4c1a-bbad-afd9e25f1bc5}\r\nm=video 0 UDP/TLS/RTP/SAVPF 120\r\nc=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:video\r\na=rtpmap:120 VP8/90000\r\n"} websocket_adaptor.js:136:17
sending ice candiate for stream Id stream1 webrtc_adaptor.js:972:14
{"candidate":"candidate:0 1 UDP 2122252543 9d6d3547-44f5-48b7-9595-5fb3f14b7b3d.local 49322 typ host","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":"5ce01058"} webrtc_adaptor.js:973:14
sent message:{"command":"takeCandidate","streamId":"stream1","label":0,"id":"audio","candidate":"candidate:0 1 UDP 2122252543 9d6d3547-44f5-48b7-9595-5fb3f14b7b3d.local 49322 typ host"} websocket_adaptor.js:136:17
sending ice candiate for stream Id stream1 webrtc_adaptor.js:972:14
{"candidate":"candidate:2 1 TCP 2105524479 9d6d3547-44f5-48b7-9595-5fb3f14b7b3d.local 9 typ host tcptype active","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":"5ce01058"} webrtc_adaptor.js:973:14
sent message:{"command":"takeCandidate","streamId":"stream1","label":0,"id":"audio","candidate":"candidate:2 1 TCP 2105524479 9d6d3547-44f5-48b7-9595-5fb3f14b7b3d.local 9 typ host tcptype active"} websocket_adaptor.js:136:17
sending ice candiate for stream Id stream1 webrtc_adaptor.js:972:14
{"candidate":"candidate:1 1 UDP 1686052863 37.130.107.232 32161 typ srflx raddr 0.0.0.0 rport 0","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":"5ce01058"} webrtc_adaptor.js:973:14
sent message:{"command":"takeCandidate","streamId":"stream1","label":0,"id":"audio","candidate":"candidate:1 1 UDP 1686052863 37.130.107.232 32161 typ srflx raddr 0.0.0.0 rport 0"} websocket_adaptor.js:136:17
sending ice candiate for stream Id stream1 webrtc_adaptor.js:972:14
{"candidate":"","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":"5ce01058"} webrtc_adaptor.js:973:14
sent message:{"command":"takeCandidate","streamId":"stream1","label":0,"id":"audio","candidate":""} websocket_adaptor.js:136:17
No event.candidate in the iceCandidate event webrtc_adaptor.js:985:12
thorfi commented 2 years ago

Bump:

This is failing on macOS in Firefox 96.0.2 (64-bit) as well. I note that it's working fine in other browsers (Safari, Chrome).

thorfi commented 2 years ago

These errors are popping up in the Firefox JavaScript console and not in the other browser JS consoles - unsure if related to this problem or not.

16:55:41.553 Error in parsing value for 'right'.  Declaration dropped. 2 play.html
16:55:41.636 Error in parsing value for 'right'.  Declaration dropped. 8 play.html