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.
MediaPlayerclass provides basic audio and video playback capabilities.
MediaRecorderclass 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
CameraAPI is used to specify image capture settings, start/stop imaging preview, take pictures, and retrieve raw video.