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

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
hax001
Blank Cone
Blank Cone
Posts: 20
Joined: 27 Aug 2013 01:38

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

Postby hax001 » 29 Aug 2013 22:07

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.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

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

Postby RSATom » 30 Aug 2013 03:24

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest