PlaybackConfig
@objcMembers
@objc(BMPPlaybackConfig)
public class PlaybackConfig : NSObject, @unchecked Sendable
Contains config values that 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
false
.Declaration
Swift
public var isAutoplayEnabled: Bool
-
Whether the sound is muted on startup or not. Default value is
false
.Declaration
Swift
public var isMuted: Bool
-
Whether time shift / DVR for live streams is enabled or not. Default is
true
.Declaration
Swift
public var isTimeShiftEnabled: Bool
-
Whether background playback is enabled or not. Default is
false
.When set to
true
, playback is not automatically paused anymore when the app moves to the background. When set totrue
, also make sure to properly configure your app to allow background playback.On tvOS, background playback is only supported for audio-only content.
Declaration
Swift
public var isBackgroundPlaybackEnabled: Bool
-
Whether Picture-In-Picture option is enabled or not. Default is
false
.Declaration
Swift
@available(*, deprecated, message: "Use `PlayerViewConfig.PictureInPictureConfig.isEnabled` instead") public var isPictureInPictureEnabled: Bool
-
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
Swift
public var isForcedSubtitleCallback: ((SubtitleTrack) -> Bool)?
-
Declaration
Swift
override public init()