Opened 14 years ago

Closed 14 years ago

#8128 closed defect (duplicate)

Mythbrowser: cannot use next/prev link w remote control

Reported by: Alec Leamas <leamas.alec@…> Owned by: paulh
Priority: minor Milestone: unknown
Component: Plugin - MythBrowser Version: 0.22
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Trying to use mythbrowser, I want to step through the links on a webpage using the remote. This works fine with the keyboard using the Z and Q keys. However, when I try to use the remote for the same task, the page flashes (reloads?). After this, it doesn't work at all, even when using keyboard.

Using ircat, I have double checked that the ir's keypresses are delivered as 'Z'/'Q' as they should. And anyway, these buttons (Next/Previous? on a MS MCE remote) works fine in other parts of myth.

The problem can be reproduced with a small html test file, enclosed.

Using 0.22 rmpfusion rpm-packages:

mythfrontend --version

Please include all output in bug reports.

MythTV Version : 0.22

MythTV Branch : tags/release-0-22

Network Protocol : 50

Library API : 0.22.20091023-1

QT Version : 4.5.3

Options compiled in:

linux release using_oss using_alsa using_pulse using_arts using_jack using_backend using_dvb using_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

Attachments (2)

links.html (378 bytes) - added by Alec Leamas <leamas.alec@…> 14 years ago.
Small test file which triggers problem.
patched-customEvent.cpp (1.5 KB) - added by Alec Leamas <leamas.alec@…> 14 years ago.
new logging in mythmainwindow.cpp

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by Alec Leamas <leamas.alec@…>

Attachment: links.html added

Small test file which triggers problem.

comment:1 Changed 14 years ago by Alec Leamas <leamas.alec@…>

Tried to do some debugging on this. Added logging statements to eventFilter and customEvent in .../libmythui/mythmainwindow.cpp. The patched functions are attached. Running w these, I got the attached log using '-v most'. One conclusion is that the eventFilter function is not called when the keyboard is used (probably obvious for those knowing the code?).

Besides this, this excerpt from the log looks more than weird:

2010-03-05 11:53:52.005 MythMainWindow, got lirc key, text Z:
2010-03-05 11:53:52.006 Sending QKeyEvent Z 
2010-03-05 11:53:52.006 Filtering QKeyEvent Z 
2010-03-05 11:53:52.006 currentWidget == 0
2010-03-05 11:53:52.022 Sending QKeyEvent  to main stack
2010-03-05 11:53:52.022 MythMainWindow, got lirc key, text Z: 
2010-03-05 11:53:52.023 Sending QKeyEvent Z 

Note how the QKeyEvent all of a sudden doesn't have a printable text argument, it just seems to have disappeared. And this repeated line "got lirc key" is also strange (I only tapped once on the remote, and the timing also says this is the same event.)

Frankly, I cannot understand this at all. Anyone else?

--alec

Changed 14 years ago by Alec Leamas <leamas.alec@…>

Attachment: patched-customEvent.cpp added

new logging in mythmainwindow.cpp

comment:2 Changed 14 years ago by Alec Leamas <leamas.alec@…>

Moving discussion to mailing list later this weekend

comment:3 Changed 14 years ago by Alec Leamas <leamas.alec@…>

This item can be closed, I'm about to submit three patches related to this.

comment:4 Changed 14 years ago by paulh

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.