Page 1 of 1

How to use "libvlc_media_player_navigate" function

Posted: 10 May 2012 23:39
by OttawaKnight
Hello,

Can anyone help to provide a brief explaination on how to use the "libvlc_media_player_navigate" function ? From what I googled it, it appears it is related to DVD menu navigation, but it is not clear to me how to use it in conjunction with the following mode of operation :

typedef enum libvlc_navigate_mode_t
{
libvlc_navigate_activate = 0,
libvlc_navigate_up,
libvlc_navigate_down,
libvlc_navigate_left,
libvlc_navigate_right
} libvlc_navigate_mode_t;

I guess the "libvlc_navigate_activate" means to enable the navigation, but what about the rest, ie. what does it mean by xxx_up/down/left/right ? Is it not true that a list of possible navigation options have to be retrieved before one can decide where (up/down/left, right) to navigate to ? So which function can retrieve this list of options ? I can not seem to find anywhere.

Can anyone help and provide a use case on using this function ?

Thanks

Re: How to use "libvlc_media_player_navigate" function

Posted: 11 May 2012 08:09
by sherington
I guess the "libvlc_navigate_activate" means to enable the navigation,
I thought it meant activate as in the act of activating a menu option, not enabling navigation.
but what about the rest, ie. what does it mean by xxx_up/down/left/right ?
I must admit, I have not actually used those functions, but my understanding was simply that it will change the current selection in a dvd menu. So you might want to programatically select a particular menu option, or implement your own buttons in your own media player that can navigate the menu.

I might be wrong of course.

Re: How to use "libvlc_media_player_navigate" function

Posted: 11 May 2012 09:42
by RĂ©mi Denis-Courmont
The meaning of those navigation events depend on the media support. Basically, they correspond to DVD menus, and what their effect is depend on the DVD menus and the DVD virtual machine; VLC does not define that.

There is no way to determine what or when a navigation event will have any effect. If not, VLC will ignore the event, just like a living room DVD player would.