PlayerAudiovisualBackgroundPlaybackPolicy

public enum PlayerAudiovisualBackgroundPlaybackPolicy

Defines how the player handles audiovisual content when the app transitions to background.

Use this policy to control playback behavior when your app enters the background or when the device locks.

Note

Available on iOS 15.0+ and tvOS 15.0+.
  • The system decides whether playback continues.

    Declaration

    Swift

    case automatic
  • Always continue playback in background if possible.

    Declaration

    Swift

    case continuesIfPossible
  • Always pause playback when app goes to background or device locks.

    Declaration

    Swift

    case pauses