janusvrwebrtcsrc
JanusVRWebRTCSrc
is an element that integrates with the Video Room plugin of the Janus Gateway.
It receives audio and/or video streams from WebRTC using Janus as the signaller.
Examples
First start sending a video stream to a janus room:
$ gst-launch-1.0 videotestsrc ! janusvrwebrtcsink signaller::room-id=1234 signaller::feed-id=777 signaller::janus-endpoint=wss://janus.conf.meetecho.com/ws
You can then retrieve this stream using:
$ gst-launch-1.0 janusvrwebrtcsrc signaller::room-id=1234 signaller::producer-peer-id=777 signaller::janus-endpoint=wss://janus.conf.meetecho.com/ws ! videoconvert ! autovideosink
You can also retrieve it using an URI:
$ gst-play-1.0 "gstjanusvrs://janus.conf.meetecho.com/ws?room-id=1234&producer-peer-id=777"
See also
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBin ╰──GstBaseWebRTCSrc ╰──janusvrwebrtcsrc
Implemented interfaces
Factory details
Authors: – Eva Pace
Classification: – Source/Network/WebRTC
Rank – none
Plugin – rswebrtc
Package – gst-plugin-webrtc
Pad Templates
audio_%s_%u
audio/x-raw(ANY):
application/x-rtp:
audio/x-opus:
video_%s_%u
video/x-raw(ANY):
application/x-rtp:
video/x-vp8:
video/x-h264:
video/x-vp9:
video/x-h265:
video/x-av1:
Properties
janus-state
“janus-state” GstJanusVRWebRTCJanusState *
The current state of the signaller.
Flags : Read
Default value : initialized (0)
Since : plugins-rs-0.14.0
use-string-ids
“use-string-ids” gboolean
By default Janus uses u64
ids to identify the room, the feed, etc.
But it can be changed to strings using the strings_ids
option in janus.plugin.videoroom.jcfg
.
In such case, janusvrwebrtcsrc
has to be created using use-string-ids=true
so its signaller
uses the right types for such ids and properties.
Flags : Read / Write / Construct Only
Default value : false
Since : plugins-rs-0.14.0
Named constants
GstJanusVRWebRTCJanusState
Members
initialized
(0) – Initialized
session-created
(1) – SessionCreated
videoroom-attached
(2) – VideoroomAttached
room-joined
(3) – RoomJoined
negotiating
(4) – Negotiating
webrtc-up
(5) – WebrtcUp
The results of the search are