load

abstract fun load(source: Source)

Starts a new playback session consisting of the source.

If there is already a playback session active when calling this function, unload will be called implicitly before starting the new playback session.


abstract fun load(sourceConfig: SourceConfig)

Starts a new playback session consisting of a Source based on the provided sourceConfig.

If there is already a playback session active when calling this function, unload will be called implicitly before starting the new playback session.


abstract fun load(playlistConfig: PlaylistConfig)

Starts a new playback session consisting of PlaylistConfig.sources. The first source in the playlistConfig becomes active immediately.

If there is already a playback session active when calling this function, unload will be called implicitly before starting the new playback session.