Page 1 of 1

How to apply options to a rtsp stream on the web?

Posted: 29 Aug 2013 22:07
by hax001
I have setup a windowless=true control on a web page, using the plugin, and initializing it with:

Code: Select all

var options = new Array(":aspect-ratio=4:3", "--rtsp-tcp", "--width=400", "--height=300"); var id = vlc.playlist.add("rtsp://mystream", "LIVE STREAM", options); vlc.playlist.playItem(id);
I am guessing that I should be able to apply any of the window properties options listed here: https://wiki.videolan.org/VLC_command-line_help, but none of these seem to have any effect.

I'm trying to set the width and height of the video through the options, rather than the CSS (which works fine). I have removed the height and width CSS settings, tried both auto and inherit and am still unable to set see any changes.

Re: How to apply options to a rtsp stream on the web?

Posted: 30 Aug 2013 03:24
by RSATom
Most of the options treated as untrusted, and therefore ignored. Which options are untrusted, and which are trusted documented nowhere (at least I didn't find such info), so you have to investigate it youself.