-
Notifications
You must be signed in to change notification settings - Fork 440
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
Need to click the play/pause button twice when using multiple players? #226
Comments
I meet your question too. But i have solved it. audiojs is bind to window obejct, so it is a global varibale that you can use audiojs in any where of your code once you have reference it in your page. There is a instances property on audiojs which store all the audiojs instance of your page, And you can see a demo on this link:https://www.rouchi.com/teachers.html |
@alicepan I have the same problem as djs79. Could you send more detailed information where and what code I should past to have this functionality working? |
Thank @alicepan for good idea! I have implemented it this way:
|
Hello,
I've searched everywhere, but cannot seem to find an answer to this question:
I have multiple players on a single page.
When you click a play button on any player, all of the other players pause so that only one player plays at a time. Here's the code I'm using for that:
Here's my issue... when the other players are set to "pause", you have to click them twice to get them to play again. The first click seems to just un-pause it (and changes the icon back to the play icon) and it's the 2nd click that starts to play the file.
I'm hoping there's a solution where you can start another player by simply clicking once, and it will automatically pause all of the other players.
I've tested this in Chrome, Firefox and IE.
Is this possible?
Thanks - any help is appreciated!
The text was updated successfully, but these errors were encountered: