Option "mjpeg-fps" works with console but not for plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
verica
New Cone
New Cone
Posts: 2
Joined: 18 Nov 2011 13:48

Option "mjpeg-fps" works with console but not for plugin

Postby verica » 18 Nov 2011 17:04

Hi,

The option "mjpeg-fps" works fine when using a console call with the following syntax:

Code: Select all

vlc --mjpeg-fps 1 http://myserver/myvideo.mjpg
It plays the video with the FPS value 1.

However when I try to set this option through the plugin, it does not affect the speed of display.
Simple code:

Code: Select all

function onPlay() { var vlc = document.getElementById("vlc"); vlc.playlist.clear(); var options1 = [":mjpeg-fps=1"]; itemId = vlc.playlist.add("http://myserver/myvideo.mjpg", "name", options1); vlc.playlist.playItem(itemId); }
and the player:

Code: Select all

<object classid="clsid:9be31822-fdad-461b-ad51-be1d1c159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="360" id="vlc" events="true"> <param name="mrl" value="" /> <param name="showdisplay" value="true" /> <param name="autoloop" value="false" /> <param name="autoplay" value="false" /> <param name="volume" value="50" /> <param name="starttime" value="0" /> <embed pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" version="videolan.vlcplugin.2" width="640" height="360" name="vlc" ></embed> </object>
Is this not possible or the call is just wrong?

Thankful,
Verica

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 22 guests