PlaylistApi
interface PlaylistApi
Provides the means to manage multiple Sources inside a playback session.
When the player transitions from one source in the playback session to another (either by normal playback or by seeking), a PlayerEvent.PlaylistTransition event is emitted and the new source becomes active while the old one becomes inactive.
Accessible through Player.playlist.
Properties
Functions
| Name | Summary |
|---|---|
| add | abstract fun add(source: Source) Appends the source to the active playback session. abstract fun add(source: Source, index: Int) Adds the source to the active playback session at index. |
| remove | abstract fun remove(source: Source) Removes the source from the active playback session. Trying to remove the active source has no effect and will result in a no-op. abstract fun remove(index: Int) Removes the source at index from the active playback session. Trying to remove the active source has no effect and will result in a no-op. |
| seek | abstract fun seek(source: Source, seekTarget: SeekTarget?) Seeks in the specified source at the position specified by seekTarget. abstract fun seek(source: Source, time: Double) Seeks to the specified time in the specified source. The source must be part of the playback session. |