1
Reply

live video streaming from one pc to multiple pc's

Pramod Kumar Nandagiri

Pramod Kumar Nandagiri

Nov 2 2009 1:51 AM
5.1k

bellow is the code iam using for vido streaming through the ethernet cable, with this code iam able to send video stream to only on pc using the ipaddress of that pc if i want to send it to the multiple pc's  then how , please help me on this
 
System.Drawing.
Size s = new System.Drawing.Size(115, 115);

pictureBox1.Image = resizeImage(e.WebCamImage, s);
pictureBox1.Image.Save(
"C:\\img1.jpg");  //for every 20 milliseconds this image is updated
string path = "c:\\img1.jpg"; //this image is send to other pc for every 20 ms, through trasferring imagefile for every 20ms iam doing video streaming
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
byte[] data = br.ReadBytes(Convert.ToInt16(fs.Length));
send =
new UdpClient();
sendpt =
new IPEndPoint(IPAddress.Parse(txtipaddress.Text), 3333);//Here Iam giving ip address , by giving like this i can send this video //stream to only one system if want to send this video stream to two different applies running on two diffrent systems then i need to //use the ipaddresses of the two systems
//how to send this video stream to multiple systems
send.Send(data, data.Length, sendpt);
fs.Close();
br.Close();
send.Close();

Answers (1)