Page 1 of 1

VLC and the mozilla plugin question

Posted: 02 Apr 2006 22:22
by Nitrius
When i play of movies and stuff trough Firefox with the VLC and the mozilla plugin installed, i can see the movie, but i cant like lower or higher the sound, stop or play and that kind of things, all i see is the video.

So the question, is it possible to add some buttons or something so i can steer the video in some way?

Posted: 04 Apr 2006 06:16
by sackraid
same

Posted: 04 Apr 2006 18:56
by Nitrius
Anyone?

Posted: 04 Apr 2006 20:49
by Guest
Same here, I hope someone knows how to solve this, thanks.

Posted: 16 May 2006 22:17
by Guest
same problem...

Posted: 17 May 2006 09:47
by KevinP
The vlc plugin supports the following function calls:

play() : Start playing media in the plugin.
pause() : Pause playback.
stop() : Stop media playback.
fullscreen() : Switch the video to full screen.
set_volume(vol) : Set the volume. vol has to be an int in the 0-200 range.
get_volume() : Get the current volume setting.
mute() : Toggle volume muting.
set_int_variable(var_name, value) :
set_bool_variable(var_name, value) :
set_str_variable(var_name, value) :
get_int_variable(var_name) :
get_bool_variable(var_name) :
get_str_variable(var_name) :
clear_playlist() : Clear the playlist.
add_item(mrl>) : Append an item whose location is given by the Media Resource Locator to the playlist.
next()
previous()
isplaying() : return true if the plugin is playing something.
get_length() : Get the media's length in seconds.
get_position() : Get the current position in the media in percent.
get_time() : Get the current position in the media in seconds.
seek(seconds,is_relative) : If is_relative is true, seek relatively to current time, else seek from beginning of the stream. Seek time is specified in seconds.


So if you are the owner of the page, you can modifie the code to include this function

<br />
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>
.
.
< put here what you need>
.
</body>

If you are not the owner, and you are opening just a video in a site, you still able to use the hotkey.

pause = space
volume up = ctl + up
....