मैंने इस छोटे कार्यक्रम को बनाने के लिए एफ़ोर लाइब्रेरी का उपयोग किया है, जो एक वेबकैम से एक पिक्चरबॉक्स में लाइव फीड दिखाता है।सी # में आईपी कैमरा स्ट्रीम कैसे प्राप्त करें?
private FilterInfoCollection VideoCaptureDevices;
private VideoCaptureDevice FinalVideoDevice;
private void Form1_Load(object sender, EventArgs e)
{
VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
try
{
foreach (FilterInfo VidCapDev in VideoCaptureDevices)
{
comboBox1.Items.Add(VidCapDev.Name);
comboBox1.SelectedIndex = 0;
}
FinalVideoDevice = new VideoCaptureDevice(VideoCaptureDevices[comboBox1.SelectedIndex].MonikerString);
FinalVideoDevice.NewFrame += new NewFrameEventHandler(FinalVideoDevice_NewFrame);
FinalVideoDevice.Start();
}
catch
{
MessageBox.Show("No camera found. Please connect your camera and click RESET.");
}
}
//////////////////////////////////////////////////////////////////////////////////////////
void FinalVideoDevice_NewFrame(object sender, NewFrameEventArgs e)
{
try
{
pictureBox1.Image = (Bitmap)e.Frame.Clone();
}
catch { }
}
लेकिन मुझे आईपी कैमरे से स्ट्रीम प्राप्त करने की भी आवश्यकता है। कोई विचार यह प्राप्त करने का सबसे अच्छा तरीका क्या होगा?
+1 की शुभकामना के रूप में मैं वाणिज्यिक सॉफ्टवेयर है कि कैप्चर डिवाइस के सभी प्रकार संभालती में इसका इस्तेमाल करते हैं - वेबकैम उन के बीच में किया जा रहा है। –