public class

MediaSessionCallback

extends MediaSession.Callback
java.lang.Object
   ↳ android.media.session.MediaSession.Callback
     ↳ com.amazonaws.ivs.player.MediaSessionCallback

Class Overview

Implementation of android.media.session.MediaSession.Callback that adapts to the Player interface.

Summary

Public Constructors
MediaSessionCallback(Player player)
Creates a new MediaSessionCallback instance with a Player.
Public Methods
void onPause()
void onPlay()
void onPlayFromUri(Uri uri, Bundle extras)
void onPrepareFromUri(Uri uri, Bundle extras)
void onSeekTo(long pos)
void onSetPlaybackSpeed(float speed)
void onStop()
[Expand]
Inherited Methods
From class android.media.session.MediaSession.Callback
From class java.lang.Object

Public Constructors

public MediaSessionCallback (Player player)

Creates a new MediaSessionCallback instance with a Player.

Parameters
player instance to use

Public Methods

public void onPause ()

public void onPlay ()

public void onPlayFromUri (Uri uri, Bundle extras)

public void onPrepareFromUri (Uri uri, Bundle extras)

public void onSeekTo (long pos)

public void onSetPlaybackSpeed (float speed)

public void onStop ()