Commit e408a474 by tonihei

Make TrackSelectionOverride.getTrackType public

This method is helpful when iterating the list of track overrides
to figure out which type the override applies to.

Issue: google/ExoPlayer#9665
PiperOrigin-RevId: 409108977
parent 91f6e409
......@@ -174,7 +174,8 @@ public final class TrackSelectionOverrides implements Bundleable {
return trackGroup.hashCode() + 31 * trackIndices.hashCode();
}
private @C.TrackType int getTrackType() {
/** Returns the {@link C.TrackType} of the overriden track group. */
public @C.TrackType int getTrackType() {
return MimeTypes.getTrackType(trackGroup.getFormat(0).sampleMimeType);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment