[Android] Seek in songs with fast forward/rewind

Geoffrey Métais git at videolan.org
Tue Mar 10 14:26:59 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 10 14:01:47 2015 +0100| [0233aa6f7617b201e2ef0dc6b6ec1f5189457596] | committer: Geoffrey Métais

Seek in songs with fast forward/rewind

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

 .../videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java   |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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 dae8408..c8472bf 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
@@ -163,12 +163,16 @@ public class AudioPlayerActivity extends Activity implements AudioServiceControl
                 togglePlayPause();
                 return true;
             case KeyEvent.KEYCODE_F:
-            case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
             case KeyEvent.KEYCODE_BUTTON_R1:
                 goNext();
                 return true;
-            case KeyEvent.KEYCODE_R:
+            case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
+                seek(10000);
+                return true;
             case KeyEvent.KEYCODE_MEDIA_REWIND:
+                seek(-10000);
+                return true;
+            case KeyEvent.KEYCODE_R:
             case KeyEvent.KEYCODE_BUTTON_L1:
                 goPrevious();
                 return true;



More information about the Android mailing list