Link RTSP stream to html webpage via VLC browser plug-in.

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
wolas
New Cone
New Cone
Posts: 2
Joined: 27 Jul 2013 12:56

Link RTSP stream to html webpage via VLC browser plug-in.

Postby wolas » 27 Jul 2013 17:10

Hello everyone,

I need very-very simple thing, but unfortunately, I have a "little" problem with.

I would like to link RTSP stream from IP camera into my web page.

I do not need any re-streaming servers or something like that. Because there is just one (me) user who will watch video from IP camera.

The problem is, there is no image on my web page. I see only black screen(640*360) with control panel having play/pause button, volume mixer and full screen button.

I used examples on this page http://wiki.videolan.org/ActiveX/HTML
And made following code, that I putted in my web page between <body> </body>:

Code: Select all

<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="360" id="vlc" events="True"> <param name="Src" value="rtsp://ipadress:port/stream" /> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="False" /> </OBJECT>
If I open my url rtsp://ipadress:port/stream via menu “open URL” in VLCPlayer (not via plug-in in browser) everything is OK. I see video stream without any problems.

Just one more thing: the rtsp stream use the basic authentication. So when I open rtsp://ipadress:port/stream in VLCPlayer via “open URL”, the pop-window appears and ask me login and password.
I enter needed credentials and voila I see my image from the camera.

But when I open web browser (IE or FF - I tried with these two) with installed VLC plug-in and go to my web page, as I already said, there is no pop-up windows appears to enter login and password – so I see only black screen(640*360) with control panel having play/pause button, volume mixer and full screen button.

And of course when I press on play/pause button - there is absolutely no reaction.

I tried to do this on two different PC’s with windows7 installed on them, both without antivirus and fire-wall is turned off.

For technical reasons I really need to observing the IP camera only via browser.

So can you help me guys, please. I need your help very-very much (I spent whole day to try find out the solution). What do you think where is can be the problem?

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Link RTSP stream to html webpage via VLC browser plug-in

Postby Rémi Denis-Courmont » 27 Jul 2013 17:33

The VLC browser plugins do not currently implement any form of user prompt. If a login or password is required, it will just fail.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wolas
New Cone
New Cone
Posts: 2
Joined: 27 Jul 2013 12:56

Re: Link RTSP stream to html webpage via VLC browser plug-in

Postby wolas » 27 Jul 2013 18:04

Thank you very much for your fast answer!

You are absolutely right!

Without authentication, it works wonderfully.

So sad. :(

The quicktime solution even worse : it simply do not work with ulr that VLC playback without any problems.

Just last question: Do you know by any chance, is there any plans to add a response to authentication prompt for VLC plug-in browser?

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Link RTSP stream to html webpage via VLC browser plug-in

Postby Rémi Denis-Courmont » 27 Jul 2013 18:16

No clue, I am not involved with the browser plugins.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tiamelis
New Cone
New Cone
Posts: 1
Joined: 21 Nov 2014 01:01

Re: Link RTSP stream to html webpage via VLC browser plug-in

Postby tiamelis » 21 Nov 2014 01:05

Hello and thanks for your info, AND IT WORKS WITH AUTENTICATION !!!! :D

You need to put the autentication in the RTSP url !!!!! Like This

<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
id="vlc" events="True">
<param name="Src" value="rtsp://user:password@xx.xx.xx.xx:8300/Streaming/Channels/2" /> (hikvision IP cam)
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
</OBJECT>

tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

Re: Link RTSP stream to html webpage via VLC browser plug-in.

Postby tonj » 18 Apr 2017 10:00

hi does your streaming video work on smartphones?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: liugaohuan and 14 guests