Cast 程式碼研究室
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
程式碼研究室是逐步教學課程,提供逐步說明,協助您建構採用 Cast SDK 特定功能的應用程式,或讓現有應用程式使用 Cast SDK。
另請參閱應用程式範例。
寄件者應用程式 |
Android 寄件者 |
在本程式碼研究室中,您將修改現有的 Android 影片應用程式,以便在支援 Google Cast 的裝置上投放內容。 |
時間長度:01:00 |
iOS 寄件者 |
在本程式碼研究室中,您將修改現有的 iOS 影片應用程式,以便在支援 Google Cast 的裝置上投放內容。 |
片長:02:28 |
網路寄件者 |
在本程式碼研究室中,您將修改現有的網路影片應用程式,以便在支援 Google Cast 的裝置上投放內容。 |
影片長度:01:18 |
接收器應用程式 |
Android TV 接收器 |
在本程式碼研究室中,您將修改現有的 Android TV 應用程式,以支援現有的 Cast 發送端應用程式投放和通訊功能。 |
影片長度:01:37 |
Web 接收器 |
在這個程式碼研究室中,您將建立一個自訂 Web Receiver 應用程式,以便在支援 Cast 的裝置上播放內容。 |
時間長度:01:00 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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 |"]]