[Android] Rework of the remote control handling (for wired, bluetooth and lock screen )
Ludovic Fauvet
git at videolan.org
Thu Nov 1 13:30:21 CET 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Nov 1 12:54:59 2012 +0100| [d75d74d44debb90205787d42ab0df65dfe2941ee] | committer: Ludovic Fauvet
Rework of the remote control handling (for wired, bluetooth and lock screen)
Now VLC doesn't steal the remote control to other media players but the
selection is made by the system based on the last application which
requested it.
Except that it doesn't introduce any other functionnal change in the
behavior (double click should still do a forward and long click a
backward).
This commit also merges the two broadcast receivers into a single one to
avoid code duplication although a double click on the play/pause button
of the lock screen will trigger a next. Not a big deal I think.
Support summary:
On API level 7: use the old method (global receiver)
On API level 8+: correctly share the remote with other media players
On API level 14+: support for the lock screen controls
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d75d74d44debb90205787d42ab0df65dfe2941ee
---
vlc-android/src/org/videolan/vlc/AudioService.java | 205 ++++++++------------
.../videolan/vlc/RemoteControlClientReceiver.java | 64 +++++-
.../src/org/videolan/vlc/gui/MainActivity.java | 1 +
.../vlc/gui/audio/AudioPlayerActivity.java | 1 +
4 files changed, 140 insertions(+), 131 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=d75d74d44debb90205787d42ab0df65dfe2941ee
More information about the Android
mailing list