Interface MediaSessionConnector.CaptionCallback

    • Method Detail

      • onSetCaptioningEnabled

        void onSetCaptioningEnabled​(Player player,
                                    boolean enabled)
        See MediaSessionCompat.Callback.onSetCaptioningEnabled(boolean).
      • hasCaptions

        boolean hasCaptions​(Player player)
        Returns whether the media currently being played has captions.

        This method is called each time the media session playback state needs to be updated and published upon a player state change.