diff options
author | Ajay Nadathur <ajayns@google.com> | 2017-09-06 18:59:16 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-06 18:59:16 +0000 |
commit | 03d0ddd3cb4c314fb5e6e6c19e02e34319246773 (patch) | |
tree | 3e8a30b6ac5636fe134d20835ff23294ed51846c /library/main | |
parent | 8d48b26adcbac4a42edffffb9e699eb38a1a961d (diff) | |
parent | 70a4a1f7f3ee4036f7c994f8f115e6018ab57382 (diff) | |
download | setupwizard-03d0ddd3cb4c314fb5e6e6c19e02e34319246773.tar.gz |
Add API to expose player's current position am: 616fd7a886
am: 70a4a1f7f3
Change-Id: I5749c42b49589fab0f29108a6a3be41770fba228
Diffstat (limited to 'library/main')
-rw-r--r-- | library/main/src/com/android/setupwizardlib/view/IllustrationVideoView.java | 4 |
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(); + } } |