<img src="https://img.shields.io/badge/%20-ENTERPRISE-B10031" style="float:left"/><br />

If you load a video that is a transition animation in your application, you likely do not want this animation to play on an AirPlay device. By configuring the iOS SDK external playback setting, you can define how the player interacts with external playback devices.

The `JWExternalPlaybackSettings` object is optional. By default, all videos have external playback enabled.

<br /> <hr />

## Requirement

  • JWPlayerKit 4.7.0+

<br /> <hr />

## Configure settings

When defining your settings, the following properties exist. Each is analogous to a setting in AVPlayer.

<span style="font-size: 12px;">

PropertyDefaultAVPlayer Setting
**playbackEnabled**`true`<a href="https://developer.apple.com/documentation/avfoundation/avplayer/1387441-allowsexternalplayback" target="_blank">allowsExternalPlayback</a>
**usesExternalPlaybackWhileExternalScreenIsActive**</a>`false`<a href="https://developer.apple.com/documentation/avfoundation/avplayer/1624255-usesexternalplaybackwhileexterna" target="_blank">usesExternalPlaybackWhileExternalScreenIsActive</a>
**videoGravity**`.resizeAspectFit`<a href="https://developer.apple.com/documentation/avfoundation/avplayer/1624251-externalplaybackvideogravity" target="_blank">externalPlaybackVideoGravity</a>


<br /> <br />

The following recipe demonstrates how to configure external playback settings using the default settings.

iOS: Configure external playback settings
Open Recipe

<br />

<!-- Removes the automatic page-to-page navigation at the bottom of the page -->

<style> .rm-Pagination { display: none; } </style>