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, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
AsyncConnect
Gets or sets a value indicating whether to use asynchronous connection.
public bool AsyncConnect { get; set; }Property Value
AudioEnabled
Gets or sets a value indicating whether audio stream is enabled.
public bool AudioEnabled { get; set; }Property Value
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
CustomVideoDecoder
Gets or sets the custom video decoder to use.
public string CustomVideoDecoder { get; set; }Property Value
ExtraConnectArgs
Gets or sets extra connection arguments for the RTMP connection.
public string ExtraConnectArgs { get; set; }Property Value
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
IdleTimeout
Gets or sets the idle timeout for the connection.
public TimeSpan IdleTimeout { get; set; }Property Value
NoEofIsError
Gets or sets a value indicating whether no EOF should be treated as an error.
public bool NoEofIsError { get; set; }Property Value
Uri
Gets or sets the RTMP stream URI.
public Uri Uri { get; set; }Property Value
UseGPUDecoder
Gets or sets a value indicating whether to use GPU decoder.
public bool UseGPUDecoder { get; set; }Property Value
Methods
CreateAsync(Uri, bool, bool)
Creates RTMP source settings asynchronously.
public static Task<RTMPSourceSettings> CreateAsync(Uri uri, bool audioEnabled = true, bool readInfo = true)Parameters
uriUri-
The RTMP stream URI.
audioEnabledbool-
if set to
trueaudio is enabled. readInfobool-
if set to
trueto 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
-
trueif audio is available; otherwise,false.
IsVideoAvailable()
Determines whether video is available in the stream.
public bool IsVideoAvailable()Returns
- bool
-
trueif 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.