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

if multiple players, PIP will control the last player instead of the one with the PIP active. #1449

Open
wplit opened this issue Oct 2, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@wplit
Copy link

wplit commented Oct 2, 2024

The PIP button works well except if there are multiple instances of the player.

Pressing play inside the PIP small window will play the last player found on the page, rather than the one inside of the floating window.

To reproduce..

  • add two players next to each other, and click the PIP button on the first player.
  • click the little play icon inside of the small floating window.
  • the second media player will start playing.

Tested in Chrome on mac.

@wplit wplit added the bug Something isn't working label Oct 2, 2024
@underGhost
Copy link

I'm able to reproduce this as well.

@underGhost
Copy link

underGhost commented Oct 5, 2024

@mihar-22 Is the context being overwritten in this scenario? I was able to dig into it a bit and it looks like context is referencing the last player to render when PIP requests to play/pause.

@underGhost
Copy link

@underGhost
Copy link

https://issues.chromium.org/issues/40881576
There should be a way to disable using media session if more than 1 videos is used on a page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants