webrtcsink : sample fails with "Unknown message from server: {"type":"welcome", "peerId":"836..."}

Vincent Deconinck vdeconinck at gmail.com
Sun Nov 12 23:53:41 UTC 2023


Hi,

Context: Gstreamer newbie here. I'm trying to use a pipeline to send an A/V
stream to a browser using WebRTC. The streamer, signalling server and
browser client will all be on the same private network. The following tests
were performed on Windows 10.

What I've tried: I had success in building and using the basic webrtcbin
sample but as I need a full fledged system (incl. signalling etc.), it
seems webrtcsink is the way to go, so I'm now trying to use it.
I followed the README at
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/main/net/webrtc/README.md
The code is built, the signalling server runs and the GstWebRTC API runs in
the browser.

Problem: The command to launch the pipeline (gst-launch-1.0 webrtcsink
name=ws meta="meta,name=gst-stream" videotestsrc ! ws. audiotestsrc ! ws.)
fails with:

ERROR: from element /GstPipeline:pipeline0/GstWebRTCSink:ws: GStreamer
encountered a general stream error.
Additional debug info:
net\webrtc\src\webrtcsink\imp.rs(1404): gstrswebrtc::webrtcsink::imp ():
/GstPipeline:pipeline0/GstWebRTCSink:ws:
Signalling error: Unknown message from server:
{"type":"welcome","peerId":"8365d5c1-a2c8-4a1b-a9b0-96c0dfe12060"}

Question: Any idea what the reason could be ? What can I try to understand
what is going on ?

Any help would be greatly appreciated

Vincent

PS: I was amazed at the quality of the gstreamer documentation, and in
particular the tutorials. I have never seen explanations of such quality
for an open-source project.
Kudos to the contributors !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20231113/7fc8f790/attachment.htm>


More information about the gstreamer-devel mailing list