MJPEGStream Display Stream Aforge.Video.dll

余生颓废 提交于 2019-12-12 00:07:43

问题


I'm trying to stream an IPCAM D'Link using the Aforge Libraries but i'm not succeed: I want to display the video stream into an PB control. My Code:

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

回答1:


you kinda mixing the MJPEGStream and the control




回答2:


Dim mjpegSource As New MJPEGStream("rtsp://192.0.0.64:554/cam[CHANNEL]/mjpeg")
        mjpegSource.Login = "admin"
        mjpegSource.Password = ""
    VideoSourcePlayer1.VideoSource = mjpegSource

error is the url prefix is not recognized this is how i fixed but with vlc can streaming



来源:https://stackoverflow.com/questions/10823848/mjpegstream-display-stream-aforge-video-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!