After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580351 - Detect DVD menus and handle keypresses
Detect DVD menus and handle keypresses
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Movie player
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-04-27 00:03 UTC by Bastien Nocera
Modified: 2009-06-30 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
totem-has-dvd-menus.patch (1.92 KB, patch)
2009-04-27 00:04 UTC, Bastien Nocera
none Details | Review
Patch to add 'is_menu' flag to totem-gst DVD (3.49 KB, patch)
2009-05-12 22:38 UTC, Jan Schmidt
committed Details | Review

Description Bastien Nocera 2009-04-27 00:03:29 UTC
When a DVD menu is showing, we'd want the arrows to move the cursor around, rather than seek or change the volume.

The following is the backend implementation for xine-lib. Jan, any chance to do the same for the GStreamer backend?
Comment 1 Bastien Nocera 2009-04-27 00:04:12 UTC
Created attachment 133378 [details] [review]
totem-has-dvd-menus.patch
Comment 2 Jan Schmidt 2009-05-12 22:38:33 UTC
Created attachment 134534 [details] [review]
Patch to add 'is_menu' flag to totem-gst DVD

Here's a patch to do the equivalent for the GStreamer backend, using the new navigation API in gst-plugins-base 0.10.23

It's possible with this API to know which directions are valid for button selections, which might be useful for accessibility, or for perhaps moving the widget selection out of the video widget when the user presses down and there's no DVD button below?
Comment 3 Jan Schmidt 2009-05-13 10:07:31 UTC
I should also mention that the API for the navigation query is in gst-plugins-base 0.10.23, but the query won't succeed until resindvd answers it, which code has not yet landed. Until then, is_menu is always false.
Comment 4 Bastien Nocera 2009-05-13 10:14:26 UTC
Looks fine, don't forget to add a ChangeLog entry as well.
Comment 5 Jan Schmidt 2009-05-14 11:44:44 UTC
commit 989331bbe8430e3d7736597e4d827969f5e49fc2
Author: Jan Schmidt <thaytan@noraisin.net>
Date:   Wed May 13 13:20:25 2009 +0100

    DVD navigation: Set a flag 'is_menu' whenever there are buttons
    
    2009-05-13  Jan Schmidt  <thaytan@noraisin.net>
    
            * src/backend/bacon-video-widget-gst-0.10.c
            (bvw_do_navigation_query), (bvw_handle_element_message),
            (bacon_video_widget_has_menus):
            * src/backend/bacon-video-widget.h:
    
            Provide a method to know if there are buttons currently
            onscreen.
Comment 6 Bastien Nocera 2009-05-14 13:01:11 UTC
Reopening, we're missing the front-end bits.
Comment 7 Bastien Nocera 2009-06-30 13:00:50 UTC
commit ad8c539af703d7eca4faff5d6016739d5ee69228
Author: Bastien Nocera <hadess@hadess.net>
Date:   Tue Jun 30 14:00:14 2009 +0100

    Bug 580351 – Detect DVD menus and handle keypresses
    
    2009-06-30  Bastien Nocera  <hadess@hadess.net>
    
        * src/totem-object.c (totem_action_handle_key_press):
        When there's a DVD menu showing, use the arrow keys to
        navigate around, and the Enter key to select (Closes: #580351)