[Android] IAudioPlayerControl: add getRate
Jean-Baptiste Kempf
git at videolan.org
Mon Oct 15 14:59:10 CEST 2012
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 15 14:37:14 2012 +0200| [ddbf8e02b1e5234b84464b6bb61e4dd831ab84d9] | committer: Jean-Baptiste Kempf
IAudioPlayerControl: add getRate
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ddbf8e02b1e5234b84464b6bb61e4dd831ab84d9
---
vlc-android/src/org/videolan/vlc/AudioService.java | 6 ++++++
vlc-android/src/org/videolan/vlc/AudioServiceController.java | 5 +++++
.../src/org/videolan/vlc/interfaces/IAudioPlayerControl.java | 2 ++
vlc-android/src/org/videolan/vlc/interfaces/IAudioService.aidl | 1 +
4 files changed, 14 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 8b2a48a..425c549 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -868,6 +868,12 @@ public class AudioService extends Service {
public void detectHeadset(boolean enable) throws RemoteException {
mDetectHeadset = enable;
}
+
+ @Override
+ public float getRate() throws RemoteException {
+ mLibVLC.getRate();
+ return 0;
+ }
};
private void updateWidget(Context context)
diff --git a/vlc-android/src/org/videolan/vlc/AudioServiceController.java b/vlc-android/src/org/videolan/vlc/AudioServiceController.java
index f43c2f3..dfa0e32 100644
--- a/vlc-android/src/org/videolan/vlc/AudioServiceController.java
+++ b/vlc-android/src/org/videolan/vlc/AudioServiceController.java
@@ -354,4 +354,9 @@ public class AudioServiceController implements IAudioPlayerControl {
new Class<?>[] { boolean.class },
new Object[] { enable } );
}
+
+ @Override
+ public float getRate() {
+ return remoteProcedureCall(mAudioServiceBinder, Float.class, (float) 1.0, "getRate", null, null);
+ }
}
diff --git a/vlc-android/src/org/videolan/vlc/interfaces/IAudioPlayerControl.java b/vlc-android/src/org/videolan/vlc/interfaces/IAudioPlayerControl.java
index 3d1bcaf..e4dae8a 100644
--- a/vlc-android/src/org/videolan/vlc/interfaces/IAudioPlayerControl.java
+++ b/vlc-android/src/org/videolan/vlc/interfaces/IAudioPlayerControl.java
@@ -62,4 +62,6 @@ public interface IAudioPlayerControl {
RepeatType getRepeatType();
void detectHeadset(boolean enable);
+
+ float getRate();
}
diff --git a/vlc-android/src/org/videolan/vlc/interfaces/IAudioService.aidl b/vlc-android/src/org/videolan/vlc/interfaces/IAudioService.aidl
index a6e043f..7097e7c 100644
--- a/vlc-android/src/org/videolan/vlc/interfaces/IAudioService.aidl
+++ b/vlc-android/src/org/videolan/vlc/interfaces/IAudioService.aidl
@@ -51,4 +51,5 @@ interface IAudioService {
void removeAudioCallback(IAudioServiceCallback cb);
void detectHeadset(boolean enable);
void showWithoutParse(String URI);
+ float getRate();
}
More information about the Android
mailing list