Fullscreen and fastRewind JS API can't work

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Fullscreen and fastRewind JS API can't work

Postby djstava » 11 Mar 2010 11:28

I compiled vlc mozilla plugin from vlc git 1.1.0 source,but in javascript function "fullscreen" and "fastRewind" don't work,I use firefox 3.5.8.

Code: Select all

function onFullscreen() { vlc.video.toggleFullscreen(); } function fastRewind() { vlc.input.rate = -2.0 }
Thanks.
djstava

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Fullscreen and fastRewind JS API can't work

Postby djstava » 29 Mar 2010 14:59

fastRewind is not supported in vlc git now

vlc/src/control/media_player.c

Code: Select all

int libvlc_media_player_set_rate( libvlc_media_player_t *p_mi, float rate ) { /* if (rate < 0.) { libvlc_printerr ("Playing backward not supported"); return -1; } */ var_SetFloat (p_mi, "rate", rate); input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi ); if( !p_input_thread ) return 0; var_SetFloat( p_input_thread, "rate", rate ); vlc_object_release( p_input_thread ); return 0; }
Now,fastRewind works very well.
Last edited by djstava on 18 Apr 2010 17:14, edited 1 time in total.

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Fullscreen and fastRewind JS API can't work

Postby djstava » 30 Mar 2010 10:04

Code: Select all

function onFullscreen() { vlc.video.toggleFullscreen(); }
before toggle fullscreen,vlc.video.fullscreen = false,and after vlc.video.fullscreen = true,but vlc is not in fullscreen mode in fact.

whome
Blank Cone
Blank Cone
Posts: 37
Joined: 14 Jun 2008 15:40

Re: Fullscreen and fastRewind JS API can't work

Postby whome » 09 Apr 2010 22:03

[ WinXP, Firefox 3.6.3, IE8 ]
True, I tested VLC 1.1.0-git-20100329-0003 The Luggage -version and fullscreen mode does not work. Its both javascript method and mouse click does not activate a fullscreen mode.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests