Class LevelsEvent


  • public class LevelsEvent
    extends Event
    Payload that accompanies the onLevels() event.
    • Constructor Detail

      • LevelsEvent

        public LevelsEvent​(@NonNull
                           JWPlayer player,
                           @NonNull
                           java.util.List<QualityLevel> levels,
                           int currentQualityIndex)
    • Method Detail

      • getLevels

        @NonNull
        public java.util.List<QualityLevel> getLevels()
        Returns:
        The full list of qualities, including the new additions. Includes the same information as getQualityLevels().
      • getCurrentQualityIndex

        public int getCurrentQualityIndex()
        Returns:
        The quality currently loaded