[Android] Additionnal remote control actions
Geoffrey Métais
git at videolan.org
Thu Feb 11 12:18:29 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 11 11:42:28 2016 +0100| [d74653b3d242426bb6cdb3e0a0c68993323c2d42] | committer: Geoffrey Métais
Additionnal remote control actions
> https://code.videolan.org/videolan/vlc-android/commit/d74653b3d242426bb6cdb3e0a0c68993323c2d42
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index b6c2c12..1d2528b 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1092,6 +1092,21 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
public void onSkipToPrevious() {
previous();
}
+
+ @Override
+ public void onSeekTo(long pos) {
+ setTime(pos);
+ }
+
+ @Override
+ public void onFastForward() {
+ next();
+ }
+
+ @Override
+ public void onRewind() {
+ previous();
+ }
}
protected void updateMetadata() {
More information about the Android
mailing list