Chromecast接收器window.deviceInfo.deviceId =序列号

时间:2014-04-07 15:37:42

标签: chromecast google-cast

我注意到有一个对象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接收器设备的唯一标识符,还是计划删除或更改此值?

1 个答案:

答案 0 :(得分:0)

错误报警!

此信息仅适用于Chromecast主屏幕应用程序,通过本地存储的Javascript文件

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.