-
Notifications
You must be signed in to change notification settings - Fork 312
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
Multiple players getting mixed up #403
Comments
I think the best solution for now is to document this (your option 3). Options 1 and 2 sound hard, because I don't know if we can tell from playerA that playerB also exists, so this sounds like a thing that should be checked on the app side, not the Player side. I really don't want to add a "PlayerManager" that keeps track of all the Players instantiated in the app and tries to manage them, so I think documenting this to cause less surprises is the best. Would you like to send me a PR? 🙏 |
Looking at the code, couldn't option 2 be implemented just by checking |
Multiple players on one page don't seem to play well with each other. For example, in the
callback_player
demo, try clicking "play twinkle with click" first and while it is playing, click "play teapot without click". The following happens:Is it possible to implement players in such a way that they can play simultaneously? Otherwise I think possible solutions are:
stop
callback).The text was updated successfully, but these errors were encountered: