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.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


WeChat で Google Developers をフォローする

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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 short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)