Bug 400449

Summary: Nothing happens when I click entries in DVD menu
Product: [Applications] kaffeine Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Mauro Carvalho Chehab <mchehab>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.0.15   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2018-10-29 15:35:14 UTC
STEPS TO REPRODUCE
1. insert a DVD disc
2. open kaffeine
3. click "play dvd" button

OBSERVED RESULT
kaffeine shows the dvd menu, entries of the dvd menu are highlighted on mouseover but nothing happens on click.


EXPECTED RESULT
entries of the dvd menu work when clicked.

SOFTWARE VERSIONS
Arch Linux
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51
Qt Version: 5.12 beta3

additional info
tested two discs, they work as expected with VLC player 3.0.4.
Errors in terminal:
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: �� 
libdvdnav: Language 'en' not found, using '��' instead
libdvdnav: Menu Languages available: ��
Comment 1 Mauro Carvalho Chehab 2018-11-05 09:38:26 UTC
(In reply to Patrick Silva from comment #0)
> STEPS TO REPRODUCE
> 1. insert a DVD disc
> 2. open kaffeine
> 3. click "play dvd" button
> 
> OBSERVED RESULT
> kaffeine shows the dvd menu, entries of the dvd menu are highlighted on
> mouseover but nothing happens on click.

There is a issue with newer versions of Qt and input methods, plus the way libVlC handles it, with prevented the usage of the DVB menu via mouse. 

In summary, there's no way to tell libVlC about the position where the mouse is when a click event happens on a DVB menu.

Due to that, we changed the way DVB menu is handled on Kaffeine, on Kaffeine version 2.0.15: instead of mouse, you should use the keyboard:

commit 273edb5120fa8ba5390c39fecb6915e5dc378308
Author: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Date:   Thu Feb 22 09:20:06 2018 -0300

    mediawidget: switch DVD navigate to keyboard
    
    With newer Qt classes and newer libVLC, it is not possible anymore
    to navigate a DVD menu with the mouse.
    
    The reason is that Qt libs intercept all Linux input events,
    not letting libVLC to receive them.
    
    The solution would be to let Kaffeine to pass mouse events directly
    to libVLC. Unfortunately, such API doesn't exist. There was a set
    of RFC patches adding support for it:
    
            http://vlc-devel.videolan.narkive.com/ah5I2Gpy/patch-libvlc-add-api-to-propagate-mouse-move-and-down-up-events
    
    But this was never accepted upstream.
    
    So, while this doesn't work, let's fall back to a different way:
    DVD menu navigation should be done via keyboard interaction.
    
    Basically, navigation is done via Up/Down/Left/Right keys. Once the
    DVB menu item is selected, pressing <ENTER> will activate the item.
    
    The libVLC provides support for a "Popup" navigate interaction, but
    I was unsure how this is used. So, support for it was not implemented.
    
    BUG: 373814
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Comment 2 Mauro Carvalho Chehab 2018-11-05 09:40:51 UTC

*** This bug has been marked as a duplicate of bug 373814 ***