Page 1 of 1

goto x command for lirc

Posted: 30 Jan 2006 21:10
by bery
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]

Posted: 16 Dec 2006 13:20
by Albert
Hello,
I would like to ask developers for the same feature:

My idea: vlc receives lirc command, decodes the command (e.g. key-next)

lirc.c

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 ); } }
and moves to the next playlist item. So vlc could receice lirc command
(a number from remote control) and could use this number onto jump to this position in playlist (like goto in rc.c)

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); } }
Could be done in this way?
Thanks
Albert