Package-level declarations
Types
How long a player asks to hold the right to make sound for. See InterruptionPolicy.focus.
What playback should do when the application leaves the screen.
What the platform said happened to the right to make sound.
What to do when something takes the right to make sound away.
Keeps the process alive while the player plays, and holds the media notification.
Mirrors player into Android's media session and routes the buttons back.
Mirrors player into the iOS now playing card and routes its buttons back.
The desktop has no media session. This exists so code that builds one on every platform compiles here too; it mirrors nothing, and isAvailable is false.
Mirrors player into the browser's media session and routes its buttons back.
A button of the application's own, in the media notification and in the system media controls. Give them to KitePlayerMediaSession.setCustomActions. The notification shows five buttons at most.
How the user put the media notification away. See MediaNotificationOptions.onDismissed.
The names of the notification's transport buttons, which a screen reader says. English by default.
How the media notification looks and behaves. Only smallIcon has no default.
The four things a lock screen can show. Buffering is kept apart from paused, because a stalled stream that looks paused invites a press of play that does nothing.
What the platform's media session should show and accept, as one value.
What the media notification keeps awake while the player plays or buffers.
Functions
Stops player decoding video for a screen nobody is looking at.
Stops player decoding video for a screen nobody is looking at.
Stops player decoding video for a screen nobody is looking at, and keeps it on while the small window of pictureInPicture shows.
Makes player behave when something takes the sound away: a call, another app, or the headphones coming out.
Makes player behave when something takes the sound away: a call, another app, or the headphones coming out.
Shows session as a media notification and keeps playback going after the application leaves the screen.
Creates the media session for this player, with what an app needs for the lock screen and for background playback, and returns it.
Creates the media session for this player, with what an app needs for the lock screen and for background playback, and returns it.
Creates the media session for this player. On the desktop JVM it mirrors nothing, as KitePlayerMediaSession says, so shared code keeps one call per platform.
Creates the media session for this player and returns it. It closes itself when the player closes. See KitePlayerMediaSession for what a browser shows.
Reads a snapshot and a progress sample into the state a platform session wants.