Trình xác thực phiên đa phương tiện
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trình xác thực phiên phát nội dung nghe nhìn là một công cụ cung cấp cách dễ dàng và tự động để xác minh việc tích hợp ứng dụng Android TV với Phiên phát nội dung nghe nhìn. Thao tác này cũng xác minh các điều kiện tiên quyết để hỗ trợ Cast Connect trong ứng dụng Android TV.
Tải xuống và cài đặt APK
Bật tính năng gỡ lỗi Cầu gỡ lỗi Android (adb) trên thiết bị Android TV, kết nối với thiết bị và cài đặt APK.
Lần cập nhật gần đây nhất: Ngày 21 tháng 6 năm 2021
Tải APK Trình xác thực phiên phát nội dung đa phương tiện
Hướng dẫn
Bật quyền Truy cập thông báo cho Trình xác thực phiên phát nội dung nghe nhìn.
Chuyển đến: Cài đặt > Ứng dụng > Quyền truy cập đặc biệt cho ứng dụng >
Quyền truy cập thông báo > Trình xác thực phiên phát nội dung nghe nhìn
Mở Trình xác thực phiên phát nội dung đa phương tiện rồi chọn Bắt đầu xác thực:

Quay lại màn hình chính của Android TV rồi mở một ứng dụng đa phương tiện.
Chọn nội dung nghe nhìn bất kỳ trong ứng dụng và bắt đầu phát.
Trình xác thực sẽ bắt đầu kiểm thử và tự động thực thi các lệnh đa phương tiện:

Sau khi trình xác thực hoàn tất quá trình kiểm thử, hãy quay lại ứng dụng Media Session Validator (Trình xác thực phiên nội dung nghe nhìn) để kiểm tra kết quả.
Chọn Check Validation Results (Kiểm tra kết quả xác thực) rồi chọn một ứng dụng để mở màn hình kết quả:

Màn hình kết quả hiển thị danh sách các trường hợp kiểm thử kèm theo nội dung mô tả:

Nếu bạn thấy bất kỳ trường hợp kiểm thử nào không đạt hoặc cảnh báo, hãy xem lại nội dung mô tả và khắc phục mọi vấn đề trong ứng dụng, sau đó chạy lại quy trình xác thực.
Để xem lại hoặc chia sẻ kết quả kiểm thử, bạn cũng có thể tải báo cáo xác thực xuống thông qua ADB:

Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 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:"]]