我正在尝试使用 Aforge 库流式传输 IPCAM D'Link 但我没有成功:我想将视频流显示到 PB 控件中。我的代码:
Imports AForge.Video
Public Class Form1
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Try
Dim stream As New MJPEGStream("http://190.6.198.3/video/mjpg.cgi")
stream.Login() = "admin"
stream.Password() = ""
stream.Start()
Catch ex As System.Net.WebException
MsgBox(ex.Message.ToString)
End Try
End Sub
End Class