Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2545 Multiple media elements handling #3201

Merged
merged 2 commits into from Apr 21, 2020
Merged

Conversation

keianhzo
Copy link
Collaborator

@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants