-
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
Correct behavior with multiple players #418
Conversation
*/ | ||
seekTo(seconds: number) { | ||
if (!this.isPlaying()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this one either. You can definitely seek while the player is paused or stopped. I would remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: isPlaying()
returns true
when the player is paused. And when it's stopped, you can't resume()
it anymore; you can only call start()
which will start playing from time 0. Am I correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, we don't want to allow doing anything with the Transport
when the player is stopped, because it might affect some other player.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes!
(I'll do a release now that has all of your recent changes, thanks so much for them!) |
This PR adds checks to
BasePlayer
to make sure only one player is active at a given time. An error is thrown if an action would put the player in an inconsistent state. Fixes #403.