Page 1 of 1

Disable double click to go fullscreen in mozilla plugin

Posted: 10 Jul 2009 17:27
by gaspare.novara
I am running VLC within Firefox in a kiosk-type enviroment. I would like to be able to disable users from double-clicking on video to make it go fullscreen.

I cannot see any command-line options to do this at the moment.

Is it possible to have this option added to the VLC code?exsist a mozzilla plugin with this functionality disabled?

How I can resolve this problem?

Regards


Gaspare Novara

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 10 Jul 2009 21:12
by erwan10
Which platform Linux, Mac or Windows ?

With vlc1.0.0 on Linux, the --vout-event parameter (see vlc -H for details) allows deactivating all hotkeys and mouse interactions. Not sure it is implemented for other platforms.

Erwan10

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 11 Jul 2009 16:14
by VLC_help
--vout-event={1 (Full support), 2 (Fullscreen-only), 3 (None)}
key and mouse event handling at vout level.
This parameter accepts values : 1 (full event handling support), 2
(event handling only for fullscreen) or 3 (No event handling). Full
event handling support is the default value.
http://wiki.videolan.org/VLC_command-line_help

should work for win32.

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 13 Jul 2009 09:58
by gaspare.novara
I use vlc-0.9.9-win32 and I work under Windows XP and use Mozzilla Plugin with this parameter:
ParameterMap.put("AutoLoop", "true");
ParameterMap.put("ShowDisplay","false");
ParameterMap.put("FullScreen", "false");


I can try vout-event ?
Thanks


Gaspare Novara

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 13 Jul 2009 13:29
by VLC_help
AFAIK vout-event isn't in 0.9.x

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 10:48
by kryptonite
Has anyone successfully used the --vout-event option on Windows?
I'm using release 1.0.1 but the doubleClick:fullscreen always works (tried values 2, 3)

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 10:52
by thannoy
vout-event is not yet tagged as safe to be used with the activex. A pending patch contains this on the devel mailing list, not applied yet and not sure it will be packported on 1.0.x.

edit: "tagged as safe" is required for a moz-plugin usage as well

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 11:10
by kryptonite
Uh-oh :(
I need to get co-ordinates on a mouse left-click event & proceed.
Anyone else with similar requirements/workarounds?
Mine is a Java based app - needs to work on Windows & Linux for now (Mac is later in the pipeline)

Thanks!

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 11:40
by erwan10
What about setting --vout-event at the global level (in vlcrc file) ?

It is not yet? tagged as safe when passed explicitly when launching a video, but it should work if set up as a global parameter (by editing the vlcrc file)

Erwan10

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 12:20
by thannoy
ActiveX and Mozilla Plugin send "--ignore-config" to libvlc_new(). vlcrc settings are currently not used in web plugins.

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 13:31
by kryptonite
What about setting --vout-event at the global level (in vlcrc file) ?

It is not yet? tagged as safe when passed explicitly when launching a video, but it should work if set up as a global parameter (by editing the vlcrc file)

Erwan10
I tried a simple experiment on my Windows m/c:
Edited vlcrc: vout-event=3 [Was originally #vout-event=1]

Saved & Closed
Opened VLC player & played a video file (flv, avi)
Once playing, double-click on video and it switches to fullscreen mode.

Hope I tried the right thing.

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 14:17
by erwan10
just checked the code. As I feared, --vout-event is only implemented for Linux ... Windows and Mac don't test it

@ thannoy, you're right about --ignore-config. Security measures are really painful sometimes

Erwan10

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 14:50
by thannoy
--vout-event is only implemented for Linux ... Windows and Mac don't test it
Well. Its deprecated name was "--x11-event". Renamed since vlc 1.0.0 :)

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 31 Jul 2009 19:38
by erwan10
Well. Its deprecated name was "--x11-event". Renamed since vlc 1.0.0 :)
Name was changed with the hope other platforms would support it as well .... it's still a hope !

Erwan10

Re: Disable double click to go fullscreen in mozilla plugin

Posted: 05 Aug 2009 08:37
by kryptonite
Just incase there's someone using Java with a similar requirement, and doesn't want the C++ and JNI solution, JNA will help.