Class WebRTCSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Settings of VisioForge.Core.MediaBlocks.Sources.WebRTCSourceBlock: a WebRTC consumer on a GStreamer signalling server, such as the one VisioForge.Core.MediaBlocks.Sinks.WebRTCSinkBlock runs.
public class WebRTCSourceSettings : IMediaBlockSettingsInheritance
Implements
Inherited Members
Remarks
The producer the block receives from is chosen in this order: VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.ProducerPeerId when set; otherwise the first producer on the server when VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.ConnectToFirstProducer is on; otherwise the block waits for a producer to call it, which is how a browser page joins a call.
Properties
AudioEnabled
Gets or sets a value indicating whether the block has an audio output. The audio is decoded; its format is the one the producer sends. At least one of VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.VideoEnabled and VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.AudioEnabled must be on. Both are read when the block is constructed.
public bool AudioEnabled { get; set; }Property Value
ConnectToFirstProducer
Gets or sets a value indicating whether the block receives from the first producer the server lists, when VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.ProducerPeerId is not set. Off, the block waits for a producer to call it. Leave it off when this application's own VisioForge.Core.MediaBlocks.Sinks.WebRTCSinkBlock runs the server: it is a producer there too, and the block could pick it.
public bool ConnectToFirstProducer { get; set; }Property Value
ProducerPeerId
Gets or sets the peer ID of the producer to receive from. null chooses the producer as
VisioForge.Core.Types.X.Sources.WebRTCSourceSettings.ConnectToFirstProducer says.
public string ProducerPeerId { get; set; }Property Value
SignallingServer
Gets or sets the signalling server address, ws://host:port or wss://host:port.
The default is the server a VisioForge.Core.MediaBlocks.Sinks.WebRTCSinkBlock with default settings runs on this computer.
public string SignallingServer { get; set; }Property Value
StunServer
Gets or sets the STUN server in the form stun://hostname:port.
null keeps the element's default (stun://stun.l.google.com:19302).
public string StunServer { get; set; }Property Value
TurnServers
Gets or sets the TURN servers in the form turn(s)://username:password@host:port.
public string[] TurnServers { get; set; }Property Value
- string[]
VideoEnabled
Gets or sets a value indicating whether the block has a video output. The video is decoded; its format is the one the producer sends. With it off, a video stream the producer sends is received and discarded: declining it would fail the whole session, since the producer writes the offer.
public bool VideoEnabled { get; set; }Property Value
Methods
CreateBlock()
Creates the media block instance for the WebRTC source.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
A new instance of VisioForge.Core.MediaBlocks.Sources.WebRTCSourceBlock configured with these settings.