MediaSession

interface MediaSession

Allows to advertise media playback for a Player instance externally and to receive playback commands from external sources. See MediaSessionService for more details.

Properties

Link copied to clipboard
abstract val isReleased: Boolean

Whether the media session is released.

Link copied to clipboard
abstract val player: Player

The player instance that this media session is connected to.

Functions

Link copied to clipboard
abstract fun release()

Releases the media session when it is not needed anymore.