I am trying to display an mpeg image in a picture box in Visual C#.
IT works when I use "http://88.53.197.250/axis-cgi/mjpg/video.cgi?resolution=320×240"); but not when I use my camera address which is a trendnet camera.
Here is the code. Any idea why my trend net does not work ? If I type the source on a web browser an image pops up.
private void button1_Click(object sender, EventArgs e)
{
// create MJPEG video source
MJPEGStream stream = new MJPEGStream("http://192.168.110.2/Streaming/channels/1/picture");
// MJPEGStream stream = new MJPEGStream("http://88.53.197.250/axis-cgi/mjpg/video.cgi?resolution=320×240"); //< This one works !
// set event handlers
stream.NewFrame += new NewFrameEventHandler(video_NewFrame);
// start the video source
stream.Start();
}
private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone();
// process the frame
pictureBox1.Image = bitmap;
}