Interface MediaSessionConnector.CommandReceiver

    • Method Detail

      • onCommand

        boolean onCommand​(Player player,
                          ControlDispatcher controlDispatcher,
                          String command,
                          Bundle extras,
                          ResultReceiver cb)
        See MediaSessionCompat.Callback.onCommand(String, Bundle, ResultReceiver). The receiver may handle the command, but is not required to do so.
        player - The player connected to the media session.
        controlDispatcher - This parameter is deprecated. Use player instead. Operations can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or when configuring the player (for example by using SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
        command - The command name.
        extras - Optional parameters for the command, may be null.
        cb - A result receiver to which a result may be sent by the command, may be null.
        Whether the receiver handled the command.