JPEG video source.
Namespace:
AForge.VideoAssembly: AForge.Video (in AForge.Video.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
| C# |
|---|
public class JPEGStream : IVideoSource |
Remarks
The video source constantly downloads JPEG files from the specified URL.
Sample usage:
// create JPEG video source JPEGStream stream = new JPEGStream( "some url" ); // set NewFrame event handler stream.NewFrame += new NewFrameEventHandler( video_NewFrame ); // start the video source stream.Start( ); // ... // signal to stop stream.SignalToStop( ); // ... private void video_NewFrame( object sender, NewFrameEventArgs eventArgs ) { // get new frame Bitmap bitmap = eventArgs.Frame; // process the frame }
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
</configuration>