Table of Contents

Class HTTPMJPEGSourceSettings

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

HTTP MJPEG source settings.

public class HTTPMJPEGSourceSettings : HTTPSourceSettings, IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettings

Inheritance

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

VideoFrameRate

Latency

Gets or sets the latency (buffer size).

public TimeSpan Latency { get; set; }

Property Value

TimeSpan

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

uri Uri

The URI.

login string

The login.

password string

The password.

readInfo bool

if set to true to 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

true if audio available; otherwise, false.

IsVideoAvailable()

Determines whether video available.

public bool IsVideoAvailable()

Returns

bool

true if 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.