【发布时间】:2015-01-01 03:15:14
【问题描述】:
有没有一种好方法可以获取 Chromecast 接收器列表以供我的用户界面使用?
旧版本的 CC API 提供如下代码:(found here)
var cast_api = new cast.Api();
cast_api.addReceiverListener('APP ID', onReceiverList);
...
onReceiverList = function(list) {
if (list.length > 0) {
/* list of receiver identities available here */
}
}
但这似乎从最新的 api 中消失了。 2015 年初最好的方法是什么?
【问题讨论】:
标签: javascript google-chrome chromecast