Commit 6317516d authored by Geoffrey Métais's avatar Geoffrey Métais

Ignore remote control shortcuts for video playback

parent d38ccb05
......@@ -1109,7 +1109,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
@Override
public boolean onMediaButtonEvent(Intent mediaButtonEvent) {
KeyEvent event = mediaButtonEvent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
if (event != null) {
if (event != null && !isVideoPlaying()) {
int keyCode = event.getKeyCode();
if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY || keyCode == KeyEvent.KEYCODE_MEDIA_PAUSE
|| keyCode == KeyEvent.KEYCODE_HEADSETHOOK || keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment