webrtcsink: Example shows black video screen with no audio
Running all steps from the README results in a black screen with no audio on firerfox and chrome. The webrtc logs in firefox remain empty which makes me suspect that no stream is being set up at all (no errors either)
relevant logs:
19:38 $ gst-launch-1.0 webrtcsink name=ws videotestsrc ! ws. audiotestsrc ! ws.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
0:00:24.4 / 99:99:99.
19:37 $ WEBRTCSINK_SIGNALLING_SERVER_LOG=debug cargo run --bin gst-webrtc-signalling-server
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Skipping git submodule `https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files` due to update strategy in .gitmodules
Finished dev [optimized + debuginfo] target(s) in 0.27s
Running `target/debug/gst-webrtc-signalling-server`
2022-12-27T18:38:08.266282Z INFO ThreadId(01) gst_webrtc_signalling_server: Listening on: 0.0.0.0:8443
2022-12-27T18:38:18.604220Z INFO ThreadId(01) gst_webrtc_signalling_server: Accepting connection from 127.0.0.1:36500
2022-12-27T18:38:18.604357Z DEBUG ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: new
2022-12-27T18:38:18.604483Z DEBUG ThreadId(08) accept_async: tungstenite::handshake::server: Server handshake done.
2022-12-27T18:38:18.604503Z INFO ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: New WebSocket connection this_id=6c0989b2-6fd2-4451-b1cd-13ee6e9e797d
2022-12-27T18:38:18.604545Z DEBUG ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: close time.busy=134µs time.idle=56.1µs
2022-12-27T18:38:18.604579Z INFO ThreadId(08) gst_plugin_webrtc_signalling::server: Received message Ok(Text("{\"type\":\"setPeerStatus\",\"roles\":[\"producer\"],\"meta\":null}"))
2022-12-27T18:38:18.604639Z DEBUG ThreadId(08) set_peer_status{peer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" status=PeerStatus { roles: [Producer], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: new
2022-12-27T18:38:18.604659Z INFO ThreadId(08) set_peer_status{peer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" status=PeerStatus { roles: [Producer], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: registered as a producer peer_id=6c0989b2-6fd2-4451-b1cd-13ee6e9e797d
2022-12-27T18:38:18.604668Z DEBUG ThreadId(08) set_peer_status{peer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" status=PeerStatus { roles: [Producer], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: close time.busy=16.8µs time.idle=12.7µs
2022-12-27T18:38:22.381676Z INFO ThreadId(01) gst_webrtc_signalling_server: Accepting connection from 127.0.0.1:53404
2022-12-27T18:38:22.381725Z DEBUG ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: new
2022-12-27T18:38:22.381846Z DEBUG ThreadId(08) accept_async: tungstenite::handshake::server: Server handshake done.
2022-12-27T18:38:22.381866Z INFO ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: New WebSocket connection this_id=9c76f765-99ab-4d82-b014-f9f1a9697a36
2022-12-27T18:38:22.381890Z DEBUG ThreadId(08) accept_async: gst_plugin_webrtc_signalling::server: close time.busy=130µs time.idle=36.0µs
2022-12-27T18:38:22.386270Z INFO ThreadId(02) gst_plugin_webrtc_signalling::server: Received message Ok(Text("{\"type\":\"setPeerStatus\",\"roles\":[\"listener\"]}"))
2022-12-27T18:38:22.386327Z INFO ThreadId(02) gst_plugin_webrtc_signalling::server: Received message Ok(Text("{\"type\":\"list\"}"))
2022-12-27T18:38:22.386380Z DEBUG ThreadId(02) set_peer_status{peer_id="9c76f765-99ab-4d82-b014-f9f1a9697a36" status=PeerStatus { roles: [Listener], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: new
2022-12-27T18:38:22.386437Z INFO ThreadId(02) set_peer_status{peer_id="9c76f765-99ab-4d82-b014-f9f1a9697a36" status=PeerStatus { roles: [Listener], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: registered as a producer peer_id=9c76f765-99ab-4d82-b014-f9f1a9697a36
2022-12-27T18:38:22.386455Z DEBUG ThreadId(02) set_peer_status{peer_id="9c76f765-99ab-4d82-b014-f9f1a9697a36" status=PeerStatus { roles: [Listener], meta: None, peer_id: None }}: gst_plugin_webrtc_signalling::handlers: close time.busy=39.6µs time.idle=36.4µs
2022-12-27T18:38:22.386486Z DEBUG ThreadId(02) list_producers{peer_id="9c76f765-99ab-4d82-b014-f9f1a9697a36"}: gst_plugin_webrtc_signalling::handlers: new
2022-12-27T18:38:22.386505Z DEBUG ThreadId(02) list_producers{peer_id="9c76f765-99ab-4d82-b014-f9f1a9697a36"}: gst_plugin_webrtc_signalling::handlers: close time.busy=5.89µs time.idle=12.3µs
2022-12-27T18:38:24.487890Z INFO ThreadId(01) gst_webrtc_signalling_server: Accepting connection from 127.0.0.1:53412
2022-12-27T18:38:24.487950Z DEBUG ThreadId(02) accept_async: gst_plugin_webrtc_signalling::server: new
2022-12-27T18:38:24.488120Z DEBUG ThreadId(02) accept_async: tungstenite::handshake::server: Server handshake done.
2022-12-27T18:38:24.488156Z INFO ThreadId(02) accept_async: gst_plugin_webrtc_signalling::server: New WebSocket connection this_id=75179213-2462-4903-863d-960c583011c7
2022-12-27T18:38:24.488176Z DEBUG ThreadId(02) accept_async: gst_plugin_webrtc_signalling::server: close time.busy=173µs time.idle=55.1µs
2022-12-27T18:38:24.498566Z INFO ThreadId(02) gst_plugin_webrtc_signalling::server: Received message Ok(Text("{\"type\":\"startSession\",\"peerId\":\"6c0989b2-6fd2-4451-b1cd-13ee6e9e797d\"}"))
2022-12-27T18:38:24.498616Z DEBUG ThreadId(02) start_session{producer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" consumer_id="75179213-2462-4903-863d-960c583011c7"}: gst_plugin_webrtc_signalling::handlers: new
2022-12-27T18:38:24.498644Z INFO ThreadId(02) start_session{producer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" consumer_id="75179213-2462-4903-863d-960c583011c7"}: gst_plugin_webrtc_signalling::handlers: started a session id=838a9e72-d651-4dfb-b730-2259c9f3babe producer_id=6c0989b2-6fd2-4451-b1cd-13ee6e9e797d consumer_id=75179213-2462-4903-863d-960c583011c7
2022-12-27T18:38:24.498662Z DEBUG ThreadId(02) start_session{producer_id="6c0989b2-6fd2-4451-b1cd-13ee6e9e797d" consumer_id="75179213-2462-4903-863d-960c583011c7"}: gst_plugin_webrtc_signalling::handlers: close time.busy=30.4µs time.idle=16.7µs
2022-12-27T18:38:52.387725Z INFO ThreadId(09) gst_plugin_webrtc_signalling::server: Received message Ok(Pong([]))
2022-12-27T18:38:54.500331Z INFO ThreadId(08) gst_plugin_webrtc_signalling::server: Received message Ok(Pong([]))
2022-12-27T18:38:54.500379Z INFO ThreadId(09) gst_plugin_webrtc_signalling::server: Received message Ok(Pong([]))
4:07 $ python3 -m http.server -d www/
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET /theme.css HTTP/1.1" 200 -
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET /input.js HTTP/1.1" 200 -
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET /keyboard.js HTTP/1.1" 200 -
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET /webrtc.js HTTP/1.1" 200 -
127.0.0.1 - - [27/Dec/2022 19:37:10] code 404, message File not found
127.0.0.1 - - [27/Dec/2022 19:37:10] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [27/Dec/2022 19:37:29] "GET / HTTP/1.1" 304 -
Connecting listener webrtc.js:451:13
Received {"type":"welcome","peer_id":"9c76f765-99ab-4d82-b014-f9f1a9697a36"} webrtc.js:382:13
Got welcomed with ID 9c76f765-99ab-4d82-b014-f9f1a9697a36 webrtc.js:396:17
Received {"type":"list","producers":[{"id":"6c0989b2-6fd2-4451-b1cd-13ee6e9e797d","meta":null}]} webrtc.js:382:13
Meta: null webrtc.js:347:13
Received {"type":"peerStatusChanged","roles":["listener"],"meta":null,"peerId":"9c76f765-99ab-4d82-b014-f9f1a9697a36"} webrtc.js:382:13
Our ID: 6b5c74d1-1271-4178-8731-1484fbf4d5ee webrtc.js:209:17
Connecting to server ws://localhost:8443 webrtc.js:93:17
Connecting to the peer webrtc.js:93:17
Connecting 6c0989b2-6fd2-4451-b1cd-13ee6e9e797d webrtc.js:93:17
Received {"type":"welcome","peer_id":"75179213-2462-4903-863d-960c583011c7"} webrtc.js:153:17
Received {"type":"sessionStarted","peerId":"6c0989b2-6fd2-4451-b1cd-13ee6e9e797d","sessionId":"838a9e72-d651-4dfb-b730-2259c9f3babe"} webrtc.js:153:17
Registered with server webrtc.js:93:17