Class QualityLevel

java.lang.Object
com.jwplayer.pub.api.media.adaptive.QualityLevel
All Implemented Interfaces:
Comparable<QualityLevel>

public class QualityLevel extends Object implements Comparable<QualityLevel>
A QualityLevel in a HLS, SmoothStreaming or DASH stream.
  • Field Details

    • AUTO_LABEL

      public static final String AUTO_LABEL
      The label for the Auto Track
      See Also:
    • NO_VALUE

      public static final int NO_VALUE
      Magic constant used when something is unkown.
      See Also:
    • CREATOR

      public static final <any> CREATOR
  • Method Details

    • getPlaylistPosition

      public int getPlaylistPosition()
      Returns:
      The HLS playlist position of this quality level. -1 if "Auto" quality.
    • getBitrate

      public int getBitrate()
    • getLabel

      public String getLabel()
    • getHeight

      public int getHeight()
    • getWidth

      public int getWidth()
    • getTrackIndex

      public int getTrackIndex()
    • compareTo

      public int compareTo(QualityLevel qualityLevel)
      Specified by:
      compareTo in interface Comparable<QualityLevel>
    • describeContents

      public int describeContents()
    • writeToParcel

      public void writeToParcel(Parcel dest, int flags)