Table of Contents

Class RTSPRAWSourceSettings

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

RTSP RAW source settings.

public class RTSPRAWSourceSettings : IMediaPlayerBaseSourceSettings, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Properties

AllowedProtocols

Gets or sets the allowed protocols.

public RTSPSourceProtocol AllowedProtocols { get; set; }

Property Value

RTSPSourceProtocol

AudioEnabled

Gets a value indicating whether audio stream is enabled.

public bool AudioEnabled { get; }

Property Value

bool

DecodeAudioStream

Gets or sets a value indicating whether to decode audio stream. May be required if you want to save an original video stream and PCM audio to a file.

public bool DecodeAudioStream { get; set; }

Property Value

bool

DoRTCP

Gets or sets a value indicating whether do RTCP.

public bool DoRTCP { get; set; }

Property Value

bool

Latency

Gets or sets the latency.

public int Latency { get; set; }

Property Value

int

Login

Gets or sets the login.

public string Login { get; set; }

Property Value

string

Password

Gets or sets the password.

public string Password { get; set; }

Property Value

string

RTPBlockSize

Gets or sets the size of the RTP block.

public int RTPBlockSize { get; set; }

Property Value

int

SyncAudioWithKeyframe

Gets or sets whether to synchronize audio with the first video keyframe. When enabled, audio frames before the first keyframe are dropped to maintain A/V sync.

public bool SyncAudioWithKeyframe { get; set; }

Property Value

bool

UDPBufferSize

Gets or sets the size of the UDP buffer.

public int UDPBufferSize { get; set; }

Property Value

int

Uri

Gets the URI.

public Uri Uri { get; }

Property Value

Uri

WaitForKeyframe

Gets or sets whether to wait for a keyframe before starting video playback. When enabled, ensures clean stream start from an I-frame with synchronized audio.

public bool WaitForKeyframe { get; set; }

Property Value

bool

Methods

CreateAsync(Uri, string, string, bool, bool, BaseContext, CancellationToken)

Create as an asynchronous operation.

public static Task<RTSPRAWSourceSettings> CreateAsync(Uri uri, string login, string password, bool audioEnabled = true, bool readInfo = true, BaseContext context = null, CancellationToken cancellationToken = default)

Parameters

uri Uri

The URI.

login string

The login.

password string

The password.

audioEnabled bool

if set to true audio enabled.

readInfo bool

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

context BaseContext

The base context for logging.

cancellationToken CancellationToken

A token to observe while waiting for the task to complete.

Returns

Task<RTSPRAWSourceSettings>

A Task<RTSPRAWSourceSettings> representing the asynchronous operation.

CreateBlock()

Creates the block.

public MediaBlock CreateBlock()

Returns

MediaBlock

MediaBlock.

GetInfo()

Gets the file information.

public MediaFileInfo GetInfo()

Returns

MediaFileInfo

MediaFileInfo.

ReadInfoAsync()

Read information as an asynchronous operation.

public Task<MediaFileInfo> ReadInfoAsync()

Returns

Task<MediaFileInfo>

A Task<MediaFileInfo> representing the asynchronous operation.

ReadInfoAsync(CancellationToken)

Read information as an asynchronous operation.

public Task<MediaFileInfo> ReadInfoAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<MediaFileInfo>

A Task<MediaFileInfo> representing the asynchronous operation.