Commit graph

10 commits

Author SHA1 Message Date
popcornmix
486c99f0a2 Remove spammy log message from Keyboard 2014-11-26 21:06:57 +00:00
popcornmix
98982dfd97 keyboard: Change order of call in close to avoid shutdown hang, as suggested by jehutting 2014-10-23 13:26:59 +01:00
SZABO Gergely
961a545ccb Fix stdin control in absence of dbus
Keyboard:
Keyboard reading fully functional even in absence of dbus.
Store last keystroke in member m_action.
New method getEvent() returns and clears it.

OMXControl:
init returns error code -1 if dbus connection fails.

omxplayer:
If OMXControl failed to connect to dbus, read keystrokes directly
from Keyboard::getEvent().

Fixes #62
Fixes #131
2014-07-20 23:13:37 +02:00
popcornmix
60c6a0201c Add missing error.h include 2014-06-24 14:47:22 +01:00
blake
41e7fc2bac D-Bus improvements
* Implemented SetPosition in D-Bus, this allows external programs to jump to a specific position
* Fixed Seek so that it obeys the passed relative seek value, as per MPRIS
* Added Position and Duration properties which return the current position and media duration in microseconds
* fixed some overflow errors by using int64_t instead of long, position was wrapping at around 31 minutes
* A little extra debug logging for D-Bus method calls, useful when trying to determine why it's not responding to a method
* Added a sample D-Bus control shell script
* Explicitly specify KeyConfig enum constants, in case external programs depend on them
* Changed D-Bus session handing so a single dbus-daemon is started the first time omxplayer starts, and continues running forever
* Added argument --dbus_name to override the default org.mpris.MediaPlayer2.omxplayer
2014-02-19 19:49:35 -06:00
popcornmix
2adc2d735c Restore terminal settings after abort 2013-10-23 16:34:49 +01:00
popcornmix
754d4c24a5 Add sleep to keyboard thread to avoid hammering cpu 2013-09-04 18:23:42 +01:00
popcornmix
6ea2ebba2e Fix dos line endings 2013-09-04 18:14:57 +01:00
Harry Collard
ef271d7bfb Moved DBus onto session bus and added error checks 2013-09-03 10:22:24 +01:00
Harry Collard
60027055db Keyboard handling code moved, MPRIS v2 support added 2013-08-29 13:05:37 +01:00