If your app plays back audio and video, you must add UI components for
displaying media and controlling playback.

AndroidX Media3 offers a
[`PlayerView`](https://developer.android.com/reference/androidx/media3/ui/PlayerView) that displays playback
controls, video, subtitles, and album art during playback. To make it work
properly, connect `PlayerView` to a
[`Player`](https://developer.android.com/reference/androidx/media3/common/Player) instance such as
[`ExoPlayer`](https://developer.android.com/reference/androidx/media3/exoplayer/ExoPlayer).

To learn more about media playback controls, see the following documentation:

- [Media developer center](https://developer.android.com/media): Review best practices and step-by-step guides for writing a media app.
- [Audio and Video guide](https://developer.android.com/guide/topics/media/media3): Learn about AndroidX Media3.
- [Media3 ExoPlayer guide](https://developer.android.com/guide/topics/media/exoplayer) Develop a player.
- [Media3 UI guide](https://developer.android.com/guide/topics/media/ui/playerview) Browse details about the `PlayerView` and customization options.