[Picture in Picture] Show correct media controls when window is opened.
Currently, the initial media control shown is always the play (untoggled) icon. This change checks for whether or not the play is currently active, or playing, when entering Picture-in-Picture mode. This change also updates how media player state (active / inactive) and other relevant information (e.g. media player id) is retrieved. The MediaWebContentsObserver and MediaPlayerId are not updated after entering Picture-in-Picture mode. BUG: 836389 Change-Id: I64baafebc20bf91fd457866237d1ec8dd526fd68 Reviewed-on: https://chromium-review.googlesource.com/1034158 Commit-Queue: apacible <apacible@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#555952}
Showing
Please register or sign in to comment