---
title: preventsAutomaticBackgroundingDuringVideoPlayback
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayer/preventsautomaticbackgroundingduringvideoplayback
---

# preventsAutomaticBackgroundingDuringVideoPlayback

A Boolean value that indicates whether video playback prevents the system from automatically backgrounding the app.

## Declaration

```swift
nonisolated var preventsAutomaticBackgroundingDuringVideoPlayback: Bool { get set }
```

## Discussion

Discussion The default value is true, which indicates the system doesn’t automatically background an app while it’s actively playing video. A user may still choose to background an app.

## See Also

### Preventing sleep and backgrounding

- [preventsDisplaySleepDuringVideoPlayback](avfoundation/avplayer/preventsdisplaysleepduringvideoplayback.md)
