androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.74k stars 416 forks source link

How to bypass all Extractors of ExoPlayer itself and directly use the decoding capabilities of the device? #576

Open RexSuper opened 1 year ago

RexSuper commented 1 year ago

Please help me, I want to use ExoPlayer&Media3's Api, but I only want to use the decoding ability of the device, directly use the underlying codec, skip the Extractor at the ExoPlayer code level, and not be intercepted. Let me give an example, for example, there is an FLV video that is composed of h.263. When the parseHeader in VideoTagPayloadReader is directly thrown, "Video format not supported:" but my device already supports it. The underlying device has integrated rich ffmpeg and some purchased formats using Codec2, using MediaPlay r. You can play it directly. Is there a simple way for ExoPlayer to directly use the underlying decoding capabilities and bypass the app code layer Extractor

RexSuper commented 1 year ago

Additional note: My app runs on my customized Android device, and our strategy is to integrate decoding capabilities into the device system (Android extractor, QTI extractor, and ffmpeg extractor) instead of integrating them at the application level. However, we are very happy to use Media3, which has already been reported as not supported at the app level. I need a simple method to achieve this goal

RexSuper commented 1 year ago

android.media.MediaExtractor +androidx.media3.extractor.Extractor