PlaybackSessionManager

Manages playback sessions, representing interactions with individual MediaItems.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Listener

An interface for receiving notifications about session lifecycle events.

Link copied to clipboard
class Session(val periodUid: Any, val window: Timeline.Window)

Represents a playback session associated with a MediaItem in a Timeline.

Link copied to clipboard
data class SessionInfo(val session: PlaybackSessionManager.Session, val position: Long)

Represents information about a session at a specific point in time.

Functions

Link copied to clipboard

Adds a listener to this session manager.

Link copied to clipboard

Returns the current session.

Link copied to clipboard

Retrieves a session by its id.

Link copied to clipboard
Link copied to clipboard

Retrieves the Session associated with a given period UID.

Link copied to clipboard

Removes a listener from this session manager.

Link copied to clipboard
fun setPlayer(player: ExoPlayer)

Sets the ExoPlayer instance to monitor for managing sessions.