Chromium Code Reviews| Index: content/renderer/media/android/webmediaplayer_android.cc |
| diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc |
| index bf8594db964b8d3a8306e248729f577b416710df..dfb678535f2ae36f9d841ec14e556719c3338986 100644 |
| --- a/content/renderer/media/android/webmediaplayer_android.cc |
| +++ b/content/renderer/media/android/webmediaplayer_android.cc |
| @@ -1026,6 +1026,14 @@ void WebMediaPlayerAndroid::OnMediaPlayerPlay() { |
| } |
| void WebMediaPlayerAndroid::OnMediaPlayerPause() { |
| + // Complete a seek operation upon entering pause state. Pause is called as |
| + // part of remote media player preparation. There might be a seek operation |
| + // initiated locally while the media is not playing, and it needs to be |
| + // completed before the remote player starts playing. |
| + // (see crbug.com/568161) |
| + if (seeking()) |
| + OnSeekComplete(seek_time_); |
|
aberent
2016/01/12 15:54:56
What effect does this have on local playback, e.g.
dgn
2016/01/13 12:25:54
Removed that line. Tried first to do that when swi
|
| + |
| UpdatePlayingState(false); |
| client_->playbackStateChanged(); |
| } |