You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amplitude.getPlayerState() returns the wrong play status
I would expect this method to return whether the player is currently playing // paused, etc. I am trying to find a good way to detect what's happening on the page. This method only returns playing when the playbutton is pressed. Clicking Next/Previous does not change the state.
Environment
Amplitude.getPlayerState() returns play if audio is playing, not whether or not it was manually triggered. In the demo, it should loop "paused" or "stopped" until the player is playing. check console log to see that it still returns "paused" if the audio IS playing.
Amplitude.getPlayerState() returns the wrong play status
I would expect this method to return whether the player is currently playing // paused, etc. I am trying to find a good way to detect what's happening on the page. This method only returns playing when the playbutton is pressed. Clicking Next/Previous does not change the state.
Environment
https://www.whatsmybrowser.org/b/1Y8UG
Steps to reproduce the issue
What is expected?
Amplitude.getPlayerState() returns play if audio is playing, not whether or not it was manually triggered. In the demo, it should loop "paused" or "stopped" until the player is playing. check console log to see that it still returns "paused" if the audio IS playing.
Link to where issue can be reproduced
https://codepen.io/jacob-raccuia/pen/oNxqYgP
Additional details / screenshots
The text was updated successfully, but these errors were encountered: