MJPEGStream Class |
Namespace: Accord.Video
The MJPEGStream type exposes the following members.
Name | Description | |
---|---|---|
MJPEGStream |
Initializes a new instance of the MJPEGStream class.
| |
MJPEGStream(String) |
Initializes a new instance of the MJPEGStream class.
|
Name | Description | |
---|---|---|
BytesReceived |
Received bytes count.
| |
ForceBasicAuthentication |
Force using of basic authentication when connecting to the video source.
| |
FramesReceived |
Received frames count.
| |
HttpUserAgent |
User agent to specify in HTTP request header.
| |
IsRunning |
State of the video source.
| |
Login |
Login value.
| |
Password |
Password value.
| |
Proxy |
Gets or sets proxy information for the request.
| |
RequestTimeout |
Request timeout value.
| |
SeparateConnectionGroup |
Use or not separate connection group.
| |
Source |
Video source.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SignalToStop |
Signal video source to stop its work.
| |
Start |
Start video source.
| |
Stop |
Stop video source.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WaitForStop |
Wait for video source has stopped.
|
Name | Description | |
---|---|---|
NewFrame |
New frame event.
| |
PlayingFinished |
Video playing finished event.
| |
VideoSourceError |
Video source error event.
|
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
The video source downloads JPEG images from the specified URL, which represents MJPEG stream.
Sample usage:
// create MJPEG video source MJPEGStream stream = new MJPEGStream( "some url" ); // set event handlers stream.NewFrame += new NewFrameEventHandler( video_NewFrame ); // start the video source stream.Start( ); // ...
Note |
---|
Some cameras produce HTTP header, which does not conform strictly to standard, what leads to .NET exception. To avoid this exception the useUnsafeHeaderParsing configuration option of httpWebRequest should be set, what may be done using application configuration file. |
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
</configuration>