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