opened
cauchywei
username_0
When I try to learn ExoPlayer2 source code, I found that it do not using MediaExtractor + MediaCodec as usual rather than implement Mp4Extractor itself. There any problem with MediaExtractor ?
Why ExoPlayer2 don't use MediaExtractor?
issue
created
ojw28
username_1
There are a few reasons:
- It uses a threading model that's not well suited to ExoPlayer.
- It doesn't provide as much control over buffering as we'd like.
- Implementation of the extractors under MediaExtractor varies between versions of Android.
- Extractors under MediaExtractor lack some functionality that we're able to support in ExoPlayer extractors.
Implementing our own extractors avoids all of the above. It also means that we can add new features to the extractors and have them apply on all versions of Android, rather than adding them into the platform and have them apply to new versions of Android only.
comment
closed
ojw28
username_1
issue
created
cauchywei
username_0
@username_1 Thank your for your reply in time.
comment