PlaybackConfig
@objcMembers
@objc(BMPPlaybackConfig)
public class PlaybackConfig : Config
Undocumented
-
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.Declaration
Swift
public var isBackgroundPlaybackEnabled: Bool -
Whether Picture-In-Picture option is enabled or not. Default is
false.Declaration
Swift
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)? -
Undocumented
Declaration
Swift
override public init()
PlaybackConfig Class Reference