[Android] Re-activate remote cntrl to Playbackservice on TV

Geoffrey Métais git at videolan.org
Fri Jul 17 16:09:19 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jul 17 16:08:18 2015 +0200| [4bc692303eb98e3c3882ee9e6f702baa23b5269c] | committer: Geoffrey Métais

Re-activate remote cntrl to Playbackservice on TV

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4bc692303eb98e3c3882ee9e6f702baa23b5269c
---

 vlc-android/tv/AndroidManifest.xml                                  |    3 ---
 .../org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java    |    3 ---
 2 files changed, 6 deletions(-)

diff --git a/vlc-android/tv/AndroidManifest.xml b/vlc-android/tv/AndroidManifest.xml
index 1872ad5..4011c86 100644
--- a/vlc-android/tv/AndroidManifest.xml
+++ b/vlc-android/tv/AndroidManifest.xml
@@ -228,9 +228,6 @@
             <action android:name="android.intent.action.BOOT_COMPLETED"/>
           </intent-filter>
         </receiver>
-        <receiver android:name=".RemoteControlClientReceiver"
-            tools:node="replace"
-            android:enabled="false"/>
         <activity
             android:name=".gui.video.VideoPlayerActivity"
             tools:node="replace"
diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
index ff011df..5b20895 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
@@ -193,7 +193,6 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
             /*
              * Playback control
              */
-            case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
             case KeyEvent.KEYCODE_MEDIA_PLAY:
             case KeyEvent.KEYCODE_MEDIA_PAUSE:
             case KeyEvent.KEYCODE_SPACE:
@@ -204,7 +203,6 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
                 return true;
             case KeyEvent.KEYCODE_F:
             case KeyEvent.KEYCODE_BUTTON_R1:
-            case KeyEvent.KEYCODE_MEDIA_NEXT:
                 goNext();
                 return true;
             case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
@@ -215,7 +213,6 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
                 return true;
             case KeyEvent.KEYCODE_R:
             case KeyEvent.KEYCODE_BUTTON_L1:
-            case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
                 goPrevious();
                 return true;
             /*



More information about the Android mailing list