Continue this topic:
How to stop video playing in VideoView programmatically in android?
how resume playback after stopPlayback?
To stop video
// will stop and release the media player instance and move to idle state
videoView.stopPlayback()
To start new play
// fist set video path
videoView.setVideoPath("path"); // will release the previous media player instance if any
videoView.start() // will start if not in prepare/error state
To pause the current playing
// pause the video
videoView.pause() // will pause if already playing
Resume the video from current pause position
// resume the video
videoView.resume() // will resume from the last paused state
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With