Commit f170c8b1 authored by dtrainor@chromium.org's avatar dtrainor@chromium.org

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
parent 4f638cd7
...@@ -480,6 +480,10 @@ void BrowserMediaPlayerManager::OnEnterFullscreen(int player_id) { ...@@ -480,6 +480,10 @@ void BrowserMediaPlayerManager::OnEnterFullscreen(int player_id) {
// fullscreen video, we just ignore the second one. // fullscreen video, we just ignore the second one.
fullscreen_player_id_ = player_id; fullscreen_player_id_ = player_id;
video_view_.reset(new ContentVideoView(this)); 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));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment