PlaylistOptions
@objcMembers
@objc(BMPPlaylistOptions)
public final class PlaylistOptions : NSObject
Contains additional configuration options for setting up a playlist.
-
Specifies whether all
Source
s in the playlist immediately start preloading when the playlist is loaded into aPlayer
. Default value isfalse
.Progressive sources can not be preloaded as part of this setting, although they will naturally be preloaded before a playlist transition.
Declaration
Swift
public let preloadAllSources: Bool
-
Defines whether replay starts at the beginning of the playlist or at the beginning of the last source. Default value is
ReplayMode.playlist
.Note
the value of this property is ignored when the System UI is used. The System UI always replays the last source.Declaration
Swift
public let replayMode: ReplayMode
-
Contains additional configuration options for setting up a playlist.
Declaration
Swift
public init( preloadAllSources: Bool, replayMode: ReplayMode )
Parameters
preloadAllSources
Specifies whether all
Source
s in the playlist immediately start preloading when the playlist is loaded into aPlayer
.replayMode
Specifies the replay behaviour of a playlist.
-
Inits the class with default values.
Declaration
Swift
override public convenience init()
-
Contains additional configuration options for setting up a playlist.
Declaration
Swift
public convenience init(preloadAllSources: Bool)
Parameters
preloadAllSources
Specifies whether all
Source
s in the playlist immediately start preloading when the playlist is loaded into aPlayer
. -
Contains additional configuration options for setting up a playlist.
Declaration
Swift
public convenience init(replayMode: ReplayMode)
Parameters
replayMode
Specifies the replay behaviour of a playlist.