mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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:
parent
91f6e40922
commit
e408a474af
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ public final class TrackSelectionOverrides implements Bundleable {
|
||||||
return trackGroup.hashCode() + 31 * trackIndices.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);
|
return MimeTypes.getTrackType(trackGroup.getFormat(0).sampleMimeType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue