Google Cast API 參考資料
此參考資料提供傳送和接收器應用程式的下列 API 說明文件。
傳送方應用程式 API
寄件者應用程式會在使用者持有的裝置上執行,並管理使用者與內容的互動。Google Cast 支援針對 Android、iOS 和支援 Cast 的網路平台開發應用程式的寄件者應用程式,請參閱下列說明文件:
接收器應用程式 API
接收器應用程式是一種 Chrome 應用程式,可在連接螢幕的 Google Cast 接收器裝置上執行,並管理內容的顯示。使用 API 建立自訂接收器應用程式。媒體播放器程式庫可為您的應用程式提供媒體播放器相關 API 的說明如下:
資源
如需上述 API 的設定操作說明,請參閱安裝 API 程式庫。
如要進一步瞭解如何使用這些 API 進行開發,請參閱下列指南:
授權
網路寄件者、媒體播放器程式庫和接收器會使用 Closure 程式庫 (依據 Apache 2.0 授權授權),以及 lit-html 程式庫 (依據 BSD 3-Clause 授權授權)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-12-06 (世界標準時間)。
[null,null,["上次更新時間:2022-12-06 (世界標準時間)。"],[[["This documentation provides API references for building sender and receiver applications for Google Cast."],["Sender applications, which manage user interaction, can be developed for Android, iOS, and web platforms."],["Receiver applications, responsible for displaying content, are Chrome applications running on Google Cast devices and can be custom-built using the provided APIs."],["Setup instructions and developer guides are available for all supported platforms and application types."],["The 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."]]],["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"]]