RemoteSessionPlayer
abstract class RemoteSessionPlayer : SessionPlayer
kotlin.Any | ||
↳ | androidx.media2.common.SessionPlayer | |
↳ | androidx.media2.session.RemoteSessionPlayer |
Base interface for all remote media players that want media session and playback happens on the remote device through MediaRouter.
If you use this to the MediaSession
, session would dispatch incoming volume change event to the player instead of changing device stream volume.
Summary
Nested classes | |
---|---|
open |
A callback class to receive notifications for events on the remote session player. |
Constants | |
---|---|
static Int |
The volume control uses an absolute value. |
static Int |
The volume is fixed and can not be modified. |
static Int |
The volume control uses relative adjustment via |
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>() Base interface for all remote media players that want media session and playback happens on the remote device through MediaRouter. |
Public methods | |
---|---|
abstract Future<SessionPlayer.PlayerResult!> |
adjustVolume(direction: Int) Adjusts player volume with the direction. |
abstract Int |
Gets the maximum volume that can be used in |
abstract Int |
Gets the current volume of this player to this player. |
abstract Int |
Gets the volume type. |
abstract Future<SessionPlayer.PlayerResult!> |
Sets the volume of the audio of the media to play, expressed as a linear multiplier on the audio samples. |
Inherited functions | |
---|---|