Closed rssumit closed 6 years ago
see the sample:
save your video position on protected void onSaveInstanceState(Bundle outState)
;
and when user back, on public void onStart(MediaPlayer mediaPlayer)
seek to the saved position :
@Override
public void onStart(MediaPlayer mediaPlayer) {
Log.d(TAG, "onStart UniversalVideoView callback");
mVideoView.seekTo(mSeekPosition); // seek to the saved position
}
How to check end time of video when the video is pause and activity pause, destroyed, stop. When the user starts the video, if he pauses the video and go back(pause, stop, destroyed activity,pause video).after this video should start from last timestamp.