音訊和影片總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本節將介紹用於處理音訊和視訊資料的核心 API,包括播放、編輯和錄製等用途。您也可以在這裡找到應用程式架構建議和平台行為說明。
在大多數情況下,我們建議您使用 Media3 建構音訊和視訊體驗。如果您不熟悉媒體功能的開發作業,請從這裡開始。
前往 Jetpack Media3 相關資訊
瞭解 Jetpack Media3 程式庫和實作播放用途的關鍵 API。
前往 Media3 MediaSession
深入瞭解 ExoPlayer
,這是 Media3 中內含的功能豐富且可擴充的媒體播放器 API。
前往 Media3 ExoPlayer
探索 Media3 的 Transformer
模組,這套 API 可提供強大功能,並支援媒體編輯用途。
前往 Media3 轉換器
瞭解在應用程式中顯示影片和播放控制項的預設 UI 元件。
前往 Media3 UI
瞭解如何在裝置之間轉送內容,打造共享體驗。
前往 Jetpack MediaRouter
瞭解 Android 平台本身提供的媒體 API 和行為,例如格式支援和音量控制 API。
前往「平台 API 和行為」
MediaCompat API 已不再更新,但本節仍保留相關指南。
前往舊版媒體 API
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[],[],null,["# Audio and video overview\n\nThis section covers the core APIs for handling audio and video data, including\nuse-cases like playback, editing, and recording. You'll also find\nrecommendations on app architecture and descriptions of platform behaviors here.\n| **Tip:** Check out the [Media Developer Center](/media) for best practices and guidance on creating a best-in-class multidevice app.\n\nJetpack Media3\n--------------\n\nIn most cases, Media3 is our recommended solution for building audio and video\nexperiences. Start here if you're new to developing media features.\n\n[Go to About Jetpack Media3](/guide/topics/media/media3)\n\n### Media3 MediaSession\n\nMeet the Jetpack Media3 library and key APIs for implementing playback\nuse-cases.\n\n[Go to Media3 MediaSession](/guide/topics/media/session/mediasession)\n\n### Media3 ExoPlayer\n\nDive deep into `ExoPlayer`, a feature rich and extensible media player API\nincluded in Media3.\n\n[Go to Media3 ExoPlayer](/guide/topics/media/exoplayer)\n\n### Media3 Transformer\n\nExplore the `Transformer` module from Media3, a set of powerful and performant\nAPIs for media editing use-cases.\n\n[Go to Media3 Transformer](/guide/topics/media/transformer)\n\n### Media3 UI\n\nLearn about the default UI components to display video and playback controls in\nyour app.\n\n[Go to Media3 UI](/guide/topics/media/ui/overview)\n\nJetpack MediaRouter\n-------------------\n\nLearn about routing playback between devices to create a shared experience.\n\n[Go to Jetpack MediaRouter](/guide/topics/media/routing)\n\nPlatform APIs and behaviors\n---------------------------\n\nRead about media APIs and behaviors that come with the Android platform itself,\nsuch as format support and volume control APIs.\n\n[Go to Platform APIs and behaviors](/guide/topics/media/platform)\n\nLegacy media APIs\n-----------------\n\nThe MediaCompat APIs are no longer updated, but the guides are preserved in this\nsection.\n\n[Go to Legacy media APIs](/guide/topics/media/legacy)"]]