เอกสารอ้างอิง Google Cast API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ข้อมูลอ้างอิงนี้มอบเอกสารประกอบ API ต่อไปนี้สําหรับแอปพลิเคชันการส่งและผู้รับ
API แอปพลิเคชันของผู้ส่ง
แอปพลิเคชันผู้ส่งจะทํางานบนอุปกรณ์ที่ผู้ใช้เก็บอยู่และจัดการการโต้ตอบของผู้ใช้กับเนื้อหา
สําหรับแอปพลิเคชันผู้ส่ง Google Cast รองรับการพัฒนาแอปสําหรับแพลตฟอร์มเว็บที่รองรับ Android, iOS และ Cast พร้อมด้วยเอกสารประกอบต่อไปนี้
API ของแอปพลิเคชันผู้รับ
แอปพลิเคชันตัวรับสัญญาณคือแอปพลิเคชัน Chrome ที่ทํางานบนอุปกรณ์ตัวรับสัญญาณ Google Cast ที่เชื่อมต่อกับจอแสดงผลและจัดการการแสดงเนื้อหา
ใช้ API เพื่อสร้างแอปพลิเคชันตัวรับที่กําหนดเอง ไลบรารีสื่อสําหรับโปรแกรมเล่นมี
โปรแกรมเล่นสื่อในแอปพลิเคชันของคุณ API ดังกล่าวได้รับการบันทึกไว้ที่นี่
ทรัพยากร
โปรดดูวิธีการติดตั้ง API ข้างต้นที่ติดตั้งไลบรารี API
ดูข้อมูลเพิ่มเติมเกี่ยวกับการพัฒนาด้วย API ต่อไปนี้ได้จากคู่มือต่อไปนี้
ใบอนุญาต
Web Sender, Media Player Library and Receiver ใช้ไลบรารี Closure ซึ่งได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 และไลบรารี Lite-html ซึ่งได้รับอนุญาตภายใต้ใบอนุญาต BSD
ข้อสัญญา 3 ข้อ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-12-06 UTC
[null,null,["อัปเดตล่าสุด 2022-12-06 UTC"],[[["\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)*."]]