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:

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年12月17日 UTC.