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.