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