Stream RTSP and record from embeded VLC in html

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
sumanbabun
New Cone
New Cone
Posts: 6
Joined: 10 Jul 2011 18:39

Stream RTSP and record from embeded VLC in html

Postby sumanbabun » 10 Jul 2011 18:47

hello vlc fighters,

i am trying to embed vlc in html page and want to play,pause, stop and record RTSP stream onclicking respective html buttons(which calls javascript to take necessary action).
But could not able to do recording, could you please help me how to invoke sout option from javascript.

Please thanks in advance.

sumanbabun
New Cone
New Cone
Posts: 6
Joined: 10 Jul 2011 18:39

Re: Stream RTSP and record from embeded VLC in html

Postby sumanbabun » 11 Jul 2011 07:07

Seems this could require permission to write open a file PC when I try to execute from browser , can any Activex and/or batch script technique would help me ? :)

sumanbabun
New Cone
New Cone
Posts: 6
Joined: 10 Jul 2011 18:39

Re: Stream RTSP and record from embeded VLC in html

Postby sumanbabun » 11 Jul 2011 14:00

I have used the following code to for recording, but this is able to play the stream in browser but could not able write it to file.

Code: Select all

function record() { var oVlc = document.getElementById("vlc"); var mrl = "rtsp://172.24.18.96:8554/video.mpg"; var options = ':sout=#duplicate{dst=display},dst=std{access=file,mux=ps,dst=\"C:\myTestMovie.mpg\"}'; var vId = vlc.playlist.add(mrl, "vlc", options); vlc.playlist.playItem(vId); }
I have figure out the reason behind is it does not have the permission to write a file from browser.
Seeking help further...

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream RTSP and record from embeded VLC in html

Postby VLC_help » 11 Jul 2011 15:55

Many options in ActiveX are disabled for security reasons. If you want to use those, you have to rebuild VLC with those options set as Safe ones.

sumanbabun
New Cone
New Cone
Posts: 6
Joined: 10 Jul 2011 18:39

Re: Stream RTSP and record from embeded VLC in html

Postby sumanbabun » 12 Jul 2011 08:26

okay, Thanks for your reply. Could you please assist me to enable standard output on sout-dst in VLC Activex?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream RTSP and record from embeded VLC in html

Postby VLC_help » 12 Jul 2011 16:56

I haven't done any ActiveX modifies, but basically you add change_safe() to option in module and compile it
e.g. http://mailman.videolan.org/pipermail/v ... 77640.html


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Shizzle and 38 guests