โปรแกรมตรวจสอบเซสชันสื่อ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โปรแกรมตรวจสอบเซสชันสื่อเป็นเครื่องมือที่ช่วยให้คุณยืนยันการผสานรวมแอปพลิเคชัน Android TV กับเซสชันสื่อได้อย่างง่ายดายและโดยอัตโนมัติ
ซึ่งยังเป็นการ
ยืนยันข้อกำหนดเบื้องต้น
ของการรองรับ Cast Connect ในแอปพลิเคชัน Android TV ด้วย
การดาวน์โหลดและติดตั้ง APK
เปิดใช้การแก้ไขข้อบกพร่อง Android Debug Bridge (adb)
ในอุปกรณ์ Android TV เชื่อมต่อกับอุปกรณ์ และ
ติดตั้ง APK
อัปเดตล่าสุด: 21 มิถุนายน 2021
ดาวน์โหลด APK ของเครื่องมือตรวจสอบเซสชันสื่อ
วิธีการ
เปิดใช้สิทธิ์การเข้าถึงการแจ้งเตือนสำหรับเครื่องมือตรวจสอบเซสชันสื่อ
ไปที่การตั้งค่า > แอป > สิทธิ์เข้าถึงพิเศษของแอป >
สิทธิ์เข้าถึงการแจ้งเตือน > ตัวตรวจสอบเซสชันสื่อ
เปิดเครื่องมือตรวจสอบ Media Session แล้วเลือกเริ่มการตรวจสอบ

กลับไปที่หน้าจอหลักของ Android TV แล้วเปิดแอปสื่อ
เลือกเนื้อหาสื่อจากแอป แล้วเริ่มเล่น
เครื่องมือตรวจสอบควรเริ่มทดสอบและเรียกใช้คำสั่งสื่อโดยอัตโนมัติ

หลังจากที่โปรแกรมตรวจสอบทดสอบเสร็จแล้ว ให้กลับไปที่แอป Media Session Validator
เพื่อตรวจสอบผลลัพธ์
เลือกตรวจสอบผลการตรวจสอบ แล้วเลือกแอปเพื่อเปิดหน้าจอผลลัพธ์

หน้าจอผลลัพธ์จะแสดงรายการกรณีทดสอบพร้อมคำอธิบาย ดังนี้

หากเห็นกรณีทดสอบที่ล้มเหลวหรือคำเตือน ให้ตรวจสอบคำอธิบายและ
แก้ไขปัญหาในแอป แล้วเรียกใช้การตรวจสอบอีกครั้ง
หากต้องการตรวจสอบหรือแชร์ผลการทดสอบ คุณสามารถดาวน์โหลดรายงานการตรวจสอบผ่าน ADB ได้ด้วย โดยทำดังนี้

เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-09-05 UTC
[null,null,["อัปเดตล่าสุด 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:"]]