Session

class Session(val periodUid: Any, val window: Timeline.Window)
  • A session is linked to the period inside the timeline, see Timeline.getUidOfPeriod.

  • A session is created when the player does something with a MediaItem.

  • A session is current if the media item associated with the session is the current MediaItem.

  • A session is destroyed when

    • It is no longer the current session.

    • It is removed from the player.

    • The player is released.

Constructors

Link copied to clipboard
constructor(periodUid: Any, window: Timeline.Window)

Properties

Link copied to clipboard

Media item

Link copied to clipboard

The period id from Timeline.getUidOfPeriod for mediaItem.

Link copied to clipboard

Unique session id.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String