How to apply options to a rtsp stream on the web?
Posted: 29 Aug 2013 22:07
I have setup a windowless=true control on a web page, using the plugin, and initializing it with:
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.
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'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.