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
open override fun onLoadStarted(eventTime: AnalyticsListener.EventTime, loadEventInfo: LoadEventInfo, mediaLoadData: MediaLoadData)
Link copied to clipboard
open override fun onPlaybackStateChanged(eventTime: AnalyticsListener.EventTime, state: Int)
Link copied to clipboard
open override fun onPlayerError(eventTime: AnalyticsListener.EventTime, error: PlaybackException)
Link copied to clipboard
open override fun onPlayerReleased(eventTime: AnalyticsListener.EventTime)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Removes a listener from this session manager.

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard