This document discusses the MediaPlayer APIs in the Android multimedia framework. However, the recommended approach for media is Jetpack Media3, which includes ExoPlayer. To create a new app, use Jetpack Media3 instead of the MediaPlayer APIs.
The MediaPlayer
APIs in the Android multimedia framework support playing a
variety of common media types.
You can:
- Integrate audio, video, and images into your applications.
- Play audio or video from media files stored in your application's resources (raw resources).
- Play audio or video from standalone files in the file system.
- Play audio or video from a data stream arriving over a network connection.
Learn more
Jetpack Media3 is the recommended solution for media playback in your app. Read more about it.
These pages cover topics relating to recording, storing, and playing back audio and video: