using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AForge.Video; namespace CCTV_software { public partial class Form1 : Form { JPEGStream stream; JPEGStream stream1; public Form1() { InitializeComponent(); stream = new JPEGStream("ip"); stream1 = new JPEGStream("ip1"); stream.Login = "username"; stream.Password = "password"; stream1.Login = "username1"; stream1.Password = "password1"; stream.NewFrame += stream_NewFrame; stream1.NewFrame += stream1_NewFrame1; stream.Start(); stream1.Start(); } void stream_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap bmp = (Bitmap)eventArgs.Frame.Clone(); pictureBox1.Image = bmp; } void stream1_NewFrame1(object sender, NewFrameEventArgs eventArgs) { Bitmap bp = (Bitmap)eventArgs.Frame.Clone(); pictureBox2.Image = bp; } }
stream.FrameInterval = 0;
stream.FrameInterval = 1000;
stream1.NewFrame += stream1_NewFrame1; stream.FrameInterval = 1000; stream.Start(); stream1.Start(); }
PictureBox
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)