Code: Select all
function onFullscreen()
{
vlc.video.toggleFullscreen();
}
function fastRewind()
{
vlc.input.rate = -2.0
}
djstava
Code: Select all
function onFullscreen()
{
vlc.video.toggleFullscreen();
}
function fastRewind()
{
vlc.input.rate = -2.0
}
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;
}
Code: Select all
function onFullscreen()
{
vlc.video.toggleFullscreen();
}
Users browsing this forum: No registered users and 9 guests