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..e527f5a39759cb20e80ee1f29550688cc3194dce 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -686,6 +686,7 @@ void AwContents::SetWindowVisibility(JNIEnv* env, jobject obj, bool visible) { |
void AwContents::SetIsPaused(JNIEnv* env, jobject obj, bool paused) { |
browser_view_renderer_->SetIsPaused(paused); |
+ ContentViewCore::FromWebContents(web_contents_.get())->PauseVideo(); |
boliu
2013/09/19 01:58:39
condition on if (paused)
joth
2013/09/19 02:41:50
null check it.
benm (inactive)
2013/09/19 03:27:32
Done both, thanks!
|
} |
void AwContents::OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h) { |