Table of Contents

Class MjpegHttpSource

Namespace
VAST.Image.JPEG
Assembly
VAST.Image.dll

Provides a media source for receiving MJPEG video streams over HTTP. Supports both multipart/x-mixed-replace format and continuous JPEG streams.

public class MjpegHttpSource : AbstractHttpSource, INetworkSource, IMediaSource, IReferenceable, IDisposable, INetworkEndPoint
Inheritance
MjpegHttpSource
Implements
Inherited Members

Constructors

MjpegHttpSource()

Initializes a new instance of the MjpegHttpSource class.

public MjpegHttpSource()

Exceptions

UnauthorizedAccessException

Thrown when the license is invalid.

Properties

Capabilities

Gets the list of source capabilities.

public override List<SourceCapability> Capabilities { get; }

Property Value

List<SourceCapability>

Parameters

Gets or sets source parameters.

public override SourceParameters Parameters { get; set; }

Property Value

SourceParameters

StreamCount

Gets the number of streams in the source. Always returns 1 for MJPEG sources.

public override int StreamCount { get; }

Property Value

int

Methods

GetMediaType(int)

Gets the media type for the specified stream index.

public override MediaType GetMediaType(int streamIndex)

Parameters

streamIndex int

The stream index (must be 0 for MJPEG sources).

Returns

MediaType

The media type if streamIndex is 0; otherwise, null.

SetDesiredOutputType(int, MediaType)

Sets the desired output type for a stream. Not implemented for MJPEG sources.

public override Task SetDesiredOutputType(int streamIndex, MediaType mediaType)

Parameters

streamIndex int

The stream index.

mediaType MediaType

The desired media type.

Returns

Task

Never returns; always throws.

Exceptions

NotImplementedException

Always thrown as this operation is not supported.