-
Notifications
You must be signed in to change notification settings - Fork 0
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
Player not advancing to next block in background mode #22
Comments
Ah, it looks like this is an Apple TOS issue. I don't know how to fix this. ocetnik/react-native-background-timer#9 |
I think this might be doable if I keep a silent sound running throughout the whole timer, so two tracks playing, one of which is a silent sound which repeats and has a volume of zero, the other is the actual session track. |
Works! It seems like if I do a console log when the video loads it plays properly. I have no idea why this works but I'll take it. |
Doesn't work! Looks like I need to refactor to have everything on RN Sound as they are enabling loading sounds from the network |
Boy this is a tough issue. The big issue is that we need to preload each block file, but at the same time we need to make sure that we don't have a hundred sounds loaded up. So we need some process to load sounds a fe blocks ahead of time, so that there aren't any gaps when they play. Here is my current plan:
Test cases:
|
When you lock the device it will play the end of the current gong or contemplation, but not advance to the next block
The text was updated successfully, but these errors were encountered: