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.
- MediaPlayer
- The
MediaPlayerclass provides basic audio and video playback capabilities. - MediaRecorder
- The
MediaRecorderclass provides basic audio recording capabilities using the device's microphone. - ExoPlayer
- 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
CameraAPI is used to specify image capture settings, start/stop imaging preview, take pictures, and retrieve raw video.