Media3 Inspector

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:

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

MediaMetadataRetriever

MetadataRetriever

Frame extraction

MediaMetadataRetriever

FrameExtractor

Sample extraction

MediaExtractor

MediaExtractorCompat