Skip to content
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

Avoid starting playback if sending the app to the background while the player is preparing (if no background playback possible) #191

Open
defagos opened this issue Nov 15, 2019 · 1 comment

Comments

@defagos
Copy link
Member

defagos commented Nov 15, 2019

As reported by one of our teams, playback sometimes can occur in the background.

A possible reason could be that If the application is sent to the background while the player is still preparing (can be simulated with the network link conditioner), the completion handler will be called when the player is ready, at which point a call to -play from this handler might start playback in background.

While this is perfectly acceptable for audio or for video background playback if allowed, this should not occur if background behavior detaches the view (in which case we should probably pause the playback to simulate the associated effect).

@defagos
Copy link
Member Author

defagos commented Nov 15, 2019

As for SRG Media Player, I could not reproduce this behavior with Letterbox demo. Maybe the truth is somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant