Loading core/java/android/widget/VideoView.java +2 −1 Original line number Diff line number Diff line Loading @@ -782,7 +782,8 @@ public class VideoView extends SurfaceView public void suspend() { // HTTP streaming will call MediaPlayer::suspend() for suspend operation, others will call release() if (isHTTPStreaming(mUri) && mCurrentState > STATE_PREPARING && mMediaPlayer != null) { if (isHTTPStreaming(mUri) && mCurrentState > STATE_PREPARING && mCurrentState < STATE_PLAYBACK_COMPLETED && mMediaPlayer != null) { if (mMediaPlayer.suspend()) { mTargetState = mCurrentState; mCurrentState = STATE_SUSPENDED; Loading Loading
core/java/android/widget/VideoView.java +2 −1 Original line number Diff line number Diff line Loading @@ -782,7 +782,8 @@ public class VideoView extends SurfaceView public void suspend() { // HTTP streaming will call MediaPlayer::suspend() for suspend operation, others will call release() if (isHTTPStreaming(mUri) && mCurrentState > STATE_PREPARING && mMediaPlayer != null) { if (isHTTPStreaming(mUri) && mCurrentState > STATE_PREPARING && mCurrentState < STATE_PLAYBACK_COMPLETED && mMediaPlayer != null) { if (mMediaPlayer.suspend()) { mTargetState = mCurrentState; mCurrentState = STATE_SUSPENDED; Loading