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

Unified Diff: content/browser/media/android/browser_media_player_manager.cc

Issue 378543002: Skip to enter the fullscreen automatically when hole-punching is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/browser_media_player_manager.cc
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc
index e2d6676d890b5e4d935e2869cb0d8b04e86535f3..20ac8ec347851d65c27d80c6268bcdec6f174839 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -320,6 +320,13 @@ void BrowserMediaPlayerManager::RequestFullScreen(int player_id) {
return;
}
+#if defined(VIDEO_HOLE)
+ // Skip to enter the fullscreen automatically when hole-punching is enabled.
+ RendererPreferences* prefs = web_contents_->GetMutableRendererPrefs();
+ if (prefs->use_video_overlay_for_embedded_encrypted_video)
+ return;
xhwang 2014/07/07 16:18:33 Can you put this check in MediaSourcePlayer? e.g.
ycheo (away) 2014/07/08 12:40:09 Done.
+#endif
+
Send(new MediaPlayerMsg_RequestFullscreen(RoutingID(), player_id));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698