【问题标题】:How to get all available Chromecast devices?如何获取所有可用的 Chromecast 设备?
【发布时间】:2019-07-06 07:50:30
【问题描述】:

我想为自定义 Chromecast 按钮添加一个操作。

我可以使用带有默认操作的默认按钮 (GCKUICastButton)。

let castButton = GCKUICastButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
castButton.tintColor = UIColor.gray
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: castButton)

但我需要使用可以与 Chromecast 连接的设备列表创建自己的视图。

如何获取所有可用的 Chromecast 设备?

【问题讨论】:

    标签: ios swift chromecast google-cast google-cast-sdk


    【解决方案1】:

    我们强烈建议您将 Cast SDK 中的小部件用于按钮和显示设备列表。您应该使用各种样式选项来根据您的品牌需求自定义小部件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多