Add API to expose player's current position

am: 616fd7a886

Change-Id: I91c21161d96fad0c9744d13fcc7fcd41bae766c8
This commit is contained in:
Ajay Nadathur 2017-09-06 18:42:59 +00:00 committed by android-build-merger
commit 70a4a1f7f3

View file

@ -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();
}
}