Stay organized with collections
Save and categorize content based on your preferences.
This section discusses media APIs and behaviors that are part of the platform.
Supported media formats:
Learn about the media codecs, containers, formats, and network protocols
supported by the Android platform.
Compatible media transcoding:
Learn about the platform's ability to automatically convert videos recorded in
modern video formats when opened by an app that doesn't support the format.
MediaPlayer overview:
Learn about MediaPlayer, a platform API for audio and video playback.
Control amplitude with VolumeShaper:
Learn about using the VolumeShaper API to perform short automated volume
transitions such as fades and ducking.
Capture video and audio playback:
Learn about using the MediaProjection and AudioPlaybackCapture APIs to
record video or audio playback from another app, respectively.
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-01-05 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-01-05 UTC."],[],[],null,["# Platform APIs and behaviors\n\nThis section discusses media APIs and behaviors that are part of the platform.\n| **Note:** For most media use-cases, we recommend using Jetpack libraries such as [Media3](/guide/topics/media/media3). Jetpack libraries offer a richer feature set, more frequent updates, solutions for dealing with backwards-compatibility and fragmentation, and more customizability.\n\n- [Supported media formats](/guide/topics/media/platform/supported-formats): Learn about the media codecs, containers, formats, and network protocols supported by the Android platform.\n- [Compatible media transcoding](/guide/topics/media/platform/transcoding): Learn about the platform's ability to automatically convert videos recorded in modern video formats when opened by an app that doesn't support the format.\n- [MediaPlayer overview](/guide/topics/media/platform/mediaplayer): Learn about `MediaPlayer`, a platform API for audio and video playback.\n- [Control amplitude with VolumeShaper](/guide/topics/media/platform/volumeshaper): Learn about using the `VolumeShaper` API to perform short automated volume transitions such as fades and ducking.\n- [Handle changes in audio output](/guide/topics/media/platform/output): Learn about APIs for volume control and reacting to changes in the audio output device.\n- [Improve audio playback](/guide/topics/media/platform/improve-audio-playback#improve-audio-playback): Learn about using `DEFAULT` and `BIT_PERFECT` APIs to configure mixer attributes over USB.\n- [Share audio input](/guide/topics/media/platform/sharing-audio-input): Learn about capturing audio input from a mic or other input device.\n- [MediaRecorder overview](/guide/topics/media/platform/mediarecorder): Learn about using the `MediaRecorder` API to record audio.\n- [Capture video and audio playback](/guide/topics/media/platform/av-capture): Learn about using the `MediaProjection` and `AudioPlaybackCapture` APIs to record video or audio playback from another app, respectively."]]