Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Bagian ini membahas API dan perilaku media yang merupakan bagian dari platform.
Format media yang didukung:
Pelajari codec media, penampung, format, dan protokol jaringan
yang didukung oleh platform Android.
Transcoding media yang kompatibel:
Pelajari kemampuan platform untuk otomatis mengonversi video yang direkam dalam
format video modern saat dibuka oleh aplikasi yang tidak mendukung format tersebut.
Ringkasan MediaPlayer:
Pelajari MediaPlayer, API platform untuk pemutaran audio dan video.
Kontrol amplitudo dengan VolumeShaper:
Pelajari cara menggunakan VolumeShaper API untuk melakukan transisi volume
otomatis yang singkat seperti memudar dan mengecilkan kecil.
Merekam pemutaran video dan audio:
Pelajari cara menggunakan MediaProjection dan AudioPlaybackCapture API untuk
merekam pemutaran video atau audio dari aplikasi lain.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 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."]]