Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dffcf258
authored
Jul 08, 2021
by
Scott
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updated mimetypes to support DTSX and to correct assign dtse to DTS Express
parent
716cbcea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/MimeTypes.java
library/common/src/main/java/com/google/android/exoplayer2/util/MimeTypes.java
View file @
dffcf258
...
@@ -76,6 +76,7 @@ public final class MimeTypes {
...
@@ -76,6 +76,7 @@ public final class MimeTypes {
public
static
final
String
AUDIO_DTS
=
BASE_TYPE_AUDIO
+
"/vnd.dts"
;
public
static
final
String
AUDIO_DTS
=
BASE_TYPE_AUDIO
+
"/vnd.dts"
;
public
static
final
String
AUDIO_DTS_HD
=
BASE_TYPE_AUDIO
+
"/vnd.dts.hd"
;
public
static
final
String
AUDIO_DTS_HD
=
BASE_TYPE_AUDIO
+
"/vnd.dts.hd"
;
public
static
final
String
AUDIO_DTS_EXPRESS
=
BASE_TYPE_AUDIO
+
"/vnd.dts.hd;profile=lbr"
;
public
static
final
String
AUDIO_DTS_EXPRESS
=
BASE_TYPE_AUDIO
+
"/vnd.dts.hd;profile=lbr"
;
public
static
final
String
AUDIO_DTS_X
=
BASE_TYPE_AUDIO
+
"/vnd.dts.uhd"
;
public
static
final
String
AUDIO_VORBIS
=
BASE_TYPE_AUDIO
+
"/vorbis"
;
public
static
final
String
AUDIO_VORBIS
=
BASE_TYPE_AUDIO
+
"/vorbis"
;
public
static
final
String
AUDIO_OPUS
=
BASE_TYPE_AUDIO
+
"/opus"
;
public
static
final
String
AUDIO_OPUS
=
BASE_TYPE_AUDIO
+
"/opus"
;
public
static
final
String
AUDIO_AMR
=
BASE_TYPE_AUDIO
+
"/amr"
;
public
static
final
String
AUDIO_AMR
=
BASE_TYPE_AUDIO
+
"/amr"
;
...
@@ -380,8 +381,12 @@ public final class MimeTypes {
...
@@ -380,8 +381,12 @@ public final class MimeTypes {
return
MimeTypes
.
AUDIO_E_AC3_JOC
;
return
MimeTypes
.
AUDIO_E_AC3_JOC
;
}
else
if
(
codec
.
startsWith
(
"ac-4"
)
||
codec
.
startsWith
(
"dac4"
))
{
}
else
if
(
codec
.
startsWith
(
"ac-4"
)
||
codec
.
startsWith
(
"dac4"
))
{
return
MimeTypes
.
AUDIO_AC4
;
return
MimeTypes
.
AUDIO_AC4
;
}
else
if
(
codec
.
startsWith
(
"dtsc"
)
||
codec
.
startsWith
(
"dtse"
)
)
{
}
else
if
(
codec
.
startsWith
(
"dtsc"
))
{
return
MimeTypes
.
AUDIO_DTS
;
return
MimeTypes
.
AUDIO_DTS
;
}
else
if
(
codec
.
startsWith
(
"dtse"
))
{
return
MimeTypes
.
AUDIO_DTS_EXPRESS
;
}
else
if
(
codec
.
startsWith
(
"dtsx"
))
{
return
MimeTypes
.
AUDIO_DTS_X
;
}
else
if
(
codec
.
startsWith
(
"dtsh"
)
||
codec
.
startsWith
(
"dtsl"
))
{
}
else
if
(
codec
.
startsWith
(
"dtsh"
)
||
codec
.
startsWith
(
"dtsl"
))
{
return
MimeTypes
.
AUDIO_DTS_HD
;
return
MimeTypes
.
AUDIO_DTS_HD
;
}
else
if
(
codec
.
startsWith
(
"opus"
))
{
}
else
if
(
codec
.
startsWith
(
"opus"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment