Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm a new programmer in Visual Studio 2010 and i work usually with Visual Basic.I also use C# some times.
At this time I want to have the ability to watch my IP camera view via Visual Basic 2010 and VLC plugin.
My camera works as a Web Server and it has a 'User Name' and a 'Password' in order to be accessed.

I use the code below:
vlc1.addtarget("rtsp://ipofcamera:554//mpeg4/media.amp",Nullable,AxVLC.VLCPlayListMode.VLCPlayListInsert,0)
vlc1.play()
And nothing happens.

If I replase the "rtsp" with a file path and name to my Hard Disk,the video works fine.
How can I use RTSP?
How can I store the UserName and Password for my Camera in VB source code?

I would be grateful if you can help me in this subject.

Thank you in advance.




Kamaras Konstantinos
Posted
Updated 4-Feb-22 8:31am

This is a question best asked of the people who wrote the vlc control you're using. You'll have to ask them if this is possible and if the .amp stream is supported.
 
Share this answer
 
Thanks a lot.I will try to ask them.
 
Share this answer
 
examp:

vlcControl2.Play(new Uri("rtsp://admin:password@ip:port/cam/realmonitor?channel=1&subtype=0"));

works fine for dahua camera
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900