Lớp học lập trình Cast
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.
Lớp học lập trình là ứng dụng mẫu có hướng dẫn từng bước hướng dẫn bạn cách tạo ứng dụng sử dụng một số tính năng của SDK truyền hoặc cho phép ứng dụng hiện có sử dụng SDK truyền.
Ngoài ra, hãy xem bài viết Ứng dụng mẫu.
Ứng dụng người gửi |
Người gửi trên Android
|
Trong lớp học lập trình này, bạn sẽ sửa đổi một ứng dụng video hiện có trên Android để truyền nội dung trên một thiết bị có hỗ trợ Google Cast. |
Thời lượng: 01:00 |
Người gửi trên iOS
|
Trong lớp học lập trình này, bạn sẽ sửa đổi một ứng dụng video hiện có trên iOS để truyền nội dung trên thiết bị có hỗ trợ Google Cast. |
Thời lượng: 02:28 |
Người gửi trên web
|
Trong lớp học lập trình này, bạn sẽ sửa đổi một ứng dụng video trên web hiện có để truyền nội dung trên thiết bị có hỗ trợ Google Cast. |
Thời lượng: 01:18 |
Ứng dụng nhận |
Bộ thu Android TV
|
Trong lớp học lập trình này, bạn sẽ sửa đổi một ứng dụng Android TV hiện có để hỗ trợ
truyền và giao tiếp từ các ứng dụng hiện có trên thiết bị phát Cast. |
Thời lượng: 01:37 |
Bộ thu web |
Trong lớp học lập trình này, bạn sẽ tạo một ứng dụng Bộ thu web tuỳ chỉnh để phát nội dung trên các thiết bị hỗ trợ Cast. |
Thời lượng: 01:00 |
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-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eCodelabs provide step-by-step instructions for building or enabling apps to use the Cast SDK.\u003c/p\u003e\n"],["\u003cp\u003eYou can find codelabs for sender apps on Android, iOS, and Web platforms to cast content to Google Cast devices.\u003c/p\u003e\n"],["\u003cp\u003eCodelabs are also available for receiver apps on Android TV and Web to receive and play casted content.\u003c/p\u003e\n"],["\u003cp\u003eAdditional codelabs cover specific Cast features like ad breaks, live streaming, and debugging.\u003c/p\u003e\n"]]],[],null,["# Cast Codelabs\n\nCodelabs are sample apps with step-by-step instructions that take you through\nthe process of either building an app that uses certain features of the Cast SDK\nor enabling an existing app to use the Cast SDK.\n\nAlso see [Sample applications](/cast/docs/sample_apps).\n\n| Sender Apps |||\n|------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|-----------------|\n| [Android Sender](/cast/codelabs/cast-videos-android) | In this codelab, you will modify an existing Android video app to cast content on a Google Cast-enabled device. | Duration: 01:00 |\n| [iOS Sender](/cast/codelabs/cast-videos-ios) | In this codelab, you will modify an existing iOS video app to cast content on a Google Cast-enabled device. | Duration: 02:28 |\n| [Web Sender](/cast/codelabs/cast-videos-chrome) | In this codelab, you will modify an existing web video app to cast content on a Google Cast-enabled device. | Duration: 01:18 |\n\n| Receiver Apps |||\n|--------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|-----------------|\n| [Android TV Receiver](/cast/codelabs/cast-connect-atv) | In this codelab, you will modify an existing Android TV app to support casting and communication from your existing Cast sender apps. | Duration: 01:37 |\n| [Web Receiver](/cast/codelabs/cast-receiver) | In this codelab, you will build a Custom Web Receiver app to play content on Cast-enabled devices. | Duration: 01:00 |\n\n| Cast Features |||\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------|\n| [Add Ad Breaks API Support to a Web Receiver](/cast/codelabs/cast-ads-receiver) | In this codelab, you will build a Custom Web Receiver application that uses the Cast Ad Breaks API. | Duration: 01:00 |\n| [Add Live API Support to a Web Receiver](/cast/codelabs/cast-live-receiver) | In this codelab, you will build a Custom Web Receiver application that uses the Cast Live API. | Duration: 00:30 |\n| [Debugging Cast Receiver Apps](/cast/codelabs/cast-debug-logger) | In this codelab, you will add the Cast Debug Logger to your existing Custom Web Receiver app. | Duration: 01:00 |"]]