---
title: usesAirPlayVideoWhileAirPlayScreenIsActive
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayer/usesairplayvideowhileairplayscreenisactive
---

# usesAirPlayVideoWhileAirPlayScreenIsActive

A Boolean value that indicates whether the player automatically switches to AirPlay Video while AirPlay Screen is active.

## Declaration

```swift
var usesAirPlayVideoWhileAirPlayScreenIsActive: Bool { get set }
```

## See Also

### Configuring AirPlay behavior

- [allowsAirPlayVideo](avfoundation/avplayer/allowsairplayvideo.md)
- [isAirPlayVideoActive](avfoundation/avplayer/isairplayvideoactive.md)
