So I am testing out AForge for accessing some IP cameras on the network here and have run into a snag. I am using the Sample Source Code from the Framework 2.5.5 zip I found on Google Code.(https://code.google.com/archive/p/aforge/downloads) Everything was converted over to VB from C# and runs fine to a point. I can select the local camera option and what not with images loading fine. However, when I select the JPEG or MJPEG options it errors at the videoSourcePlayer.Start() line shown below:
Private Sub OpenVideoSource(ByVal source As IVideoSource)
Me.Cursor = Cursors.WaitCursor
CloseCurrentVideoSource()
videoSourcePlayer.VideoSource = source
videoSourcePlayer.Start() <------------------ ERROR SHOWS HERE -----------------> System.ArgumentException: 'Video source is not specified.'
stopWatch = Nothing
timer.Start()
Me.Cursor = Cursors.[Default]
End Sub
Now this is most likely an error on my part as I'm not a very strong programmer. I am at a loss as to what step to take next though.. If anyone could assist it would be greatly appreciated.