為 Android 應用程式加入 YouTube 功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
下列服務和功能可協助開發人員將 YouTube 功能加入自己的 Android 應用程式。
YouTube iframe 播放器 API
YouTube IFrame Player API 可讓您將影片播放功能整合至 Android 應用程式。這個 API 定義了載入及播放 YouTube 影片 (和播放清單) 的方法,以及自訂及控制影片播放體驗的方法。
Android 直播
YouTube 行動應用程式直播深層連結可讓 Android 應用程式直接在行動裝置上啟動 YouTube 直播。應用程式只需提供進入點 (例如使用者可點擊的按鈕),即可透過 Android 意圖機制啟動行動裝置直播流程。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-07 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-11-07 (世界標準時間)。"],[[["The YouTube IFrame Player API allows developers to embed YouTube video playback, including videos and playlists, into Android apps."],["Developers can use the YouTube IFrame Player API to customize and control the video playback experience in their apps."],["The YouTube Mobile Live deep link feature lets Android apps start a YouTube live stream directly from the device."],["Android apps can integrate a simple entry point, like a button, to initiate the YouTube Mobile Live streaming flow through the Android Intent mechanism."]]],["Developers can integrate YouTube into Android apps using two main features. The YouTube IFrame Player API enables video and playlist playback within the app, offering customization and control options. Additionally, the YouTube Mobile Live deep link allows apps to trigger live streams directly from the mobile device. This is achieved by integrating an entry point in the app that uses the Android Intent to initiate the live stream.\n"]]