C# 从ip摄像机获取流媒体时的问题
我使用的是DIgoo(DG-MIQ)ip摄像头。我想在windows窗体c中使用它。但是它不是基于摄像头的ip连接的,我不知道我的digoo摄像头的端口是什么。下面是我的代码C# 从ip摄像机获取流媒体时的问题,c#,visual-studio-2013,windows-forms-designer,ip-camera,C#,Visual Studio 2013,Windows Forms Designer,Ip Camera,我使用的是DIgoo(DG-MIQ)ip摄像头。我想在windows窗体c中使用它。但是它不是基于摄像头的ip连接的,我不知道我的digoo摄像头的端口是什么。下面是我的代码 public partial class vstream : Form { MJPEGStream stream; public vstream() { InitializeComponent(); stream = new MJPEGStream("
public partial class vstream : Form
{
MJPEGStream stream;
public vstream()
{
InitializeComponent();
stream = new MJPEGStream(" http://192.100.0.106");
stream.NewFrame += stream_NewFrame;
}
private void stream_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
Bitmap bmp = (Bitmap)eventArgs.Frame.Clone();
pictureBox1.Image = bmp;
}
private void btnstrt_Click(object sender, EventArgs e)
{
stream.Start();
}
private void btnstp_Click(object sender, EventArgs e)
{
stream.Stop();
}
}
若您可以在web浏览器中看到相机输出,请右键单击图像(视频),然后选择“在新选项卡中打开图像”以查看视频流的完整地址。 另一个选择是使用VLC播放器找出您的相机流路径