From f170c8b175f619f40e160b36bead172b704edb9c Mon Sep 17 00:00:00 2001 From: "dtrainor@chromium.org" Date: Mon, 28 Apr 2014 22:24:36 +0000 Subject: [PATCH] On Android, force a subsequent fullscreen video to exit if another one is already playing. BUG=361550 Review URL: https://codereview.chromium.org/246523006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266673 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/media/android/browser_media_player_manager.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc index ccc548e33ead..279a74ce05eb 100644 --- a/content/browser/media/android/browser_media_player_manager.cc +++ b/content/browser/media/android/browser_media_player_manager.cc @@ -480,6 +480,10 @@ void BrowserMediaPlayerManager::OnEnterFullscreen(int player_id) { // fullscreen video, we just ignore the second one. fullscreen_player_id_ = player_id; video_view_.reset(new ContentVideoView(this)); + } else { + // Force the second video to exit fullscreen. + Send(new MediaPlayerMsg_DidEnterFullscreen(routing_id(), player_id)); + Send(new MediaPlayerMsg_DidExitFullscreen(routing_id(), player_id)); } } -- 2.11.4.GIT