Cast Codelab
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Codelab 是包含分步说明的应用示例,可逐步指导您构建使用 Cast SDK 特定功能的应用,或启用现有应用以使用 Cast SDK 的流程。
另请参阅示例应用。
发送者应用 |
Android 发送者
|
在此 Codelab 中,您将修改现有 Android 视频应用,以在支持 Google Cast 的设备上投射内容。 |
时长:01:00 |
iOS 发送者
|
在此 Codelab 中,您将修改现有的 iOS 视频应用,以在支持 Google Cast 的设备上投射内容。 |
时长:02:28 |
Web 发送者 |
在此 Codelab 中,您将修改现有的网页视频应用,以在支持 Google Cast 的设备上投射内容。 |
时长:01:18 |
接收器应用 |
Android TV 接收器
|
在此 Codelab 中,您将修改现有的 Android TV 应用,以支持从现有 Cast 发送者应用进行投射和通信。 |
时长:01:37 |
网络接收器 |
在此 Codelab 中,您将构建一个自定义 Web 接收器应用,以在支持 Cast 的设备上播放内容。 |
时长:01:00 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):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 |"]]