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
This commit is contained in:
tonihei 2021-11-11 11:45:58 +00:00 committed by Ian Baker
parent 961bfaaec3
commit 1c8d00a47d

View File

@ -172,7 +172,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);
}