Option "mjpeg-fps" works with console but not for plugin
Posted: 18 Nov 2011 17:04
Hi,
The option "mjpeg-fps" works fine when using a console call with the following syntax:
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:
and the player:
Is this not possible or the call is just wrong?
Thankful,
Verica
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
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);
}
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>
Thankful,
Verica