Media3 UI modules
Stay organized with collections
Save and categorize content based on your preferences.
An app playing media requires user interface components for displaying media and
controlling playback. The Media3 library includes two UI modules that contain a
number of UI components.
To use the Views-based UI module, add the following dependency:
Kotlin
implementation("androidx.media3:media3-ui:1.6.0")
Groovy
implementation "androidx.media3:media3-ui:1.6.0"
To depend on the Jetpack Compose-based UI module, add the following
dependency:
Kotlin
implementation("androidx.media3:media3-ui-compose:1.6.0")
Groovy
implementation "androidx.media3:media3-ui-compose:1.6.0"
We highly encourage you to develop your app in a Compose-first fashion or
migrate from using Views.
Note: The media3-ui-compose
module is not yet at parity with the
media3-ui
module.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-26 UTC."],[],[]]