Fullscreen and fastRewind JS API can't work
Posted: 11 Mar 2010 11:28
by djstava
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
Re: Fullscreen and fastRewind JS API can't work
Posted: 29 Mar 2010 14:59
by djstava
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.
Re: Fullscreen and fastRewind JS API can't work
Posted: 30 Mar 2010 10:04
by djstava
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.
Re: Fullscreen and fastRewind JS API can't work
Posted: 09 Apr 2010 22:03
by whome
[ 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.