Skip to content

Commit

Permalink
Make TrackSelectionOverride.getTrackType public
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tonihei authored and icbaker committed Nov 19, 2021
1 parent 961bfaa commit 1c8d00a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public int hashCode() {
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);
}

Expand Down

0 comments on commit 1c8d00a

Please sign in to comment.