mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +00:00
webrtcsrc: document how to use the element for remote control
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1281>
This commit is contained in:
parent
3000b08ec7
commit
3c1f05cdc3
1 changed files with 15 additions and 5 deletions
|
@ -141,17 +141,27 @@ gst-launch-1.0 webrtcsink signaller::uri="ws://127.0.0.1:8443" ..
|
||||||
with the content, for example move with your mouse, entering keys with the
|
with the content, for example move with your mouse, entering keys with the
|
||||||
keyboard, etc... On top of that a `WebRTCDataChannel` based protocol has been
|
keyboard, etc... On top of that a `WebRTCDataChannel` based protocol has been
|
||||||
implemented and can be activated with the `enable-data-channel-navigation=true`
|
implemented and can be activated with the `enable-data-channel-navigation=true`
|
||||||
property. The [gstwebrtc-api](gstwebrtc-api) implements the protocol and you
|
property allowing a client to send GstNavigation events using the WebRTC data channel.
|
||||||
can easily test this feature using the [`wpesrc`] for example.
|
|
||||||
|
|
||||||
As an example, the following pipeline allows you to navigate the GStreamer
|
The [gstwebrtc-api](gstwebrtc-api) and `webrtcsrc` implement the protocol as well
|
||||||
documentation inside the video running within your web browser (at
|
and they can be used as a client to control a remote sever.
|
||||||
https://127.0.0.1:9090 if you followed previous steps in that readme):
|
|
||||||
|
You can easily test this feature using the [`wpesrc`] element with the following pipeline
|
||||||
|
that will start a server that allows you to navigate the GStreamer documentation:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
gst-launch-1.0 wpesrc location=https://gstreamer.freedesktop.org/documentation/ ! queue ! webrtcsink enable-data-channel-navigation=true meta="meta,name=web-stream"
|
gst-launch-1.0 wpesrc location=https://gstreamer.freedesktop.org/documentation/ ! queue ! webrtcsink enable-data-channel-navigation=true meta="meta,name=web-stream"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can control it inside the video running within your web browser (at
|
||||||
|
https://127.0.0.1:9090 if you followed previous steps in that readme) or
|
||||||
|
with the following GSteamer pipeline as a client:
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
gst-launch-1.0 webrtcsrc signaller::producer-peer-id=<webrtcsink-peer-id> enable-data-channel-navigation=true ! videoconvert ! autovideosink
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
[`GstNavigation`]: https://gstreamer.freedesktop.org/documentation/video/gstnavigation.html
|
[`GstNavigation`]: https://gstreamer.freedesktop.org/documentation/video/gstnavigation.html
|
||||||
[`wpesrc`]: https://gstreamer.freedesktop.org/documentation/wpe/wpesrc.html
|
[`wpesrc`]: https://gstreamer.freedesktop.org/documentation/wpe/wpesrc.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue