Class DefaultTrackSelector.AudioTrackScore
- java.lang.Object
-
- com.google.android.exoplayer2.trackselection.DefaultTrackSelector.AudioTrackScore
-
- All Implemented Interfaces:
Comparable<DefaultTrackSelector.AudioTrackScore>
- Enclosing class:
- DefaultTrackSelector
protected static final class DefaultTrackSelector.AudioTrackScore extends Object implements Comparable<DefaultTrackSelector.AudioTrackScore>
Represents how well an audio track matches the selectionDefaultTrackSelector.Parameters.
-
-
Field Summary
Fields Modifier and Type Field Description booleanisWithinConstraintsWhether the provided format is within the parameter constraints.
-
Constructor Summary
Constructors Constructor Description AudioTrackScore(Format format, DefaultTrackSelector.Parameters parameters, int formatSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DefaultTrackSelector.AudioTrackScore other)Compares this score with another.
-
-
-
Constructor Detail
-
AudioTrackScore
public AudioTrackScore(Format format, DefaultTrackSelector.Parameters parameters, @Capabilities int formatSupport)
-
-
Method Detail
-
compareTo
public int compareTo(DefaultTrackSelector.AudioTrackScore other)
Compares this score with another.- Specified by:
compareToin interfaceComparable<DefaultTrackSelector.AudioTrackScore>- Parameters:
other- The other score to compare to.- Returns:
- A positive integer if this score is better than the other. Zero if they are equal. A negative integer if this score is worse than the other.
-
-