Page 1 of 1

How to implement fast forward for vlc-mozilla-plugin?

Posted: 21 Jun 2005 05:10
by et_me
Hi, i'm trying to implement fast forward, rewind buttons for the
vlc-mozilla-plugin... i suppose i have to set some variable using the
set_str_variable javascript function but i can't find wich variable
name to use. Is there a list of variable names i can use with the
functions set_int_variable, set_str_variable, set_bool_variable?

I been googling but failed. Any help is appreciated. Thankz in advance

Posted: 21 Jun 2005 05:29
by KillaB
Not sure about the variables, but I assume you've seen the list of available commands:
http://www.videolan.org/doc/play-howto/ ... l#id295937

I'm trying to figure out how to use ondblclick= instead of onclick= to toggle mute along with the fullscreen function. Any ideas there?

Cheers,
Jason

Posted: 21 Jun 2005 06:26
by et_me
ya...there is list of command but do not have fast forward and rewind command. hmm...i got search something about writing a line of code in mozilla/vlcintf.idl and some code in mozilla/vlcpeer.cpp. But due to i do not know C++ at all, i dunno how to start it.

For the double click one,

<input type="button" value="Play" ondblclick="play();" />

Is that wat u want?

Posted: 21 Jun 2005 08:01
by KillaB

For the double click one,

<input type="button" value="Play" ondblclick="play();" />

Is that wat u want?
Not quite. I have a 3x3 matrix running an instance of the plugin in each and nothing else. Everything is muted on startup. When I doubleclick on any one of the videos to make it fullscreen I also want to toggle the audio. When I doubleclick to undo the fullscreen, I'd like it to mute again. I can do this currently with a button (below), but I'd like to double up on the doubleclick feature that's already there.

<a href="javascript:;" onclick='document.video1.fullscreen();document.video1.mute()'>Fullscreen</a>

As far as I know, since there isn't an option for this in the plugin....I'd need to do the same as you and I'm not much of a programmer.

Posted: 21 Jun 2005 08:13
by KillaB
This won't help you if you require this in mozilla, but.....
I'm assuming you already know that what you seek is available in the ActiveX plugin?

Posted: 13 Jul 2005 01:31
by KillaB
Take a look at the new plugins demo page thanks to dionoea.
There are examples of the Mozilla plugin with -/+10 second buttons.

http://vthr.videolan.org/~dionoea/vlc-plugin-demo/