Class CaptionsListEvent

  • All Implemented Interfaces:
    Event

    public class CaptionsListEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onCaptionsList() event.
    • Constructor Detail

      • CaptionsListEvent

        public CaptionsListEvent​(java.util.List<Caption> tracks,
                                 int currentTrackIndex)
    • Method Detail

      • getTracks

        @NonNull
        public java.util.List<Caption> getTracks()
        Returns:
        A list with all included captions tracks(Including "off"). Includes the same information as getCaptionsList()
      • getCurrentTrackIndex

        @NonNull
        public int getCurrentTrackIndex()
        Returns:
        The index of the currently selected captions track