Cast Codelabs
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Codelabs برنامههای نمونه با دستورالعملهای گام به گام هستند که شما را در مراحل ساخت برنامهای که از ویژگیهای خاصی از Cast SDK استفاده میکند یا فعال کردن یک برنامه موجود برای استفاده از Cast SDK، راهنمایی میکند.
همچنین به نمونه برنامه ها مراجعه کنید.
برنامه های فرستنده |
---|
فرستنده اندروید | در این لبه کد، یک برنامه ویدیویی اندروید موجود را تغییر میدهید تا محتوا را در یک دستگاه دارای Google Cast فعال ارسال کند. | مدت زمان: 01:00 |
فرستنده iOS | در این لبه کد، یک برنامه ویدیویی iOS موجود را تغییر میدهید تا محتوا را در دستگاهی که دارای Google Cast فعال است ارسال کند. | مدت زمان: 02:28 |
فرستنده وب | در این لبه کد، یک برنامه ویدیوی وب موجود را تغییر میدهید تا محتوا را در دستگاهی که دارای Google Cast فعال است ارسال کند. | مدت زمان: 01:18 |
برنامه های گیرنده |
---|
گیرنده Android TV | در این لبه کد، یک برنامه Android TV موجود را برای پشتیبانی از ارسال و ارتباط از برنامههای فرستنده Cast موجود خود تغییر میدهید. | مدت زمان: 01:37 |
گیرنده وب | در این لبه کد، یک برنامه گیرنده وب سفارشی برای پخش محتوا در دستگاههای دارای قابلیت Cast میسازید. | مدت زمان: 01:00 |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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 |"]]