【问题标题】:Chromecast receiver window.deviceInfo.deviceId = serial numberChromecast 接收器 window.deviceInfo.deviceId = 序列号
【发布时间】:2014-05-19 23:07:12
【问题描述】:

我注意到有一个对象 window.deviceInfo 包含 chromecast 接收器序列号,其中 deviceId 与序列号匹配:

window.deviceInfo = {
    buildVersion: '16278',
    deviceId: '3923536d1ITU'
}

这个在Chromecast Receiver API documentation中没有提到,之前也说过不暴露序列号。

How do I get a serial number by Receiver Application on Chromecast

我可以将此值作为 Chromecast 接收器设备的唯一标识符,还是有计划移除或更改此值?

【问题讨论】:

    标签: chromecast google-cast


    【解决方案1】:

    假警报!

    此信息仅通过本地存储的 Javascript 文件提供给 Chromecast 主屏幕应用程序

    chrome://home/strings.js

    如果您尝试将其加载到自定义接收器应用程序中:

    <script src="chrome://home/strings.js">

    您收到不安全的内容错误

    The page at 'https://my.receiver-app.com' was loaded over HTTPS, but ran insecure content from 'chrome://home/strings.js': this content should also be loaded over HTTPS.

    【讨论】:

      猜你喜欢
      • 2014-02-04
      • 2014-06-17
      • 1970-01-01
      • 2015-04-14
      • 2013-12-21
      • 2018-08-07
      • 2017-01-31
      • 2015-01-07
      • 2020-05-17
      相关资源
      最近更新 更多