媒體工作階段驗證工具
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
媒體工作階段驗證工具可讓您以簡單且自動化的方式,驗證 Android TV 應用程式與媒體工作階段的整合情形。這也會驗證 Android TV 應用程式支援 Cast Connect 的必要條件。
下載及安裝 APK
在 Android TV 裝置上啟用 Android Debug Bridge (ADB) 偵錯功能,連線至裝置,然後安裝 APK。
上次更新日期:2021 年 6 月 21 日
下載 Media Session Validator APK
操作說明
為 Media Session Validator 啟用「通知存取權」權限。
依序前往「設定」>「應用程式」>「特殊應用程式存取權」>「通知存取權」>「Media Session Validator」
開啟媒體工作階段驗證工具,然後選取「開始驗證」:

返回 Android TV 主畫面,然後開啟媒體應用程式。
在應用程式中選取任何媒體內容,然後開始播放。
驗證器應自動開始測試及執行媒體指令:

驗證工具完成測試後,請返回 Media Session Validator 應用程式查看結果。
選取「檢查驗證結果」,然後選取應用程式,即可開啟結果畫面:

結果畫面會顯示含有說明的測試案例清單:

如果您看到任何失敗或警告測試案例,請查看說明並修正應用程式中的任何問題,然後再次執行驗證。
如要查看或分享測試結果,您也可以透過 ADB 下載驗證報告:

除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-11 (世界標準時間)。
[[["容易理解","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-03-11 (世界標準時間)。"],[[["Media Session Validator is a tool used to ensure your Android TV app correctly integrates with Media Session and meets the requirements for Cast Connect support."],["To use the tool, download and install the Media Session Validator APK, enable Notification Access for it, and then initiate validation within the app."],["While your media app plays content, the validator automatically tests media commands and provides a detailed report on the results."],["After the validation process, you can review the results within the app, addressing any failed or warning test cases in your app's code."],["For further analysis or sharing, you can download a comprehensive validation report using ADB."]]],[]]