Validierung von Mediasitzungen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Der Media Session Validator ist ein Tool, mit dem du die Integration deiner Android TV-Anwendung mit Media Session einfach und automatisch überprüfen kannst. Dadurch werden auch die Voraussetzungen für die Unterstützung von Cast Connect in Ihrer Android TV-Anwendung überprüft.
APK herunterladen und installieren
Aktivieren Sie das Android Debug Bridge (adb)-Debugging auf Ihrem Android TV-Gerät, stellen Sie eine Verbindung zum Gerät her und installieren Sie die APK.
Zuletzt aktualisiert: 21. Juni 2021
Media Session Validator-APK herunterladen
Anleitung
Aktivieren Sie die Berechtigung Benachrichtigungszugriff für Media Session Validator.
Gehen Sie zu Einstellungen > Apps > Spezieller App-Zugriff > Benachrichtigungszugriff > Media Session Validator.
Öffnen Sie den Media Session Validator und wählen Sie Start Validation (Überprüfung starten) aus:

Kehre zum Android TV-Startbildschirm zurück und öffne eine Media-App.
Wähle beliebige Medieninhalte in der App aus und starte die Wiedergabe.
Der Validator sollte mit dem Testen beginnen und Media-Befehle automatisch ausführen:

Kehren Sie nach Abschluss der Tests durch das Validierungstool zur Media Session Validator App zurück, um die Ergebnisse zu prüfen.
Wählen Sie Validierungsergebnisse prüfen und dann eine App aus, um den Ergebnisbildschirm zu öffnen:

Auf dem Ergebnisbildschirm wird eine Liste von Testläufen mit Beschreibungen angezeigt:

Wenn Testläufe fehlschlagen oder Warnungen angezeigt werden, sehen Sie sich die Beschreibung an, beheben Sie alle Probleme in Ihrer App und führen Sie die Validierung noch einmal aus.
Wenn Sie die Testergebnisse ansehen oder teilen möchten, können Sie den Validierungsbericht auch über ADB herunterladen:

Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-09-05 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[[["\u003cp\u003eMedia 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.\u003c/p\u003e\n"],["\u003cp\u003eTo use the tool, download and install the Media Session Validator APK, enable Notification Access for it, and then initiate validation within the app.\u003c/p\u003e\n"],["\u003cp\u003eWhile your media app plays content, the validator automatically tests media commands and provides a detailed report on the results.\u003c/p\u003e\n"],["\u003cp\u003eAfter the validation process, you can review the results within the app, addressing any failed or warning test cases in your app's code.\u003c/p\u003e\n"],["\u003cp\u003eFor further analysis or sharing, you can download a comprehensive validation report using ADB.\u003c/p\u003e\n"]]],[],null,["# Media Session Validator is a tool that provides an easy and automated way\nto verify your Android TV application integration with Media Session. This also\nverifies the [prerequisites](/cast/docs/android_tv_receiver/core_features#android_tv_app%E2%80%94prerequisites)\nof supporting Cast Connect in your Android TV application.\n\nDownloading and Installing APK\n------------------------------\n\nEnable [Android Debug Bridge (adb)](https://developer.android.com/studio/command-line/adb#Enabling)\ndebugging on your Android TV device, connect to the device, and\n[install the APK](https://developer.android.com/studio/command-line/adb#move).\n\n**Last updated: June 21, 2021**\n\n[Download the Media Session Validator APK](/static/cast/docs/android_tv_receiver/mediasession-validator-1.1-20210621.apk)\n\nInstructions\n------------\n\n1. Enable **Notification Access** permission for Media Session Validator.\n\n Go to: **Settings \\\u003e Apps \\\u003e Special app access \\\u003e\n Notification access \\\u003e Media Session Validator**\n2. Open the Media Session Validator and select **Start Validation**:\n\n3. Return to the Android TV home screen and open a media app.\n\n4. Select any media content from the app and start playback.\n\n5. The validator should start testing and execute media commands automatically:\n\n6. After the validator finishes testing, go back to the Media Session Validator\n app to check the results.\n\n7. Select **Check Validation Results** and select an app to open the result screen:\n\n8. The result screen displays a list of test cases with descriptions:\n\n9. If you see any fail or warning test cases, review the description and\n fix any issues in your app, then run the validation again.\n\n10. To review or share the test results, you can also download the validation\n report via ADB:"]]