media/library
christosts 41d4a132c4 Add configure() in MediaCodecAdapter
The correct order of initializing the MediaCodec should be (as per
documentation
https://developer.android.com/reference/android/media/MediaCodec#initialization)

"create -> setCallback -> configure -> start"

but the MediaCodecRenderer currently does

"create -> configure -> setCallback -> start"

MediaCodec implementations did not complain about this so far, but the
wrong sequence does not work with the MediaCodec in block mode (new mode
in Android R) and also the ShadowMediaCodec won't operate in
asynchronous mode otherwise. To initialize the MediaCodec in the correct
order, this commit adds configure() in the MediaCodecAdapter so the
MediaCodecRenderer can do:

adapter.configure(); // sets the callback and then configures the codec
adapter.start();     // starts the codec

PiperOrigin-RevId: 316127680
2020-06-17 14:28:57 +01:00
..
all Use new exoplayer.dev domain everywhere. 2019-04-16 15:25:27 +01:00
common Add MediaParser-based implementation of ChunkExtractor 2020-06-11 10:11:20 +01:00
core Add configure() in MediaCodecAdapter 2020-06-17 14:28:57 +01:00
dash Fix javadoc 2020-06-12 18:11:12 +01:00
extractor Sniff all inferred extractors in DefaultHlsExtractorFactory 2020-06-11 10:11:40 +01:00
hls Support passing custom manifest parsers to Downloaders 2020-06-12 00:26:08 +01:00
smoothstreaming Support passing custom manifest parsers to Downloaders 2020-06-12 00:26:08 +01:00
ui Prevent shutter closing for within-window seeks to unprepared periods 2020-06-11 10:10:18 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.