BMPPlaybackConfiguration

Objective-C


@interface BMPPlaybackConfiguration : BMPConfiguration

Swift

class PlaybackConfiguration : Configuration

Contains configuration values which can be used to alter the playback behaviour of the player.

  • Whether the player starts playing automatically after loading a source or not. Default value is NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isAutoplayEnabled) BOOL autoplayEnabled;

    Swift

    var isAutoplayEnabled: Bool { get set }
  • Whether the sound is muted on startup or not. Default value is NO.

    Declaration

    Objective-C

    @property (nonatomic, getter=isMuted) BOOL muted;

    Swift

    var isMuted: Bool { get set }
  • Whether time shift / DVR for live streams is enabled or not. Default is YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isTimeShiftEnabled) BOOL timeShiftEnabled;

    Swift

    var isTimeShiftEnabled: Bool { get set }
  • Whether background playback is enabled or not. Default is NO. When set to YES, playback is not automatically paused anymore when the app moves to the background. When set to YES, also make sure to properly configure your app to allow background playback.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isBackgroundPlaybackEnabled) BOOL backgroundPlaybackEnabled;

    Swift

    var isBackgroundPlaybackEnabled: Bool { get set }
  • Whether Picture-In-Picture option is enabled or not. Default is NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isPictureInPictureEnabled) BOOL pictureInPictureEnabled;

    Swift

    var isPictureInPictureEnabled: Bool { get set }
  • Determines if the subtitle should be selected by the player per default and kept in sync with the selected audio language. The subtitle will not appear in availableSubtitles and can’t be deactivated or activated through the API.

    In case of HLS these are subtitles with the attribute FORCED=YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=forcedSubtitleCallback, nullable) BOOL (^)
        (BMPSubtitleTrack *_Nonnull) isForcedSubtitleCallback;

    Swift

    var isForcedSubtitleCallback: ((SubtitleTrack) -> Bool)? { get set }