【问题标题】:How to use chromecast without using extension如何在不使用扩展程序的情况下使用 chromecast
【发布时间】:2018-05-10 21:10:54
【问题描述】:

google cast 提供了示例 github 链接,它使用默认的 cast 扩展来通过从开发者控制台注册来转换数据,但是如何通过自动检测设备并转换数据来使用这个发送方/接收方应用程序而不使用 chrome 扩展?有什么具体的教程要跟进吗?

【问题讨论】:

    标签: javascript html nodes chromecast google-cast


    【解决方案1】:

    我一直在从事一个项目,该项目使用与您所询问的方法类似的方法,并且我在 github 上遇到了几个 repo,它们一路帮助我,但互联网上没有那么多关于它。

    基本上,您可以通过两个步骤与 Google cast 设备进行通信,而无需依赖 google 扩展程序。

    1. 使用服务发现服务(如 Bonjure 或 MDNS,here's a sample repo on github that uses a pure JavaScript implementation.)发现本地网络上的设备
    2. 使用 google 的 CASTV2 协议通过 TLS 和 here's one of the most popular implementations can be found here on this github repo 以及 here's a high level implementation of the same library 通过网络与 Google cast 设备通信,这些库也是用 JavaScript 编写的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-29
      • 2015-07-02
      • 1970-01-01
      • 2021-08-17
      • 1970-01-01
      相关资源
      最近更新 更多