Add media playback controls to your app

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: