メディア セッション バリデータ
Media Session Validator は、簡単かつ自動化された方法
Android TV アプリとメディア セッションの統合を確認してください。また、
前提条件を確認する
Android TV アプリでの Cast Connect のサポートについて学びました。
APK のダウンロードとインストール
Android Debug Bridge(adb)を有効にする
Android TV デバイスでのデバッグ、デバイスへの接続、
APK をインストールします。
最終更新日: 2021 年 6 月 21 日
Media Session Validator APK をダウンロード
手順
Media Session Validator の通知へのアクセス権限を有効にします。
[設定] >アプリ >特別なアプリアクセス >
通知へのアクセス >Media Session Validator
Media Session Validator を開き、[Start Validation] を選択します。
![](https://developers.google.cn/static/cast/images/mediasession_validator/mediasession_validator_1.png?authuser=0&hl=ja)
Android TV のホーム画面に戻り、メディアアプリを開きます。
アプリからメディア コンテンツを選択して再生を開始します。
バリデータによってテストが開始され、メディア コマンドが自動的に実行されます。
![](https://developers.google.cn/static/cast/images/mediasession_validator/mediasession_validator_2.png?authuser=0&hl=ja)
バリデータでテストが完了したら、メディア セッション バリデータに戻ります。
アプリで結果を確認します。
[Check Validation Results] を選択し、アプリを選択して結果画面を開きます。
![](https://developers.google.cn/static/cast/images/mediasession_validator/mediasession_validator_3.png?authuser=0&hl=ja)
結果画面に、テストケースのリストと説明が表示されます。
![](https://developers.google.cn/static/cast/images/mediasession_validator/mediasession_validator_4.png?authuser=0&hl=ja)
不合格または警告のテストケースが表示された場合は、説明と
アプリの問題を修正してから、検証を再度実施してください。
テスト結果の確認や共有のために、検証用ファイルを
ADB 経由で報告する場合:
![](https://developers.google.cn/static/cast/images/mediasession_validator/mediasession_validator_5.png?authuser=0&hl=ja)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-05 UTC。
[null,null,["最終更新日 2024-09-05 UTC。"],[[["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."]]],[]]