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
PlayerView to a
Player instance such as
To learn more about media playback controls, see the following documentation:
- Media developer center: Review best practices and step-by-step guides for writing a media app.
- Audio and Video guide: Learn about AndroidX Media3.
- Media3 ExoPlayer guide Develop a player.
- Media3 UI guide Browse details about the
PlayerViewand customization options.