媒體播放器是一種應用程式層級的元件,可用來播放影片和音訊檔案。這類檔案可儲存在本機,或透過網際網路串流傳輸。Jetpack Media3 提供 Player 介面,可定義基本功能,例如播放、暫停、跳轉和顯示曲目資訊的功能。
ExoPlayer 是 Media3 中此介面的預設實作。與 Android 的 MediaPlayer API 相比,這個 API 增加了額外的便利功能,例如支援多個串流通訊協定、預設音訊與視訊轉譯器,以及處理媒體緩衝處理的元件。ExoPlayer 可以輕鬆自訂及擴充,而且可以透過 Play 商店應用程式更新來更新。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],[],null,["# Media3 ExoPlayer\n\nA media player is an app-level component that allows playback of video and audio\nfiles. Such files can be stored locally or streamed over the Internet. Jetpack\nMedia3 provides a `Player` interface that defines basic functionality such as\nthe ability to play, pause, seek, and display track information.\n\n`ExoPlayer` is the default implementation of this interface in Media3. Compared\nto Android's `MediaPlayer` API, it adds additional conveniences such as support\nfor multiple streaming protocols, default audio and video renderers, and\ncomponents that handle media buffering. ExoPlayer is easy to customize and\nextend, and can be updated through Play Store application updates.\n| **Tip:** If you are new to ExoPlayer, check out the [Getting started](/guide/topics/media/exoplayer/hello-world) page for an introduction to using ExoPlayer. If you already use the standalone ExoPlayer library, see the [migration guide](/guide/topics/media/media3/getting-started/migration-guide) for instructions on moving to Media3."]]