A Boolean value that indicates whether video playback prevents display and device sleep.
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
The default value for this property on iOS is
true. The defalut value for this property on macOS is
false. Setting this property to
false does not force the display to sleep, it just doesn't stop the display from going to sleep. Other apps or frameworks within your app can still prevent the display from going to sleep for other reasons.