Skip to content

Most visited

Recently visited


Media and Camera

The Android system provides APIs for recording and playing audio and video, and for using the built-in camera as an input device. This section describes the APIs that handle the raw media data.

Supported Media Formats
The media codec, container, and network protocols supported by the Android platform.
The MediaPlayer class provides basic audio and video playback capabilities.
The MediaRecorder class provides basic audio recording capabilities using the device's microphone.
ExoPlayer is an open source project that uses code based on low-level Android APIs to provide basic audio and video playback capabilities.
Media Routing
Apps use the Android routing APIs to play audio and video on remote devices.
Camera API
The Camera API is used to specify image capture settings, start/stop imaging preview, take pictures, and retrieve raw video.
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.