summaryrefslogtreecommitdiff
path: root/library/main
diff options
context:
space:
mode:
authorAjay Nadathur <ajayns@google.com>2017-09-06 18:42:59 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-09-06 18:42:59 +0000
commit70a4a1f7f3ee4036f7c994f8f115e6018ab57382 (patch)
tree04a2e0b13f803518009635d57eda42090a7a47c9 /library/main
parent5486bf7293950a572331ea938ac771460d4bf98f (diff)
parent616fd7a886200e2366cfc0dca4b9050bf61a6f30 (diff)
downloadsetupwizard-70a4a1f7f3ee4036f7c994f8f115e6018ab57382.tar.gz
Add API to expose player's current position
am: 616fd7a886 Change-Id: I91c21161d96fad0c9744d13fcc7fcd41bae766c8
Diffstat (limited to 'library/main')
-rw-r--r--library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java b/library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java
index 9f1d2e7..9c79eb5 100644
--- a/library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java
+++ b/library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java
@@ -233,4 +233,8 @@ public class IllustrationVideoView extends TextureView implements Animatable,
public void onSeekComplete(MediaPlayer mp) {
mp.start();
}
+
+ public int getCurrentPosition() {
+ return mMediaPlayer == null ? 0 : mMediaPlayer.getCurrentPosition();
+ }
}