About the new Mozilla Plugin in VLC 0.8.6 test 1
Posted: 27 Oct 2006 11:34
by Athlon2x
Hi,
Does someone know what are the new properties and methods in the new Mozilla Plugin 0.8.6 ?
Thanks in advance.
Antoine
Posted: 27 Oct 2006 12:16
by Athlon2x
Someones :
Plugin loading :
Code: Select all
<embed type="application/x-vlc-plugin"
pluginspage="http://www.videolan.org/"
version="VideoLAN.VLCPlugin.2"
name="player"
autoplay="no"
loop="no"
width="640"
height="480"
target=""
id="vlc"
/>
Play :
Pause :
Stop :
Fullscreen :
Code: Select all
document.player.playlist.fullscreen()
Mute :
Code: Select all
document.player.audio.toggleMute()
Volume UP :
Code: Select all
function volume_up(){
var previous = document.player.audio.volume;
var newvolume = previous + 10;
if( newvolume > 200 ) newvolume = 200;
document.player.audio.volume = newvolume;
}
Volume Down :
Code: Select all
function volume_down(){
var previous = document.player.audio.volume;
var newvolume = previous - 10;
if( newvolume < 0 ) newvolume = 0;
document.player.audio.volume = newvolume;
}
Edit Playlist :
Code: Select all
function change_pll(url){
document.player.playlist.clear();
document.player.playlist.add(url,null,null);
document.player.playlist.play();
}
Antoine