Class RTSPRAWSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
RTSP RAW source settings.
public class RTSPRAWSourceSettings : IMediaPlayerBaseSourceSettings, IVideoSourceSettings, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
AllowedProtocols
Gets or sets the allowed protocols.
public RTSPSourceProtocol AllowedProtocols { get; set; }Property Value
AudioEnabled
Gets a value indicating whether audio stream is enabled.
public bool AudioEnabled { get; }Property Value
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
DoRTCP
Gets or sets a value indicating whether do RTCP.
public bool DoRTCP { get; set; }Property Value
Latency
Gets or sets the latency.
public int Latency { get; set; }Property Value
Login
Gets or sets the login.
public string Login { get; set; }Property Value
Password
Gets or sets the password.
public string Password { get; set; }Property Value
RTPBlockSize
Gets or sets the size of the RTP block.
public int RTPBlockSize { get; set; }Property Value
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
UDPBufferSize
Gets or sets the size of the UDP buffer.
public int UDPBufferSize { get; set; }Property Value
Uri
Gets the URI.
public Uri Uri { get; }Property Value
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
Methods
CreateAsync(Uri, string, string, bool)
Create as an asynchronous operation.
public static Task<RTSPRAWSourceSettings> CreateAsync(Uri uri, string login, string password, bool audioEnabled = true)Parameters
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.