Add API to expose player's current position
am: 616fd7a886
Change-Id: I91c21161d96fad0c9744d13fcc7fcd41bae766c8
This commit is contained in:
commit
70a4a1f7f3
|
@ -233,4 +233,8 @@ public class IllustrationVideoView extends TextureView implements Animatable,
|
||||||
public void onSeekComplete(MediaPlayer mp) {
|
public void onSeekComplete(MediaPlayer mp) {
|
||||||
mp.start();
|
mp.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getCurrentPosition() {
|
||||||
|
return mMediaPlayer == null ? 0 : mMediaPlayer.getCurrentPosition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue