Class QualityLevel
- java.lang.Object
-
- com.jwplayer.pub.api.media.adaptive.QualityLevel
-
- All Implemented Interfaces:
android.os.Parcelable,java.lang.Comparable<QualityLevel>
public class QualityLevel extends java.lang.Object implements java.lang.Comparable<QualityLevel>, android.os.Parcelable
A QualityLevel in a HLS, SmoothStreaming or DASH stream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQualityLevel.BuilderBuilder forQualityLevel.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTO_LABELThe label for the Auto Trackstatic android.os.Parcelable.Creator<QualityLevel>CREATORstatic intNO_VALUEMagic constant used when something is unkown.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QualityLevel qualityLevel)intdescribeContents()intgetBitrate()intgetHeight()java.lang.StringgetLabel()intgetPlaylistPosition()intgetTrackIndex()intgetWidth()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
AUTO_LABEL
public static final java.lang.String AUTO_LABEL
The label for the Auto Track- See Also:
- Constant Field Values
-
NO_VALUE
public static final int NO_VALUE
Magic constant used when something is unkown.- See Also:
- Constant Field Values
-
CREATOR
public static final android.os.Parcelable.Creator<QualityLevel> CREATOR
-
-
Method Detail
-
getPlaylistPosition
public int getPlaylistPosition()
- Returns:
- The HLS playlist position of this quality level. -1 if "Auto" quality.
-
getBitrate
public int getBitrate()
-
getLabel
public java.lang.String getLabel()
-
getHeight
public int getHeight()
-
getWidth
public int getWidth()
-
getTrackIndex
public int getTrackIndex()
-
compareTo
public int compareTo(@NonNull QualityLevel qualityLevel)- Specified by:
compareToin interfacejava.lang.Comparable<QualityLevel>
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-