How to use "libvlc_media_player_navigate" function

This forum is about all development around libVLC.
OttawaKnight
New Cone
New Cone
Posts: 4
Joined: 10 Apr 2012 21:24

How to use "libvlc_media_player_navigate" function

Postby OttawaKnight » 10 May 2012 23:39

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

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: How to use "libvlc_media_player_navigate" function

Postby sherington » 11 May 2012 08:09

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to use "libvlc_media_player_navigate" function

Postby Rémi Denis-Courmont » 11 May 2012 09:42

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests