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, picture in picture is not active and THEOplayer is configured to run in the background. This func will not be called using the WEB pipeline. Return true if you want audio to continue playing in the background.

    Declaration

    Swift

    func shouldContinueAudioPlaybackInBackground() -> Bool

    Return Value

    Whether audio should continue playing