Class VisualQualityEvent

  • All Implemented Interfaces:
    Event

    public final class VisualQualityEvent
    extends java.lang.Object
    implements Event
    An object containing information about quality switching of a video stream.
    • Method Detail

      • getMode

        @NonNull
        public VisualQualityEvent.Mode getMode()
        Returns the type of quality selection that has been enabled on the player. Can be MODE_AUTO if the auto quality level is enabled, or MODE_MANUAL if a static quality is set.
      • getReason

        @NonNull
        public VisualQualityEvent.Reason getReason()
        Returns the reason why the quality was changed. One of:
        • Reason.INITIAL - The initial quality level, picked by the JW Player.
        • Reason.AUTO - An automatic quality change occurred.
        • Reason.API - The user chose a static quality after playback began, or an API was used to set it.
        • Reason.UNKNOWN - The reason is unknown.

        The reason may not always be available for HLS.

      • getQualityLevel

        @NonNull
        public QualityLevel getQualityLevel()
        Returns information about the quality level.