diff options
author | Ajay Nadathur <ajayns@google.com> | 2017-09-06 18:42:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-06 18:42:59 +0000 |
commit | 70a4a1f7f3ee4036f7c994f8f115e6018ab57382 (patch) | |
tree | 04a2e0b13f803518009635d57eda42090a7a47c9 /library/main | |
parent | 5486bf7293950a572331ea938ac771460d4bf98f (diff) | |
parent | 616fd7a886200e2366cfc0dca4b9050bf61a6f30 (diff) | |
download | setupwizard-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.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(); + } } |