Player malfunctions after the device goes into sleep mode - Safari (macOS) #971
Labels
area-player
Related to the audio playback engine.
platform-javascript
Related to the JavaScript version of alphaTab
state-needs-investigation
type-bug 🕷️
Is there an existing issue for this?
Current Behavior
Summary:
After turning on the device from sleep mode, playback doesn't resume when api.play() or api.playPause() are called.
Detailed:
While using Safari and viewing the same example player on the website's main page or other ones, if you put your device in sleep mode and it lasts for more than few seconds in this state (~10 seconds) . Then, if you turn it back on, you will lose the ability to resume playback (whether you're using api.play() or api.playPause() makes no difference). The cursor will move slightly to the adjacent note to its right then reverts back to its initial position (highlighting the note indefinitely as well).
I tested this with Chrome and Firefox on a Windows device, an actual Android device and an emulator. All function properly with zero issues when going through this procedure. Unfortunately, I can't provide a video capture example.
Expected Behavior
When the device goes into sleep mode and is turned back on, the player should restore or maintain its state and function as if there was no interruption to the process irrespective of the duration.
Steps To Reproduce
Link to jsFiddle, CodePen, Project
No response
Found in Version
1.2
Platform
Web
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: