Reputation: 4716
I am working on an application that involves using AVPlayer to have a video in the background of an interface.
We've found that while video is playing, the app will never go to sleep. Is there a way to tell AVPlayer to allow the app to go to sleep regardless?
Upvotes: 6
Views: 1610
Reputation: 7003
Set preventsDisplaySleepDuringVideo
to false
or NO
on the AVPlayer
instance.
Upvotes: 2