| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index 2db91fa2c4d2dde0621e74685a6d9c2d2886341b..8b6941cdd46d65779f327dcefc496e451017c5a3 100644
|
| --- a/android_webview/native/aw_contents.cc
|
| +++ b/android_webview/native/aw_contents.cc
|
| @@ -686,6 +686,12 @@ void AwContents::SetWindowVisibility(JNIEnv* env, jobject obj, bool visible) {
|
|
|
| void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) {
|
| browser_view_renderer_->SetIsPaused(paused);
|
| + if (paused) {
|
| + ContentViewCore* cvc =
|
| + ContentViewCore::FromWebContents(web_contents_.get());
|
| + if (cvc)
|
| + cvc->PauseVideo();
|
| + }
|
| }
|
|
|
| void AwContents::OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h) {
|
|
|