Index: webkit/media/android/webmediaplayer_in_process_android.cc |
diff --git a/webkit/media/android/webmediaplayer_in_process_android.cc b/webkit/media/android/webmediaplayer_in_process_android.cc |
index aea5a05805b06dfc1ce8fee83444f025ba284957..6f28a8bc7a29a8183a4a8a4716678d33d1aa0ce1 100644 |
--- a/webkit/media/android/webmediaplayer_in_process_android.cc |
+++ b/webkit/media/android/webmediaplayer_in_process_android.cc |
@@ -109,6 +109,10 @@ void WebMediaPlayerInProcessAndroid::SeekCompleteCallback( |
OnSeekComplete(current_time); |
} |
+void WebMediaPlayerInProcessAndroid::MediaInterruptedCallback(int player_id) { |
+ PauseInternal(); |
+} |
+ |
void WebMediaPlayerInProcessAndroid::MediaErrorCallback(int player_id, |
int error_type) { |
OnMediaError(error_type); |
@@ -148,6 +152,8 @@ void WebMediaPlayerInProcessAndroid::InitializeMediaPlayer(GURL url) { |
base::Bind(&WebMediaPlayerInProcessAndroid::SeekCompleteCallback, |
base::Unretained(this)), |
base::Bind(&WebMediaPlayerInProcessAndroid::TimeUpdateCallback, |
+ base::Unretained(this)), |
+ base::Bind(&WebMediaPlayerInProcessAndroid::MediaInterruptedCallback, |
base::Unretained(this)))); |
UpdateNetworkState(WebMediaPlayer::NetworkStateLoading); |