Class MediaSessionCallback

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

public class MediaSessionCallback extends android.media.session.MediaSession.Callback
Implementation of MediaSession.Callback that adapts to the Player interface.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new MediaSessionCallback instance with a Player.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    onPlayFromUri(android.net.Uri uri, android.os.Bundle extras)
     
    void
    onPrepareFromUri(android.net.Uri uri, android.os.Bundle extras)
     
    void
    onSeekTo(long pos)
     
    void
    onSetPlaybackSpeed(float speed)
     
    void
     

    Methods inherited from class android.media.session.MediaSession.Callback

    onCommand, onCustomAction, onFastForward, onMediaButtonEvent, onPlayFromMediaId, onPlayFromSearch, onPrepare, onPrepareFromMediaId, onPrepareFromSearch, onRewind, onSetRating, onSkipToNext, onSkipToPrevious, onSkipToQueueItem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MediaSessionCallback

      public MediaSessionCallback(Player player)
      Creates a new MediaSessionCallback instance with a Player.
      Parameters:
      player - instance to use
  • Method Details

    • onPlay

      public void onPlay()
      Overrides:
      onPlay in class android.media.session.MediaSession.Callback
    • onPlayFromUri

      public void onPlayFromUri(android.net.Uri uri, android.os.Bundle extras)
      Overrides:
      onPlayFromUri in class android.media.session.MediaSession.Callback
    • onPrepareFromUri

      public void onPrepareFromUri(android.net.Uri uri, android.os.Bundle extras)
      Overrides:
      onPrepareFromUri in class android.media.session.MediaSession.Callback
    • onPause

      public void onPause()
      Overrides:
      onPause in class android.media.session.MediaSession.Callback
    • onStop

      public void onStop()
      Overrides:
      onStop in class android.media.session.MediaSession.Callback
    • onSeekTo

      public void onSeekTo(long pos)
      Overrides:
      onSeekTo in class android.media.session.MediaSession.Callback
    • onSetPlaybackSpeed

      public void onSetPlaybackSpeed(float speed)
      Overrides:
      onSetPlaybackSpeed in class android.media.session.MediaSession.Callback