Class MjpegHttpSource
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
Parameters
Gets or sets source parameters.
public override SourceParameters Parameters { get; set; }
Property Value
StreamCount
Gets the number of streams in the source. Always returns 1 for MJPEG sources.
public override int StreamCount { get; }
Property Value
Methods
GetMediaType(int)
Gets the media type for the specified stream index.
public override MediaType GetMediaType(int streamIndex)
Parameters
streamIndexintThe 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
Returns
- Task
Never returns; always throws.
Exceptions
- NotImplementedException
Always thrown as this operation is not supported.