مرجع واجهة برمجة تطبيقات Google Cast
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يوفر هذا المرجع وثائق واجهة برمجة التطبيقات التالية لتطبيقات الإرسال والتلقي.
واجهات برمجة تطبيقات المُرسِل
يتم تشغيل تطبيق المرسل على الجهاز الذي يحمله المستخدم
ويدير تفاعل المستخدم مع المحتوى.
بالنسبة إلى تطبيقات المُرسِل، تدعم تكنولوجيا Google Cast تطوير التطبيقات للأنظمة الأساسية للويب التي تعمل بأنظمة التشغيل Android وiOS وCast باستخدام الوثائق التالية:
واجهات برمجة تطبيقات تطبيقات المتلقي
تطبيق جهاز الاستقبال هو تطبيق Chrome يتم تشغيله على جهاز استقبال Google Cast
المتصل بشاشة العرض وإدارة المحتوى.
استخدم واجهة برمجة التطبيقات لإنشاء تطبيق استقبال مخصص. توفر مكتبة Media Player
تطبيقًا يحتوي على مشغل وسائط. تم توثيق واجهات برمجة التطبيقات هنا:
المراجِع
اطّلع على تثبيت مكتبات واجهات برمجة التطبيقات للحصول على تعليمات إعداد واجهات برمجة التطبيقات المذكورة أعلاه.
اطلع على الأدلة التالية للحصول على مزيد من المعلومات حول التطوير باستخدام واجهات برمجة التطبيقات هذه:
التراخيص
يستخدم مُرسِل الويب ومكتبة Media Player ومُستلِم المكتبة مكتبة Closure التي تم ترخيصها بموجب ترخيص Apache
2.0 ومكتبة html. التي تم ترخيصها بموجب BSD
3-Clause License.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-12-06 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2022-12-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis documentation provides API references for building sender and receiver applications for Google Cast.\u003c/p\u003e\n"],["\u003cp\u003eSender applications, which manage user interaction, can be developed for Android, iOS, and web platforms.\u003c/p\u003e\n"],["\u003cp\u003eReceiver applications, responsible for displaying content, are Chrome applications running on Google Cast devices and can be custom-built using the provided APIs.\u003c/p\u003e\n"],["\u003cp\u003eSetup instructions and developer guides are available for all supported platforms and application types.\u003c/p\u003e\n"],["\u003cp\u003eThe Web Sender, Media Player Library, and Receiver utilize the Closure and lit-html libraries, under the Apache 2.0 and BSD 3-Clause licenses respectively.\u003c/p\u003e\n"]]],["The documentation covers Google Cast APIs for sender and receiver applications. Sender apps, running on user devices, have API references for Android, iOS, and web platforms. Receiver apps, running on display-connected devices, use Web Receiver and Android TV Receiver APIs, with a Media Player Library. Resources include setup instructions and development guides for each platform. Libraries like Closure and lit-html are used under Apache 2.0 and BSD 3-Clause licenses, respectively.\n"],null,["# Google Cast API Reference\n\nThis reference provides the following API documentation for send\nand receiver applications.\n\n### Sender application APIs\n\nA sender application runs on the device the user is holding and\nmanages the user's interaction with the content.\nFor sender applications, Google Cast supports app development for the\nAndroid, iOS, and Cast-supported web platforms with the following documentation:\n\n- [Google Cast Android Sender API reference](/cast/docs/reference/android)\n- [Google Cast iOS Sender API reference](/cast/docs/reference/ios)\n- [Google Cast Web Sender API reference](/cast/docs/reference/web_sender)\n\n### Receiver application APIs\n\nA receiver application is a Chrome application that runs on the Google Cast\nreceiver device connected to the display and manages the display of the content.\nUse the API to create a custom receiver application. The Media Player Library provides\nyour application with a media player. The APIs are documented here:\n\n- [Web Receiver API reference](/cast/docs/reference/web_receiver)\n- [Android TV Receiver API reference](/cast/docs/reference/atv_receiver/packages)\n\n### Resources\n\nSee [Install API Libraries](/cast/docs/developers#install_api_libraries) for\nsetup instructions for the above APIs.\n\nSee the following guides for more information about developing with these APIs:\n\n- [Android Sender Apps](/cast/docs/android_sender)\n- [iOS Sender Apps](/cast/docs/ios_sender)\n- [Web Sender Apps](/cast/docs/web_sender)\n- [Web Receiver Apps](/cast/docs/web_receiver)\n- [Android TV Receiver Apps](/cast/docs/android_tv_receiver)\n\n### Licenses\n\nWeb Sender, Media Player Library and Receiver use the Closure library,\nwhich is licensed under the\n*[Apache\n2.0 License](https://github.com/google/closure-library/blob/master/LICENSE)* , and the lit-html library, which is licensed under\nthe *[BSD\n3-Clause License](https://github.com/Polymer/lit-html/blob/master/LICENSE)*."]]