PlaylistApi
@objc(BMPPlaylistApi)
public protocol PlaylistApi
Provides the means to manage the playlist.
When the player transitions from one source in the playlist to another (either by normal playback or by
seeking), a PlaylistTransition
event is emitted and the new Source
becomes active while the old
one becomes inactive.
Accessible through Player.playlist
.
-
Seeks to the specified time in the specified Source. The
Source
must be part of the playlist.Calling this method to seek to another source while casting will start playback automatically after the seek operation finished even if the player was paused previously. This is due to limitations on the CAF receiver.
Declaration
Swift
func seek(source: Source, time: TimeInterval)