PersistentStreamPlayer
PersistentStreamPlayer copied to clipboard
Player starts randomly when Screen is locked
Hey there,
I've build in the PersistentStreamPlayer and works as expected!
However, I'm facing some issues when the iPhone locked, or when unlocking the iPhone. When unlocking the Screen, the player starts playing.
I'm using the AppDelegate class to stop the player right away, but it's still playing for about 0.5 seconds.
Another case is when starting the player, stopping it, locking the screen & then activating the screen (Not unlocking). The player starts playing then.
The second case is only in iOS 13, the first case even in lower versions.
Any ideas on how I can fix this? Do you need some more infos?
@luciilucii I've also seen this behavior, have you found a solution yet?
I ended up editing the PersitentStreamPlayer. I don't remember what it was, but I recommend debugging the functions in the .m file. This should show you what is being triggered. Hope this helps