Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 570183002: Make the pause of video playback and video capture consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also make video playback consistent Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index a007f21a7e59a138faf7cb73bbf950b468759164..4daf31ecbfe20be109d5eee5562c2c3b19c579f4 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -178,7 +178,6 @@ void WebContentsAndroid::BeginExitTransition(JNIEnv* env,
void WebContentsAndroid::OnHide(JNIEnv* env, jobject obj) {
web_contents_->WasHidden();
- PauseVideo();
}
void WebContentsAndroid::OnShow(JNIEnv* env, jobject obj) {
@@ -200,13 +199,6 @@ void WebContentsAndroid::ReleaseMediaPlayers(JNIEnv* env, jobject jobj) {
#endif // defined(ENABLE_BROWSER_CDMS)
}
-void WebContentsAndroid::PauseVideo() {
- RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>(
- web_contents_->GetRenderViewHost());
- if (rvhi)
- rvhi->media_web_contents_observer()->PauseVideo();
-}
-
void WebContentsAndroid::AddStyleSheetByURL(
JNIEnv* env,
jobject obj,

Powered by Google App Engine
This is Rietveld 408576698