Class HTTPMJPEGSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
HTTP MJPEG source settings.
public class HTTPMJPEGSourceSettings : HTTPSourceSettings, IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
CustomVideoFrameRate
Gets or sets the custom video frame rate. Usually MJPEG cameras do not provide frame rate information.
public VideoFrameRate CustomVideoFrameRate { get; set; }Property Value
Latency
Gets or sets the latency (buffer size).
public TimeSpan Latency { get; set; }Property Value
Methods
CreateAsync(Uri, string, string, bool)
Create as an asynchronous operation.
public static Task<HTTPMJPEGSourceSettings> CreateAsync(Uri uri, string login = null, string password = null, bool readInfo = true)Parameters
uriUri-
The URI.
loginstring-
The login.
passwordstring-
The password.
readInfobool-
if set to
trueto read information. Disable only if you have some issues.
Returns
- Task<HTTPMJPEGSourceSettings>
-
A Task<RTSPSourceSettings> representing the asynchronous operation.
CreateBlock()
Creates the block.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
MediaBlock.
GetInfo()
Gets the information. Call the ReadInfoAsync method to get the information first.
public MediaFileInfo GetInfo()Returns
- MediaFileInfo
-
MediaFileInfo.
IsAudioAvailable()
Determines whether audio available.
public bool IsAudioAvailable()Returns
- bool
-
trueif audio available; otherwise,false.
IsVideoAvailable()
Determines whether video available.
public bool IsVideoAvailable()Returns
- bool
-
trueif video available; otherwise,false.
ReadInfoAsync()
Read information as an asynchronous operation.
public Task<MediaFileInfo> ReadInfoAsync()Returns
- Task<MediaFileInfo>
-
A Task<MediaFileInfo> representing the asynchronous operation.