Stay organized with collections
Save and categorize content based on your preferences.
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:
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 2024-12-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-11 UTC."],[],[]]