Table of Contents

Class RTMPSourceSettings

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

RTMP source settings for streaming from RTMP servers.

public class RTMPSourceSettings : IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Properties

AsyncConnect

Gets or sets a value indicating whether to use asynchronous connection.

public bool AsyncConnect { get; set; }

Property Value

bool

AudioEnabled

Gets or sets a value indicating whether audio stream is enabled.

public bool AudioEnabled { get; set; }

Property Value

bool

CompatibilityMode

Gets or sets a value indicating whether to use compatibility mode. In compatibility mode, the SDK will not try to read stream information, but will still try to open and play the stream.

public bool CompatibilityMode { get; set; }

Property Value

bool

CustomVideoDecoder

Gets or sets the custom video decoder to use.

public string CustomVideoDecoder { get; set; }

Property Value

string

ExtraConnectArgs

Gets or sets extra connection arguments for the RTMP connection.

public string ExtraConnectArgs { get; set; }

Property Value

string

FallbackSwitch

Gets or sets the fallback switch settings for automatic failover. When configured, the source will automatically switch to a fallback (static text, image, or media) when the main RTMP stream fails.

public FallbackSwitchSettings FallbackSwitch { get; set; }

Property Value

FallbackSwitchSettings

IdleTimeout

Gets or sets the idle timeout for the connection.

public TimeSpan IdleTimeout { get; set; }

Property Value

TimeSpan

NoEofIsError

Gets or sets a value indicating whether no EOF should be treated as an error.

public bool NoEofIsError { get; set; }

Property Value

bool

Uri

Gets or sets the RTMP stream URI.

public Uri Uri { get; set; }

Property Value

Uri

UseGPUDecoder

Gets or sets a value indicating whether to use GPU decoder.

public bool UseGPUDecoder { get; set; }

Property Value

bool

Methods

CreateAsync(Uri, bool, bool)

Creates RTMP source settings asynchronously.

public static Task<RTMPSourceSettings> CreateAsync(Uri uri, bool audioEnabled = true, bool readInfo = true)

Parameters

uri Uri

The RTMP stream URI.

audioEnabled bool

if set to true audio is enabled.

readInfo bool

if set to true to read stream information. Disable only if you have connection issues.

Returns

Task<RTMPSourceSettings>

A Task<RTMPSourceSettings> representing the asynchronous operation.

CreateBlock()

Creates a MediaBlock instance from these settings.

public MediaBlock CreateBlock()

Returns

MediaBlock

A new RTMPSourceBlock configured with these settings.

GetInfo()

Gets the cached media information.

public MediaFileInfo GetInfo()

Returns

MediaFileInfo

MediaFileInfo containing stream information.

IsAudioAvailable()

Determines whether audio is available in the stream.

public bool IsAudioAvailable()

Returns

bool

true if audio is available; otherwise, false.

IsVideoAvailable()

Determines whether video is available in the stream.

public bool IsVideoAvailable()

Returns

bool

true if video is available; otherwise, false.

ReadInfo()

Reads the stream information.

public MediaFileInfo ReadInfo()

Returns

MediaFileInfo

MediaFileInfo containing stream information.

ReadInfoAsync()

Reads the stream information asynchronously.

public Task<MediaFileInfo> ReadInfoAsync()

Returns

Task<MediaFileInfo>

Task<MediaFileInfo> containing stream information.