BackgroundPlaybackDelegate

public protocol BackgroundPlaybackDelegate

A delegate defining behavior for background playback

  • Decides whether audio should continue playing when the application goes to background and the video is not visible anymore.

    This func will be called (by the SDK) after your app moved into background and THEOplayer is configured to run in the background. Not supported for iOS 13 and 14 when in Picture-In-Picture mode. Return true if you want audio to continue playing in the background.

    Declaration

    Swift

    func shouldContinueAudioPlaybackInBackground() -> Bool

    Return Value

    Whether audio should continue playing