Loading packages/MediaComponents/src/com/android/widget/VideoView2Impl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -407,7 +407,7 @@ public class VideoView2Impl extends BaseLayout return; return; } } mSpeed = speed; mSpeed = speed; if (mMediaPlayer != null && mMediaPlayer.isPlaying()) { if (mMediaPlayer != null && mMediaPlayer.getState() == MediaPlayer2.PLAYER_STATE_PLAYING) { applySpeed(); applySpeed(); } } updatePlaybackState(); updatePlaybackState(); Loading Loading @@ -1341,7 +1341,7 @@ public class VideoView2Impl extends BaseLayout if (isRemotePlayback()) { if (isRemotePlayback()) { mRoutePlayer.onPause(); mRoutePlayer.onPause(); mCurrentState = STATE_PAUSED; mCurrentState = STATE_PAUSED; } else if (mMediaPlayer.isPlaying()) { } else if (mMediaPlayer.getState() == MediaPlayer2.PLAYER_STATE_PLAYING) { mMediaPlayer.pause(); mMediaPlayer.pause(); mCurrentState = STATE_PAUSED; mCurrentState = STATE_PAUSED; updatePlaybackState(); updatePlaybackState(); Loading Loading
packages/MediaComponents/src/com/android/widget/VideoView2Impl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -407,7 +407,7 @@ public class VideoView2Impl extends BaseLayout return; return; } } mSpeed = speed; mSpeed = speed; if (mMediaPlayer != null && mMediaPlayer.isPlaying()) { if (mMediaPlayer != null && mMediaPlayer.getState() == MediaPlayer2.PLAYER_STATE_PLAYING) { applySpeed(); applySpeed(); } } updatePlaybackState(); updatePlaybackState(); Loading Loading @@ -1341,7 +1341,7 @@ public class VideoView2Impl extends BaseLayout if (isRemotePlayback()) { if (isRemotePlayback()) { mRoutePlayer.onPause(); mRoutePlayer.onPause(); mCurrentState = STATE_PAUSED; mCurrentState = STATE_PAUSED; } else if (mMediaPlayer.isPlaying()) { } else if (mMediaPlayer.getState() == MediaPlayer2.PLAYER_STATE_PLAYING) { mMediaPlayer.pause(); mMediaPlayer.pause(); mCurrentState = STATE_PAUSED; mCurrentState = STATE_PAUSED; updatePlaybackState(); updatePlaybackState(); Loading