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
a967ff32
authored
Feb 17, 2020
by
kimvde
Committed by
Oliver Woodman
Feb 18, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix DefaultExtractorsFactory Javadoc
PiperOrigin-RevId: 295540885
parent
cd0999e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
library/core/src/main/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.java
View file @
a967ff32
...
@@ -51,7 +51,13 @@ import java.lang.reflect.Constructor;
...
@@ -51,7 +51,13 @@ import java.lang.reflect.Constructor;
* <li>AC3 ({@link Ac3Extractor})
* <li>AC3 ({@link Ac3Extractor})
* <li>AC4 ({@link Ac4Extractor})
* <li>AC4 ({@link Ac4Extractor})
* <li>AMR ({@link AmrExtractor})
* <li>AMR ({@link AmrExtractor})
* <li>FLAC (only available if the FLAC extension is built and included)
* <li>FLAC
* <ul>
* <li>if available, using the Flac extension extractor,
* <li>otherwise, using core's {@link FlacExtractor}. NOTE: Android devices do not generally
* include a FLAC decoder before API 27, which can be worked around by using the FLAC
* extension of the FFMPEG extension.
* </ul>
* </ul>
* </ul>
*/
*/
public
final
class
DefaultExtractorsFactory
implements
ExtractorsFactory
{
public
final
class
DefaultExtractorsFactory
implements
ExtractorsFactory
{
...
@@ -247,10 +253,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
...
@@ -247,10 +253,6 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
?
AmrExtractor
.
FLAG_ENABLE_CONSTANT_BITRATE_SEEKING
?
AmrExtractor
.
FLAG_ENABLE_CONSTANT_BITRATE_SEEKING
:
0
));
:
0
));
extractors
[
12
]
=
new
Ac4Extractor
();
extractors
[
12
]
=
new
Ac4Extractor
();
// Prefer the FLAC extension extractor because it outputs raw audio, which can be handled by the
// framework on all API levels, unlike the core library FLAC extractor, which outputs FLAC audio
// frames and so relies on having a FLAC decoder (e.g., a MediaCodec decoder that handles FLAC
// (from API 27), or the FFmpeg extension with FLAC enabled).
if
(
FLAC_EXTENSION_EXTRACTOR_CONSTRUCTOR
!=
null
)
{
if
(
FLAC_EXTENSION_EXTRACTOR_CONSTRUCTOR
!=
null
)
{
try
{
try
{
extractors
[
13
]
=
FLAC_EXTENSION_EXTRACTOR_CONSTRUCTOR
.
newInstance
();
extractors
[
13
]
=
FLAC_EXTENSION_EXTRACTOR_CONSTRUCTOR
.
newInstance
();
...
...
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