goto x command for lirc
Posted: 30 Jan 2006 21:10
i use vlc for playing TV from our vlc streamig server - then I have 5 items in playlist and a want choose betwene them by pressing number on my remote controler[/list]
Discussion and support for VLC media player and friends
http://forum.videolan.org/
Code: Select all
else if( !strcmp( c, "NEXT" ) )
{
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( p_playlist )
{
playlist_Next( p_playlist );
vlc_object_release( p_playlist );
}
}
Code: Select all
else if (!strcmp( psz_cmd, "goto" ) )
{
if( strlen( newval.psz_string ) > 0)
{
val.i_int = atoi( newval.psz_string );
playlist_Goto( p_playlist, val.i_int);
}
}