Add media playback controls to your app
Stay organized with collections
Save and categorize content based on your preferences.
If your app plays back audio and video, you must add UI components for
displaying media and controlling playback.
AndroidX Media3 offers a
PlayerView
that displays playback
controls, video, subtitles, and album art during playback. To make it work
properly, connect PlayerView
to a
Player
instance such as
ExoPlayer
.
To learn more about media playback controls, see the following documentation:
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-09-02 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-09-02 UTC."],[],[],null,["If your app plays back audio and video, you must add UI components for\ndisplaying media and controlling playback.\n\nAndroidX Media3 offers a\n[`PlayerView`](/reference/androidx/media3/ui/PlayerView) that displays playback\ncontrols, video, subtitles, and album art during playback. To make it work\nproperly, connect `PlayerView` to a\n[`Player`](/reference/androidx/media3/common/Player) instance such as\n[`ExoPlayer`](/reference/androidx/media3/exoplayer/ExoPlayer).\n\nTo learn more about media playback controls, see the following documentation:\n\n- [Media developer center](/media): Review best practices and step-by-step guides for writing a media app.\n- [Audio and Video guide](/guide/topics/media/media3): Learn about AndroidX Media3.\n- [Media3 ExoPlayer guide](/guide/topics/media/exoplayer) Develop a player.\n- [Media3 UI guide](/guide/topics/media/ui/playerview) Browse details about the `PlayerView` and customization options."]]