Table of Contents

Class WHEPServerSinkSettings

Namespace
VisioForge.Core.Types.X.Sinks
Assembly
VisioForge.Core.dll

Settings of VisioForge.Core.MediaBlocks.Sinks.WHEPServerSinkBlock: a WHEP (WebRTC-HTTP Egress Protocol) server that browsers and other WHEP players read the stream from.

public class WHEPServerSinkSettings : IMediaBlockSettings

Inheritance

Implements

Inherited Members

Properties

ServerAddress

Gets or sets the address the WHEP server listens on, for example http://0.0.0.0:9090. Players post their offer to /whep/endpoint on it (VisioForge.Core.MediaBlocks.Sinks.WHEPServerSinkBlock.EndpointUrl). Only http:// is supported; the build fails when the port is already in use. The default accepts players on this machine only.

public string ServerAddress { get; set; }

Property Value

string

StunServer

Gets or sets the STUN server in the form stun://hostname:port. null uses no STUN server, which is enough on a local network.

public string StunServer { get; set; }

Property Value

string

TurnServer

Gets or sets the TURN server in the form turn(s)://username:password@host:port.

public string TurnServer { get; set; }

Property Value

string

Methods

CreateBlock()

Creates the media block instance for the WHEP server sink.

public MediaBlock CreateBlock()

Returns

MediaBlock

A new instance of VisioForge.Core.MediaBlocks.Sinks.WHEPServerSinkBlock configured with these settings.