[Reland] [Picture in Picture] Pause active videos when leaving PiP mode.
There are two instances where PictureInPictureWindowController is torn down: 1. Tab is closed (controller is tied to the tab's WebContents). In this case, the player is also deleted, so there are no behavioral concerns. 2. A video on a different tab enters Picture-in-Picture mode. In this case, the player from the earlier PiP'd tab may still be playing in that tab, meaning there may be two(+) videos playing. This change would pause the initial video, as the user has indicated they want to PiP a new video. This behavior will be up for further discussion with UX. BUG: 823172 Change-Id: I3e1a58f496f5814a4a8aae40df3de23cd0ee6702 Reviewed-on: https://chromium-review.googlesource.com/1038303Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Commit-Queue: apacible <apacible@chromium.org> Cr-Commit-Position: refs/heads/master@{#555416}
Showing
Please register or sign in to comment