mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add MIME types for which every sample is known to be a sync sample.
- Leaving the TODO, since there are still MIME types we're unsure about. - Removing AAC because xHE-AAC does not have this property. We may re-add it with an additional profile check to exclude xHE-AAC in the future. PiperOrigin-RevId: 316715147
This commit is contained in:
parent
a0e90ce1ff
commit
6e1c197309
1 changed files with 12 additions and 2 deletions
|
|
@ -155,12 +155,22 @@ public final class MimeTypes {
|
||||||
if (mimeType == null) {
|
if (mimeType == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// TODO: Consider adding additional audio MIME types here.
|
// TODO: Add additional audio MIME types. Also consider evaluating based on Format rather than
|
||||||
|
// just MIME type, since in some cases the property is true for a subset of the profiles
|
||||||
|
// belonging to a single MIME type. If we do this, we should move the method to a different
|
||||||
|
// class. See [Internal ref: http://go/exo-audio-format-random-access].
|
||||||
switch (mimeType) {
|
switch (mimeType) {
|
||||||
case AUDIO_AAC:
|
|
||||||
case AUDIO_MPEG:
|
case AUDIO_MPEG:
|
||||||
case AUDIO_MPEG_L1:
|
case AUDIO_MPEG_L1:
|
||||||
case AUDIO_MPEG_L2:
|
case AUDIO_MPEG_L2:
|
||||||
|
case AUDIO_RAW:
|
||||||
|
case AUDIO_ALAW:
|
||||||
|
case AUDIO_MLAW:
|
||||||
|
case AUDIO_OPUS:
|
||||||
|
case AUDIO_FLAC:
|
||||||
|
case AUDIO_AC3:
|
||||||
|
case AUDIO_E_AC3:
|
||||||
|
case AUDIO_E_AC3_JOC:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue