javascript - Can't pass options for VLC Mozilla plugin from JS -


i'm trying pass options vlc mozilla plugin's embedded player, nothing happens.

<embed     type="application/x-vlc-plugin"     id="vlc"     width="400" height="300" ></embed>  <script type="text/javascript">     var target = "http://example.com/videostream/";     var options = new array("--video-filter invert");      vlc = document.getelementbyid("vlc");            var id = vlc.playlist.add(target,"not inverted here",options);     vlc.playlist.playitem(id);               </script> 

i've tried same url , args command-line vlc, , works.

vlc http://example.com/videostream/ --video-filter invert 

(anyway, trying various command line options standalone vlc player, e.g. rotation, sepia, grayscale, blur, i've failed. maybe have enable or select vlc.)

the real problem want fix video stream format error passing --demux=h264 embedded player (it works desktop vlc player launched command line), first want pass any options embedded player, see works.

i'm using ubuntu 15.04, firefox 40.0 , vlc web plugin 2.2.0 (weatherwax).

if force demuxer selection easier setting filter.

from of vlc :

stream mrl syntax:
[[access][/demux]://]url[#[title][:chapter][-[title][:chapter]]] [:option=value ...]

then should able set h264 demuxer using :

<script type="text/javascript">     var target = "http/h264://example.com/videostream/";         vlc = document.getelementbyid("vlc");            var id = vlc.playlist.add(target);     vlc.playlist.playitem(id);               </script> 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -