Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't receive screen share #27297

Open
jdm opened this issue Jul 16, 2020 · 2 comments
Open

Can't receive screen share #27297

jdm opened this issue Jul 16, 2020 · 2 comments

Comments

@jdm
Copy link
Member

jdm commented Jul 16, 2020

Visit https://www.webrtc-experiment.com/screen-sharing/ in Firefox, then open the private link in Servo. Press "Share Your Screen" in Firefox and the shared screen appears in Firefox, but not in Servo.

@jdm
Copy link
Member Author

jdm commented Jul 16, 2020

Actually, pressing the "View" button yields this:

godot:servo jdm$ GST_DEBUG=3 ./mach run "https://www.webrtc-experiment.com/screen-sharing/#8013186679602875" --pref dom.webrtc.enabled
current chromeMediaSource screen
chrome message ping
undefined ———— undefined
""
setting remote descriptions v=0
o=mozilla...THIS_IS_SDPARTA-80.0a1 139949504604466111 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 03:7B:2D:6A:C2:E3:8B:01:AB:8B:FB:61:BB:3D:8E:7B:EE:67:BB:17:32:76:CD:6F:31:FC:2D:25:57:8C:4D:16
a=group:BUNDLE 0
a=ice-options:trickle
a=msid-semantic:WMS *
m=video 9 UDP/TLS/RTP/SAVPF 121 120 124 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:120 x-google-min-bitrate=256; x-google-max-bitrate=256
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:b6191338d53b74339291485603919b8b
a=ice-ufrag:bc35b566
a=mid:0
a=msid:{edcf6136-5a4f-1a49-9735-5d2fd795fa4c} {78c9f35f-8644-c843-a681-b82a6c81493a}
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=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:1315846619 cname:{bd315620-1106-7541-b3bb-3d1ea1616d6c}
a=ssrc:122179721 cname:{bd315620-1106-7541-b3bb-3d1ea1616d6c}
a=ssrc-group:FID 1315846619 122179721

{
————"candidate": "{\"candidate\":\"candidate:0 1 UDP 2122252543 192.168.0.139 56158 typ host\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:0 1 UDP 2122252543 192.168.0.139 56158 typ host
{
————"candidate": "{\"candidate\":\"candidate:5 1 TCP 2105524479 192.168.0.139 9 typ host tcptype active\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:5 1 TCP 2105524479 192.168.0.139 9 typ host tcptype active
{
————"candidate": "{\"candidate\":\"candidate:0 2 UDP 2122252542 192.168.0.139 53878 typ host\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:0 2 UDP 2122252542 192.168.0.139 53878 typ host
{
————"candidate": "{\"candidate\":\"candidate:5 2 TCP 2105524478 192.168.0.139 9 typ host tcptype active\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:5 2 TCP 2105524478 192.168.0.139 9 typ host tcptype active
{
————"candidate": "{\"candidate\":\"candidate:1 1 UDP 1686052863 167.100.78.229 56158 typ srflx raddr 192.168.0.139 rport 56158\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:1 1 UDP 1686052863 167.100.78.229 56158 typ srflx raddr 192.168.0.139 rport 56158
0:00:08.476186000 99932 0x7fbf86b07c60 ERROR              webrtcice gstwebrtcice.c:423:_add_stun_server:<webrtcice0> Stun server 'stun:stun.l.google.com:19302' has no host, must be of the form stun://<host>:<port>
0:00:08.580374000 99932 0x7fbf8901db00 FIXME                default gstutils.c:3981:gchar *gst_pad_create_stream_id_internal(GstPad *, GstElement *, const gchar *):<nicesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:08.580468000 99932 0x7fbf8901db00 WARN                GST_PADS gstpad.c:4231:gboolean gst_pad_peer_query(GstPad *, GstQuery *):<nicesrc0:src> could not send sticky events
0:00:08.585259000 99932 0x7fbf8901db60 FIXME                default gstutils.c:3981:gchar *gst_pad_create_stream_id_internal(GstPad *, GstElement *, const gchar *):<nicesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:08.585294000 99932 0x7fbf8901db60 WARN                GST_PADS gstpad.c:4231:gboolean gst_pad_peer_query(GstPad *, GstQuery *):<nicesrc1:src> could not send sticky events
{
————"candidate": "{\"candidate\":\"candidate:1 2 UDP 1686052862 167.100.78.229 53878 typ srflx raddr 192.168.0.139 rport 53878\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice candidate:1 2 UDP 1686052862 167.100.78.229 53878 typ srflx raddr 192.168.0.139 rport 53878
0:00:08.657570000 99932 0x7fbf8bc3ab00 WARN                     bin gstbin.c:2788:gboolean gst_bin_do_latency_func(GstBin *):<webrtc main> did not really configure latency of 0:00:00.000000000
0:00:08.671607000 99932 0x7fbf8981a920 FIXME               basesink gstbasesink.c:3248:gboolean gst_base_sink_default_event(GstBaseSink *, GstEvent *):<nicesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:08.671983000 99932 0x7fbf8981a980 FIXME               basesink gstbasesink.c:3248:gboolean gst_base_sink_default_event(GstBaseSink *, GstEvent *):<nicesink1> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
local-sdp "v=0\r\no=- 139949504604466111 0 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=ice-options:trickle\r\na=group:BUNDLE 0\r\nm=video 9 UDP/TLS/RTP/SAVPF 121\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:cjZTxz+kzs9A9knEBouNHXdwnZ8tFvhR\r\na=ice-pwd:zRS2oFpI0+LbbGMXIlZ2jFXCTDK6FeUi\r\na=mid:0\r\na=rtcp-mux\r\na=setup:active\r\na=rtpmap:121 VP9/90000\r\na=rtcp-fb:121 nack pli\r\na=rtcp-fb:121 ccm fir\r\na=fmtp:121 max-fs=12288;max-fr=60\r\na=recvonly\r\na=fingerprint:sha-256 5C:37:AF:86:9C:3B:09:BD:6D:6D:B0:84:21:4F:8F:08:8E:1F:3F:9F:58:86:E1:B9:0C:42:15:5A:9C:36:CE:14\r\n"
{
————"candidate": "{\"candidate\":\"\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":\"bc35b566\"}",
————"to": "qesw621atsuxsqyy8c5",
————"userid": "fff"
}
adding ice

(<unknown>:99932): libnice-CRITICAL **: 11:45:21.090: nice_agent_parse_remote_candidate_sdp: assertion 'sdp != NULL' failed
0:00:08.686392000 99932 0x7fbf86b07c60 WARN               webrtcice gstwebrtcice.c:622:gst_webrtc_ice_add_candidate:<webrtcice0> Could not parse candidate '(null)'
{
————"roomid": "httpswwwwebrtc-experimentcomscreen-sharing8013186679602875",
————"broadcasting": true,
————"userid": "fff"
}
{
————"roomid": "httpswwwwebrtc-experimentcomscreen-sharing8013186679602875",
————"broadcasting": true,
————"userid": "fff"
}
{
————"roomid": "httpswwwwebrtc-experimentcomscreen-sharing8013186679602875",
————"broadcasting": true,
————"userid": "fff"
}
{
————"roomid": "httpswwwwebrtc-experimentcomscreen-sharing8013186679602875",
————"broadcasting": true,
————"userid": "fff"
}
{
————"roomid": "httpswwwwebrtc-experimentcomscreen-sharing8013186679602875",
————"broadcasting": true,
————"userid": "fff"
}

@jdm
Copy link
Member Author

jdm commented Jul 16, 2020

A couple errors stick out:

0:00:08.476186000 99932 0x7fbf86b07c60 ERROR              webrtcice gstwebrtcice.c:423:_add_stun_server:<webrtcice0> Stun server 'stun:stun.l.google.com:19302' has no host, must be of the form stun://<host>:<port>

And:

(<unknown>:99932): libnice-CRITICAL **: 11:45:21.090: nice_agent_parse_remote_candidate_sdp: assertion 'sdp != NULL' failed
0:00:08.686392000 99932 0x7fbf86b07c60 WARN               webrtcice gstwebrtcice.c:622:gst_webrtc_ice_add_candidate:<webrtcice0> Could not parse candidate '(null)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant