WebRTC blank video on Firefox >= 90.0 - reactjs
I have a problem with a video from remote sdp not showing on Firefox on version >= 90.0 (does work on any other browser like Chrome, Opera, Edge). It works fine on version >=89.0.2 and i have no idea what causing this issue
Firefox version 89.0.2
Local sdp:
v=0
o=mozilla...THIS_IS_SDPARTA-89.0.2 742372061482680230 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 AC:FD:FB:9D:BF:E7:1B:74:AC:A8:59:6B:F9:FE:B4:D0:15:EB:9C:9D:54:0A:3C:F0:A3:4B:39:32:88:92:AA:C9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=sendrecv
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:acc210243a74aef9a612fb944269e3bd
a=ice-ufrag:ac64f811
a=mid:0
a=msid:{a4442659-b580-45d1-926b-855a5abb2ce5} {55d9c638-6580-41f7-a198-c4e4da48c0a9}
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000/1
a=setup:actpass
a=ssrc:1370367419 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
m=video 9 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 0.0.0.0
a=sendrecv
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:acc210243a74aef9a612fb944269e3bd
a=ice-ufrag:ac64f811
a=mid:1
a=msid:{a4442659-b580-45d1-926b-855a5abb2ce5} {b1684ca8-1a76-489a-ac8f-505d8db4a91a}
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:945317264 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
a=ssrc:662102401 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
a=ssrc-group:FID 945317264 662102401
O 1 671 457 224 786 (+18 077 ms)
v=0
o=mozilla...THIS_IS_SDPARTA-89.0.2 742372061482680230 0 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 AC:FD:FB:9D:BF:E7:1B:74:AC:A8:59:6B:F9:FE:B4:D0:15:EB:9C:9D:54:0A:3C:F0:A3:4B:39:32:88:92:AA:C9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 57307 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 172.29.160.1
a=candidate:0 1 UDP 2122121471 10.100.1.109 57305 typ host
a=candidate:1 1 UDP 2122187007 192.168.1.22 57306 typ host
a=candidate:2 1 UDP 2122252543 172.29.160.1 57307 typ host
a=candidate:3 1 TCP 2105393407 10.100.1.109 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.1.22 9 typ host tcptype active
a=candidate:5 1 TCP 2105524479 172.29.160.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122121470 10.100.1.109 57308 typ host
a=candidate:1 2 UDP 2122187006 192.168.1.22 57309 typ host
a=candidate:2 2 UDP 2122252542 172.29.160.1 57310 typ host
a=candidate:3 2 TCP 2105393406 10.100.1.109 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.1.22 9 typ host tcptype active
a=candidate:5 2 TCP 2105524478 172.29.160.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:acc210243a74aef9a612fb944269e3bd
a=ice-ufrag:ac64f811
a=mid:0
a=msid:{a4442659-b580-45d1-926b-855a5abb2ce5} {55d9c638-6580-41f7-a198-c4e4da48c0a9}
a=rtcp:57310 IN IP4 172.29.160.1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=setup:actpass
a=ssrc:1370367419 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
m=video 57313 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 172.29.160.1
a=candidate:0 1 UDP 2122121471 10.100.1.109 57311 typ host
a=candidate:1 1 UDP 2122187007 192.168.1.22 57312 typ host
a=candidate:2 1 UDP 2122252543 172.29.160.1 57313 typ host
a=candidate:3 1 TCP 2105393407 10.100.1.109 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.1.22 9 typ host tcptype active
a=candidate:5 1 TCP 2105524479 172.29.160.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122121470 10.100.1.109 57314 typ host
a=candidate:1 2 UDP 2122187006 192.168.1.22 57315 typ host
a=candidate:2 2 UDP 2122252542 172.29.160.1 57316 typ host
a=candidate:3 2 TCP 2105393406 10.100.1.109 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.1.22 9 typ host tcptype active
a=candidate:5 2 TCP 2105524478 172.29.160.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:acc210243a74aef9a612fb944269e3bd
a=ice-ufrag:ac64f811
a=mid:1
a=msid:{a4442659-b580-45d1-926b-855a5abb2ce5} {b1684ca8-1a76-489a-ac8f-505d8db4a91a}
a=rtcp:57316 IN IP4 172.29.160.1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:945317264 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
a=ssrc:662102401 cname:{858121e4-b01a-410c-bc0f-2c7a46736d78}
a=ssrc-group:FID 945317264 662102401
Remote sdp:
v=0
o=- 123 1 IN IP4 127.0.0.1
s=-
t=0 0
a=fingerprint:sha-256 93:70:63:FC:98:35:64:50:AB:07:B7:56:72:82:B8:6A:0E:58:D7:50:01:C0:D7:4A:01:86:C2:28:B1:AF:0C:E9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic: WMS *
m=audio 1 RTP/SAVPF 8
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7070 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7070 typ host generation 0
a=inactive
a=ice-ufrag:wTURmjFPYaT2QrhY
a=ice-pwd:ALmcOQbLq5WnGMJ0QHZEBv1C
a=mid:0
a=msid:6bedb9d9-4a34-4fc5-a4e2-0228b1175ff3 21e020d5-0d34-404c-8d0f-c2176654ec8f
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:8 PCMA/8000
a=setup:passive
a=bundle-only
a=ssrc:2119652489 cname:baf88792-8306-49a1-9a52-bdeb340e7830
m=video 1 RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7071 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7071 typ host generation 0
a=inactive
a=ice-ufrag:wTURmjFPYaT2QrhY
a=ice-pwd:ALmcOQbLq5WnGMJ0QHZEBv1C
a=mid:1
a=msid:6bedb9d9-4a34-4fc5-a4e2-0228b1175ff3 31f082d9-7b73-42cb-9ed1-09961329abd0
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=setup:passive
a=bundle-only
a=ssrc:4121478096 cname:baf88792-8306-49a1-9a52-bdeb340e7830
O 1 671 457 224 796 (+18 087 ms)
v=0
o=- 123 1 IN IP4 127.0.0.1
s=-
t=0 0
a=fingerprint:sha-256 93:70:63:FC:98:35:64:50:AB:07:B7:56:72:82:B8:6A:0E:58:D7:50:01:C0:D7:4A:01:86:C2:28:B1:AF:0C:E9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic: WMS *
m=audio 1 RTP/SAVPF 8
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7070 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7070 typ host generation 0
a=sendrecv
a=ice-ufrag:wTURmjFPYaT2QrhY
a=ice-pwd:ALmcOQbLq5WnGMJ0QHZEBv1C
a=mid:0
a=msid:6d6a5d67-fc98-487a-ae11-feadf0a83550_2 694408ad-38a9-4370-9bf7-a6ddd358740e
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:8 PCMA/8000
a=setup:passive
a=bundle-only
a=ssrc:1888215093 cname:xpWB66DXxxbEXrg9
m=video 1 RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7071 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7071 typ host generation 0
a=sendrecv
a=ice-ufrag:wTURmjFPYaT2QrhY
a=ice-pwd:ALmcOQbLq5WnGMJ0QHZEBv1C
a=mid:1
a=msid:6d6a5d67-fc98-487a-ae11-feadf0a83550_2 54387bb6-ba0c-44ba-9811-f7d633371968
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=setup:passive
a=bundle-only
a=ssrc:1079489670 cname:G9MLJqqUtxfIQKyH
RTP Stats:
Firefox version >= 90.0
Local sdp:
v=0
o=mozilla...THIS_IS_SDPARTA-90.0 8353154283338443297 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 C1:21:34:75:76:EE:AA:32:AD:D9:BB:C1:DD:7B:BD:82:1E:E3:85:8A:D1:A4:73:1E:35:76:40:16:54:D6:EB:DB
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=sendrecv
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:8118e393f3952040e0060e800c17dbc2
a=ice-ufrag:b515cfad
a=mid:0
a=msid:{d4ef79cc-6ab6-4464-b581-ece2c3fbf1e0} {94e2d2bc-2124-4c93-87e2-ea9bd0e10945}
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000/1
a=setup:actpass
a=ssrc:2400082512 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
m=video 9 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 0.0.0.0
a=sendrecv
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:8118e393f3952040e0060e800c17dbc2
a=ice-ufrag:b515cfad
a=mid:1
a=msid:{d4ef79cc-6ab6-4464-b581-ece2c3fbf1e0} {ee4a3916-55a7-4992-8134-c81ac8cea572}
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:4074242173 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
a=ssrc:3652788950 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
a=ssrc-group:FID 4074242173 3652788950
O 1 671 457 637 509 (+15 993 ms)
v=0
o=mozilla...THIS_IS_SDPARTA-90.0 8353154283338443297 0 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 C1:21:34:75:76:EE:AA:32:AD:D9:BB:C1:DD:7B:BD:82:1E:E3:85:8A:D1:A4:73:1E:35:76:40:16:54:D6:EB:DB
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 50163 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 172.29.160.1
a=candidate:0 1 UDP 2122121471 10.100.1.109 50161 typ host
a=candidate:1 1 UDP 2122187007 192.168.1.22 50162 typ host
a=candidate:2 1 UDP 2122252543 172.29.160.1 50163 typ host
a=candidate:3 1 TCP 2105393407 10.100.1.109 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.1.22 9 typ host tcptype active
a=candidate:5 1 TCP 2105524479 172.29.160.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122121470 10.100.1.109 50164 typ host
a=candidate:1 2 UDP 2122187006 192.168.1.22 50165 typ host
a=candidate:2 2 UDP 2122252542 172.29.160.1 50166 typ host
a=candidate:3 2 TCP 2105393406 10.100.1.109 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.1.22 9 typ host tcptype active
a=candidate:5 2 TCP 2105524478 172.29.160.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:8118e393f3952040e0060e800c17dbc2
a=ice-ufrag:b515cfad
a=mid:0
a=msid:{d4ef79cc-6ab6-4464-b581-ece2c3fbf1e0} {94e2d2bc-2124-4c93-87e2-ea9bd0e10945}
a=rtcp:50166 IN IP4 172.29.160.1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=setup:actpass
a=ssrc:2400082512 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
m=video 50169 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98
c=IN IP4 172.29.160.1
a=candidate:0 1 UDP 2122121471 10.100.1.109 50167 typ host
a=candidate:1 1 UDP 2122187007 192.168.1.22 50168 typ host
a=candidate:2 1 UDP 2122252543 172.29.160.1 50169 typ host
a=candidate:3 1 TCP 2105393407 10.100.1.109 9 typ host tcptype active
a=candidate:4 1 TCP 2105458943 192.168.1.22 9 typ host tcptype active
a=candidate:5 1 TCP 2105524479 172.29.160.1 9 typ host tcptype active
a=candidate:0 2 UDP 2122121470 10.100.1.109 50170 typ host
a=candidate:1 2 UDP 2122187006 192.168.1.22 50171 typ host
a=candidate:2 2 UDP 2122252542 172.29.160.1 50172 typ host
a=candidate:3 2 TCP 2105393406 10.100.1.109 9 typ host tcptype active
a=candidate:4 2 TCP 2105458942 192.168.1.22 9 typ host tcptype active
a=candidate:5 2 TCP 2105524478 172.29.160.1 9 typ host tcptype active
a=sendrecv
a=end-of-candidates
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=ice-pwd:8118e393f3952040e0060e800c17dbc2
a=ice-ufrag:b515cfad
a=mid:1
a=msid:{d4ef79cc-6ab6-4464-b581-ece2c3fbf1e0} {ee4a3916-55a7-4992-8134-c81ac8cea572}
a=rtcp:50172 IN IP4 172.29.160.1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=setup:actpass
a=ssrc:4074242173 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
a=ssrc:3652788950 cname:{ca38a686-634a-477e-89a3-16f4b00ce5c6}
a=ssrc-group:FID 4074242173 3652788950
Remote sdp:
v=0
o=- 123 1 IN IP4 127.0.0.1
s=-
t=0 0
a=fingerprint:sha-256 93:70:63:FC:98:35:64:50:AB:07:B7:56:72:82:B8:6A:0E:58:D7:50:01:C0:D7:4A:01:86:C2:28:B1:AF:0C:E9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic: WMS *
m=audio 1 RTP/SAVPF 8
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7074 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7074 typ host generation 0
a=inactive
a=ice-ufrag:5uVuNDrpZIRuqFnv
a=ice-pwd:2gTsLDmpv3Rc0SJDsc3MydjT
a=mid:0
a=msid:77975ac5-83a8-41d3-95d6-28330784cf7e 5cabb463-4897-47a7-b216-3eb503e7a7f1
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:8 PCMA/8000
a=setup:passive
a=bundle-only
a=ssrc:141019633 cname:484ad88b-f66d-4478-9efc-4274dec179c3
m=video 1 RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7075 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7075 typ host generation 0
a=inactive
a=ice-ufrag:5uVuNDrpZIRuqFnv
a=ice-pwd:2gTsLDmpv3Rc0SJDsc3MydjT
a=mid:1
a=msid:77975ac5-83a8-41d3-95d6-28330784cf7e ea40ec6c-8f23-4876-8603-4e88e4685c93
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=setup:passive
a=bundle-only
a=ssrc:1824197586 cname:484ad88b-f66d-4478-9efc-4274dec179c3
O 1 671 457 637 515 (+15 999 ms)
v=0
o=- 123 1 IN IP4 127.0.0.1
s=-
t=0 0
a=fingerprint:sha-256 93:70:63:FC:98:35:64:50:AB:07:B7:56:72:82:B8:6A:0E:58:D7:50:01:C0:D7:4A:01:86:C2:28:B1:AF:0C:E9
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic: WMS *
m=audio 1 RTP/SAVPF 8
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7074 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7074 typ host generation 0
a=sendrecv
a=ice-ufrag:5uVuNDrpZIRuqFnv
a=ice-pwd:2gTsLDmpv3Rc0SJDsc3MydjT
a=mid:0
a=msid:6d6a5d67-fc98-487a-ae11-feadf0a83550_3 259c9f41-df1a-4a0a-99bb-865925751627
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:8 PCMA/8000
a=setup:passive
a=bundle-only
a=ssrc:365022300 cname:QylQ1HGpor9omS0z
m=video 1 RTP/SAVPF 100
c=IN IP4 0.0.0.0
a=candidate:1 1 udp 50 10.100.1.109 7075 typ host generation 0
a=candidate:1 2 udp 49 10.100.1.109 7075 typ host generation 0
a=sendrecv
a=ice-ufrag:5uVuNDrpZIRuqFnv
a=ice-pwd:2gTsLDmpv3Rc0SJDsc3MydjT
a=mid:1
a=msid:6d6a5d67-fc98-487a-ae11-feadf0a83550_3 c0827912-56ab-4aaf-a97c-eb400dba9ad0
a=rtcp:2 IN 0.0.0.0 IP4
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=setup:passive
a=bundle-only
a=ssrc:3945247179 cname:9Tn424ILJFMaRaPw
RTP Stats:
I have tried changing SDP. I compared my generated sdp to sdp from this website https://webrtc.github.io/samples/src/content/peerconnection/munge-sdp/
I listened to packets using wireshark and everything seems fine, but video does not show up.
Feel free to ask for more information. Thanks for any help
I fixed it. I was sending payload in my sdp a=rtpmap:100 VP8/90000, but firefox >=90.0 supports vp8 in version 120 as u can see in local sdp a=rtpmap:120 VP8/90000
Related
Unable to start PSQL in DigitalOcean
I am unable to connect to PSql from my DigitalOcean server. This happened after resizing the droplet. listen_addresses = '*' added to postgresql.conf host all all 0.0.0.0/0 md5 added to pg_hba.conf netstat -nlp displays the following: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1705/redis-server 1 tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 23688/unicorn.conf tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1693/nginx tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1390/sshd tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1693/nginx tcp6 0 0 :::22 :::* LISTEN 1390/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 10806 1173/dbus-daemon /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 711 1213/systemd /run/systemd/private unix 2 [ ACC ] STREAM LISTENING 11921 1213/systemd /run/systemd/journal/stdout unix 2 [ ACC ] STREAM LISTENING 11924 1213/systemd /run/snapd.socket unix 2 [ ACC ] STREAM LISTENING 11925 1213/systemd /run/snapd-snap.socket unix 2 [ ACC ] STREAM LISTENING 2813 1449/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 9801 1/init #/com/ubuntu/upstart unix 2 [ ACC ] SEQPACKET LISTENING 427 708/systemd-udevd /run/udev/control
COTURN + Kurento MediaServer Trickle IceConnectionState "Connected" on one tab and "Checking" on the other
I've been working on this project for a while now and have no other solution but to turn to you guys. I setup a STUN/TURN on Azure VM. The setup of the server is as follow: listening-port=3478 tls-listening-port=5349 fingerprint user=user:pass lt-cred-mech realm=kurento.org log-file=/var/log/turnserver.log verbose external-ip=<Public_IP> On the VM on which KMS runs, I configured the file : /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini With these modifications : stunServerAddress=<public_ip> stunServerPort=3478 turnURL=user:pass#<public_ip>:3478 In the client , I setup the RTCPeerClient with these options before getting the user media and creating the offer. const configuration: RTCConfiguration = {"iceServers": [ { urls:['turn:<public_ip_VM>:3478'], username: "user", credential: "pass" }, {urls:['stun:<public_ip_VM>']}, ], iceTransportPolicy: "all" }; I then join a call in one browser and join on another. Here are the complete logs for the first browser that joins the communication: WebSocket is opened CallScreen.tsx:220 RTCSessionDescription {type: "offer", sdp: "v=0 ↵o=- 635656127645712694 2 IN IP4 127.0.0.1 ↵s=… ↵a=fmtp:119 apt=124 ↵a=rtpmap:123 ulpfec/90000 ↵"} CallScreen.tsx:229 Message Conn: {ConnectionInfo: {…}, Action: "Join", sdpOffer: RTCSessionDescription} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:2686451073 1 udp 2122262783 2a02:a03f:61…eration 0 ufrag 3hQF network-id 2 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "2686451073", component: "rtp", …} index.js:1 ERROR GATHERING ICE CANDIDATES ==> RTCPeerConnectionIceErrorEvent {isTrusted: true, address: "[2a02:a03f:61c4:x:x:x:x:x]", port: 35184, hostCandidate: "[2a02:a03f:61c4:x:x:x:x:x]:35184", url: "stun:52.165.30.212:3478", …} console.<computed> # index.js:1 CallScreen.webRtcPeer.onicecandidateerror # CallScreen.tsx:46 index.js:1 [Deprecation] console.<computed> # index.js:1 CallScreen.webRtcPeer.onicecandidateerror # CallScreen.tsx:46 CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:2447636755 1 udp 2122194687 192.168.1.42…eration 0 ufrag 3hQF network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "2447636755", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:4003201393 1 tcp 1518283007 2a02:a03f:61…eration 0 ufrag 3hQF network-id 2 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "4003201393", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:3747612131 1 tcp 1518214911 192.168.1.42…eration 0 ufrag 3hQF network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "3747612131", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:1744011463 1 udp 1685987071 109.136.191.…eration 0 ufrag 3hQF network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "1744011463", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:3687200995 1 udp 41819903 52.165.30.212 …eration 0 ufrag 3hQF network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "3687200995", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: null CallScreen.tsx:107 Received all Ice Candidates CallScreen.tsx:135 Received Message: {"id":"callStatus","response":"accepted","sdpAnswer":"v=0\r\no=- 3820652736 3820652736 IN IP4 0.0.0.0\r\ns=Kurento Media Server\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=msid-semantic: WMS\r\na=group:BUNDLE 0\r\nm=video 1 UDP/TLS/RTP/SAVPF 96 102 127 125 108\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendonly\r\na=mid:0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=rtpmap:96 VP8/90000\r\na=rtpmap:102 H264/90000\r\na=rtpmap:127 H264/90000\r\na=rtpmap:125 H264/90000\r\na=rtpmap:108 H264/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:127 goog-remb\r\na=rtcp-fb:127 ccm fir\r\na=rtcp-fb:127 nack\r\na=rtcp-fb:127 nack pli\r\na=rtcp-fb:125 goog-remb\r\na=rtcp-fb:125 ccm fir\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=rtcp-fb:108 goog-remb\r\na=rtcp-fb:108 ccm fir\r\na=rtcp-fb:108 nack\r\na=rtcp-fb:108 nack pli\r\na=setup:active\r\na=rtcp-mux\r\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\r\na=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f\r\na=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f\r\na=ssrc:3755615383 cname:user1459207244#host-ffbb510\r\na=ice-ufrag:lapS\r\na=ice-pwd:vEblLRMQWUGRqiExBV9mXm\r\na=fingerprint:sha-256 CC:CF:1F:DB:38:36:4F:7A:F3:71:D9:46:10:43:37:C1:BE:90:FB:D6:C9:45:2D:B0:1B:40:2C:B5:74:00:2A:84\r\n"} CallScreen.tsx:75 Remote Stream Added: MediaStream {id: "default", active: true, onaddtrack: null, onremovetrack: null, onactive: null, …} CallScreen.tsx:146 Remote sdp successfully set: {sdp: "v=0 ↵o=- 3820652736 3820652736 IN IP4 0.0.0.0 ↵s=K…BE:90:FB:D6:C9:45:2D:B0:1B:40:2C:B5:74:00:2A:84 ↵", type: "answer"} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:3 1 TCP 1010827519 10.0.2.5 45037 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:53 ICE Connection State Changed: checking CallScreen.tsx:54 Event {isTrusted: true, type: "iceconnectionstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:6 2 TCP 1010827774 fe80::20d:3aff:fea6:612b 2023 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:5 2 TCP 1015022078 fe80::20d:3aff:fea6:612b 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:4 2 UDP 2015363582 fe80::20d:3aff:fea6:612b 51592 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:3 2 TCP 1010827518 10.0.2.5 43244 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:2 2 TCP 1015021822 10.0.2.5 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:1 2 UDP 2015363326 10.0.2.5 9993 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:6 1 TCP 1010827775 fe80::20d:3aff:fea6:612b 17406 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:5 1 TCP 1015022079 fe80::20d:3aff:fea6:612b 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:4 1 UDP 2015363583 fe80::20d:3aff:fea6:612b 46945 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:2 1 TCP 1015021823 10.0.2.5 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:1 1 UDP 2015363327 10.0.2.5 50941 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:9 1 TCP 843055359 52.165.30.212 45037 typ srflx raddr 10.0.2.5 rport 45037 tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:8 1 TCP 847249663 52.165.30.212 9 typ srflx raddr 10.0.2.5 rport 9 tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:7 1 UDP 1679819007 52.165.30.212 50941 typ srflx raddr 10.0.2.5 rport 50941","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:10 1 UDP 505413887 52.165.30.212 50898 typ relay raddr 10.0.2.5 rport 50941","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:53 ICE Connection State Changed: disconnected CallScreen.tsx:54 Event {isTrusted: true, type: "iceconnectionstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} You can see that the iceconnectionchanged results in a state of "checking" Whereas in the second tab that I join the call session on : WebSocket is opened CallScreen.tsx:220 RTCSessionDescription {type: "offer", sdp: "v=0 ↵o=- 4700503829836937653 2 IN IP4 127.0.0.1 ↵s… ↵a=fmtp:119 apt=124 ↵a=rtpmap:123 ulpfec/90000 ↵"} CallScreen.tsx:229 Message Conn: {ConnectionInfo: {…}, Action: "Join", sdpOffer: RTCSessionDescription} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:2686451073 1 udp 2122262783 2a02:a03f:61…eration 0 ufrag oexL network-id 2 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "2686451073", component: "rtp", …} index.js:1 ERROR GATHERING ICE CANDIDATES ==> RTCPeerConnectionIceErrorEvent {isTrusted: true, address: "[2a02:a03f:61c4:x:x:x:x:x]", port: 39827, hostCandidate: "[2a02:a03f:61c4:x:x:x:x:x]:39827", url: "stun:52.165.30.212:3478", …} console.<computed> # index.js:1 CallScreen.webRtcPeer.onicecandidateerror # CallScreen.tsx:46 index.js:1 [Deprecation] console.<computed> # index.js:1 CallScreen.webRtcPeer.onicecandidateerror # CallScreen.tsx:46 CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:2447636755 1 udp 2122194687 192.168.1.42…eration 0 ufrag oexL network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "2447636755", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:4003201393 1 tcp 1518283007 2a02:a03f:61…eration 0 ufrag oexL network-id 2 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "4003201393", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:3747612131 1 tcp 1518214911 192.168.1.42…eration 0 ufrag oexL network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "3747612131", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:1744011463 1 udp 1685987071 109.136.191.…eration 0 ufrag oexL network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "1744011463", component: "rtp", …} CallScreen.tsx:135 Received Message: {"id":"callStatus","response":"accepted","sdpAnswer":"v=0\r\no=- 3820652736 3820652736 IN IP4 0.0.0.0\r\ns=Kurento Media Server\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=msid-semantic: WMS\r\na=group:BUNDLE 0\r\nm=video 1 UDP/TLS/RTP/SAVPF 96 102 127 125 108\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendonly\r\na=mid:0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=rtpmap:96 VP8/90000\r\na=rtpmap:102 H264/90000\r\na=rtpmap:127 H264/90000\r\na=rtpmap:125 H264/90000\r\na=rtpmap:108 H264/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:127 goog-remb\r\na=rtcp-fb:127 ccm fir\r\na=rtcp-fb:127 nack\r\na=rtcp-fb:127 nack pli\r\na=rtcp-fb:125 goog-remb\r\na=rtcp-fb:125 ccm fir\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=rtcp-fb:108 goog-remb\r\na=rtcp-fb:108 ccm fir\r\na=rtcp-fb:108 nack\r\na=rtcp-fb:108 nack pli\r\na=setup:active\r\na=rtcp-mux\r\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\r\na=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f\r\na=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f\r\na=ssrc:3432352628 cname:user1173761955#host-61d2b2cc\r\na=ice-ufrag:2qt5\r\na=ice-pwd:VVCpYq3BJe70fPIM8mdrPe\r\na=fingerprint:sha-256 CC:CF:1F:DB:38:36:4F:7A:F3:71:D9:46:10:43:37:C1:BE:90:FB:D6:C9:45:2D:B0:1B:40:2C:B5:74:00:2A:84\r\n"} CallScreen.tsx:75 Remote Stream Added: MediaStream {id: "default", active: true, onaddtrack: null, onremovetrack: null, onactive: null, …} CallScreen.tsx:146 Remote sdp successfully set: {sdp: "v=0 ↵o=- 3820652736 3820652736 IN IP4 0.0.0.0 ↵s=K…BE:90:FB:D6:C9:45:2D:B0:1B:40:2C:B5:74:00:2A:84 ↵", type: "answer"} CallScreen.tsx:91 ICE Candidate Found: RTCIceCandidate {candidate: "candidate:3687200995 1 udp 41819903 52.165.30.212 …eration 0 ufrag oexL network-id 1 network-cost 10", sdpMid: "0", sdpMLineIndex: 0, foundation: "3687200995", component: "rtp", …} CallScreen.tsx:91 ICE Candidate Found: null CallScreen.tsx:107 Received all Ice Candidates CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:123 Sending Message Ice Candidate: {ConnectionInfo: {…}, Action: "onIceCandidate", candidate: RTCIceCandidate} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:2 1 TCP 1015021823 10.0.2.5 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:5 1 TCP 1015022079 fe80::20d:3aff:fea6:612b 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:3 1 TCP 1010827519 10.0.2.5 35980 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:4 1 UDP 2015363583 fe80::20d:3aff:fea6:612b 24009 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:1 2 UDP 2015363326 10.0.2.5 5018 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:6 1 TCP 1010827775 fe80::20d:3aff:fea6:612b 48841 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:1 1 UDP 2015363327 10.0.2.5 63778 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:2 2 TCP 1015021822 10.0.2.5 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:53 ICE Connection State Changed: checking CallScreen.tsx:54 Event {isTrusted: true, type: "iceconnectionstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:5 2 TCP 1015022078 fe80::20d:3aff:fea6:612b 9 typ host tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:3 2 TCP 1010827518 10.0.2.5 2472 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:4 2 UDP 2015363582 fe80::20d:3aff:fea6:612b 46023 typ host","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:7 1 UDP 1679819007 52.165.30.212 63778 typ srflx raddr 10.0.2.5 rport 63778","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:6 2 TCP 1010827774 fe80::20d:3aff:fea6:612b 21311 typ host tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:8 1 TCP 847249663 52.165.30.212 9 typ srflx raddr 10.0.2.5 rport 9 tcptype active","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:9 1 TCP 843055359 52.165.30.212 35980 typ srflx raddr 10.0.2.5 rport 35980 tcptype passive","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:135 Received Message: {"id":"iceCandidate","candidate":{"candidate":"candidate:10 1 UDP 505413887 52.165.30.212 56391 typ relay raddr 10.0.2.5 rport 63778","sdpMid":"0","sdpMLineIndex":0}} CallScreen.tsx:53 ICE Connection State Changed: connected CallScreen.tsx:54 Event {isTrusted: true, type: "iceconnectionstatechange", target: RTCPeerConnection, currentTarget: RTCPeerConnection, eventPhase: 2, …} You can see that I receive all the candidates. The communication is set up. I even receive the MediaStream from the other browser when the "ontack" triggers. The problem is there is never video being shared on the network and The iceconnectionchanged event on the first browser tab gives me a state of "checking". It ultimately ends up in a state "disconnected" after a while. Whereas the second one gives me a state of "connected".
Access to USB Ethernet adapter in LXC
I've created a LXC container in Ubuntu 18.04. Physically, there is an USB to Ethernet adapter connected on the host machine. After starting the LXC container, how to access the USB ethernet adapter? Are there configurations for LXC to do? The info on the Host machine: rui#rui-desktop:~$ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::f763:92fe:8145:163 prefixlen 64 scopeid 0x20<link> ether 00:0e:c6:c9:1a:18 txqueuelen 1000 (Ethernet) RX packets 1 bytes 46 (46.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 158 bytes 29470 (29.4 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1430 inet 173.39.202.159 netmask 255.255.255.128 broadcast 173.39.202.255 inet6 fe80::2e0:4cff:fe68:12c prefixlen 64 scopeid 0x20<link> ether 00:e0:4c:68:01:2c txqueuelen 1000 (Ethernet) RX packets 1911906 bytes 851840909 (851.8 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 350546 bytes 25613552 (25.6 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 149 base 0xd000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 35420 bytes 2918763 (2.9 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 35420 bytes 2918763 (2.9 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lxcbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 10.0.3.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::216:3eff:fe00:0 prefixlen 64 scopeid 0x20<link> ether 00:16:3e:00:00:00 txqueuelen 1000 (Ethernet) RX packets 859 bytes 86124 (86.1 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 831 bytes 88890 (88.8 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 rndis0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether be:86:e5:ee:9a:ed txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 usb0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether be:86:e5:ee:9a:ef txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0 is the interface that I want to access, and the output from lsusb is rui#rui-desktop:~$ lsusb Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub **Bus 001 Device 015: ID 0b95:7720 ASIX Electronics Corp. AX88772** Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub LXC container info: Last login: Sat Feb 24 17:40:28 UTC 2018 on pts/0 Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.9.140-tegra aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage cisco#ul:~$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 40: eth0#if41: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:16:3e:d6:9b:38 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 10.0.3.194/24 brd 10.0.3.255 scope global dynamic eth0 valid_lft 3586sec preferred_lft 3586sec inet6 fe80::216:3eff:fed6:9b38/64 scope link valid_lft forever preferred_lft forever
Adding these setting in /var/lib/lxc/ul/config make it working. lxc.net.1.type = phys lxc.net.1.link = eth0 lxc.net.1.flags = up lxc.net.1.hwaddr = 00:0e:c6:c9:1a:18
can I use munge SDP sample to connect with another PC?
So I wanted to create peer for webrtc in C, but I still don't quite get how the connection is made. I wanted to use the https://webrtc.github.io/samples/src/content/peerconnection/munge-sdp/ sample generating a SDP file in my computer, change the IP4 field (so i don't just do a loopback), put it in offer, do the same in another computer (to put in answer) [basically i'd do the signalling myself] to connect. i tried it over my local network, but i failled miserably. here is one of the SDP files ` v=0 o=mozilla...THIS_IS_SDPARTA-52.4.0 7301737099351893139 0 IN IP4 0.0.0.0 s=- t=0 0 a=fingerprint:sha-256 29:C1:12:C2:D7:03:B6:A8:E1:28:DC:DC:DE:A5:A0:0E:A8:D4:3A:CF:D5:67:9A:6B:4A:38:8C:DE:9C:ED:4E:D8 a=group:BUNDLE sdparta_0 sdparta_1 sdparta_2 a=ice-options:trickle a=msid-semantic:WMS * m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101 c=IN IP4 0.0.0.0 a=sendrecv a=extmap:1/sendonly urn:ietf:params:rtp-hdrext:ssrc-audio-level a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1 a=fmtp:101 0-15 a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 a=ice-ufrag:23f84f96 a=mid:sdparta_0 a=msid:{518019eb-2799-4525-ac2f-486dc4eb8ef4} {ebd29374-a915-41f1-868f-a5bca57540c1} a=rtcp-mux a=rtpmap:109 opus/48000/2 a=rtpmap:9 G722/8000/1 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000/1 a=setup:actpass a=ssrc:3747370289 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} m=video 9 UDP/TLS/RTP/SAVPF 120 121 c=IN IP4 0.0.0.0 a=sendrecv a=fmtp:120 max-fs=12288;max-fr=60 a=fmtp:121 max-fs=12288;max-fr=60 a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 a=ice-ufrag:23f84f96 a=mid:sdparta_1 a=msid:{518019eb-2799-4525-ac2f-486dc4eb8ef4} {38ff8810-1ae3-4786-b95c-e945f649f032} a=rtcp-fb:120 nack a=rtcp-fb:120 nack pli a=rtcp-fb:120 ccm fir a=rtcp-fb:120 goog-remb a=rtcp-fb:121 nack a=rtcp-fb:121 nack pli a=rtcp-fb:121 ccm fir a=rtcp-fb:121 goog-remb a=rtcp-mux a=rtpmap:120 VP8/90000 a=rtpmap:121 VP9/90000 a=setup:actpass a=ssrc:8090718 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} m=application 9 DTLS/SCTP 5000 c=IN IP4 0.0.0.0 a=sendrecv a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 a=ice-ufrag:23f84f96 a=mid:sdparta_2 a=sctpmap:5000 webrtc-datachannel 256 a=setup:actpass a=ssrc:3024981980 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} ` obs: i left the IP4 as 0.0.0.0 on purpose obs2: I missed the ICE candidates, but not sure I appreciate any help
no you can not. To connect to another PC you need a signaling server and exchange things like ice ufrag/pwd and the dtls fingerprints. Take a look at https://appr.tc/
Closing TCP Connection
I'm trying to send data using the booster pack cc3000 by Texas Instruments. Therefore I implemented a TCP server socket on my board. I can successfully accept a pending connection and send and receive data on the given socket. In my protocol the client is responsible for closing the connection after reading the response. But after some transmissions the transmissions becomes slow. If I inspect the WLAN traffic using Wireshark I see there is a problem with the socket close procedure. My client is a java based program. The board uses address 100 and the computer runs under 102. The TCP stream looks the following: 31 4.696711000 192.168.2.102 192.168.2.100 TCP 66 50721 > http-alt [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=4 SACK_PERM=1 32 4.700359000 192.168.2.100 192.168.2.102 TCP 58 http-alt > 50721 [SYN, ACK] Seq=0 Ack=1 Win=1460 Len=0 MSS=1460 33 4.700394000 192.168.2.102 192.168.2.100 TCP 54 50721 > http-alt [ACK] Seq=1 Ack=1 Win=17520 Len=0 34 4.700461000 192.168.2.102 192.168.2.100 HTTP 55 Continuation or non-HTTP traffic 35 4.705454000 192.168.2.100 192.168.2.102 TCP 54 http-alt > 50721 [ACK] Seq=1 Ack=2 Win=1460 Len=0 36 4.705476000 192.168.2.102 192.168.2.100 TCP 57 [TCP segment of a reassembled PDU] 37 4.709035000 192.168.2.100 192.168.2.102 TCP 54 http-alt > 50721 [ACK] Seq=1 Ack=5 Win=1460 Len=0 38 5.194961000 192.168.2.100 192.168.2.102 TCP 58 [TCP segment of a reassembled PDU] 39 5.196220000 192.168.2.100 192.168.2.102 HTTP 154 Continuation or non-HTTP traffic 40 5.196244000 192.168.2.102 192.168.2.100 TCP 54 50721 > http-alt [ACK] Seq=5 Ack=105 Win=17416 Len=0 41 5.196286000 192.168.2.102 192.168.2.100 TCP 54 50721 > http-alt [FIN, ACK] Seq=5 Ack=105 Win=17416 Len=0 42 5.202194000 192.168.2.100 192.168.2.102 TCP 54 http-alt > 50721 [ACK] Seq=105 Ack=6 Win=1460 Len=0 138 24.245036000 192.168.2.100 192.168.2.102 TCP 54 http-alt > 50721 [FIN, ACK] Seq=105 Ack=6 Win=1460 Len=0 139 24.245060000 192.168.2.102 192.168.2.100 TCP 54 50721 > http-alt [ACK] Seq=6 Ack=106 Win=17416 Len=0 After about 10 transmissions I get a FIN/ACK cascade. The last FIN/ACK above is part of this cascade. It looks like if the sockets are not completely closed and the HW module starts now closing all sockets in a row. My Java - client does the following Socket b = new Socket("192.168.2.100",8080); OutputStream o = b.getOutputStream(); o.write(10); o.write(0); o.write(0); o.write(0); o.flush(); InputStream i = b.getInputStream(); int id = i.read(); int gId = i.read(); int lengthA = i.read(); int lengthB = i.read(); int length = (lengthB<<8)|lengthA; if(length < 0|| length > 1000) { b.close(); return; } System.out.println(new Date()+" GantryID: "+gId+" Package with id: "+id+" has length: "+length+" payload: "); DataInputStream ds = new DataInputStream(i); byte[] buffer = new byte[length]; ds.readFully(buffer); b.close(); System.out.println(new String(buffer)); The server is a little more complex but the important commands are: return recv(handle, data, size, 0); //Read request header return recv(handle, data, size, 0); //Read request payload send(handle, data, size, 0); //Write response header send(handle, data, size, 0); //Write response payload //No Close only set socket handle to -1 Does anyone have a idea what is going on. I would appreciate any help and ideas.