Page 1 of 1

Stream RTSP and record from embeded VLC in html

Posted: 10 Jul 2011 18:47
by sumanbabun
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.

Re: Stream RTSP and record from embeded VLC in html

Posted: 11 Jul 2011 07:07
by sumanbabun
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 ? :)

Re: Stream RTSP and record from embeded VLC in html

Posted: 11 Jul 2011 14:00
by sumanbabun
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...

Re: Stream RTSP and record from embeded VLC in html

Posted: 11 Jul 2011 15:55
by VLC_help
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.

Re: Stream RTSP and record from embeded VLC in html

Posted: 12 Jul 2011 08:26
by sumanbabun
okay, Thanks for your reply. Could you please assist me to enable standard output on sout-dst in VLC Activex?

Re: Stream RTSP and record from embeded VLC in html

Posted: 12 Jul 2011 16:56
by VLC_help
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