Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fixes #2545 Multiple media elements handling #3201

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

keianhzo
Copy link
Contributor

@keianhzo keianhzo commented Apr 21, 2020

Fixes #2545 Fixes #2559 This PR improves the handling of multiple media elements state and address the issues with the title bar media controls in pages with multiple media elements..

We were currently only listening for events on the latest added media element. This PR adds support for listening on events from all the currently existing media elements and sending title bar media controls actions to the latest focused element.

STRs:

  • Open a page with multiple media elements (ie. https://twitter.com/AFCAjax)
  • Play the first media element
  • Add a new window
  • See the initial window title bar

Result: The title bar doesn't show the media controls
Expected: The title bar should show the media controls and they should action the active media element.

With this PR on pages with multiple media elements, the title bar media controls should always target the latest focused media element.

@keianhzo keianhzo self-assigned this Apr 21, 2020
@keianhzo keianhzo changed the title Fixes #2545 Media media elements handling Fixes #2545 Multiple media elements handling Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants