The androidx.media3.inspector module lets you inspect media files by
extracting information from them. You don't need to instantiate a full player,
which makes the module ideal for non-playback scenarios.
This module includes the following APIs:
MetadataRetriever: Retrieves high-level metadata.FrameExtractor: Extracts individual decoded video frames and thumbnails.MediaExtractorCompat: Extracts raw, encoded media samples.
Getting started
Add the dependencies for the required modules:
Kotlin
implementation("androidx.media3:media3-inspector:1.9.3")
implementation("androidx.media3:media3-inspector-frame:1.9.3")
Groovy
implementation "androidx.media3:media3-inspector:1.9.3"
implementation "androidx.media3:media3-inspector-frame:1.9.3"
If you are migrating your app from platform APIs, these features provide equivalent functionality:
| Functionality | Platform API | Media3 API |
|---|---|---|
Metadata retrieval |
||
Frame extraction |
||
Sample extraction |