将Chromecast设备列入白名单后,如何在Chrome中启动接收器应用程序? [英] How to launch a receiver app in Chrome once Chromecast device has been whitelisted?

查看:95
本文介绍了将Chromecast设备列入白名单后,如何在Chrome中启动接收器应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Chrome浏览器启动我的自定义接收器应用程序.这样做的第一步似乎是为我感兴趣的活动类型添加一个接收者侦听器:

I am trying to launch my custom receiver application from the Chrome browser. The first step in doing so appears to add a receiver listener for the activity type I'm interested in:

cast_api = new cast.Api();
cast_api.addReceiverListener(activityType, onReceiverList);

activityType应该是什么?我可以放入"YouTube"和"Netflix"并获得已连接的接收器列表,但是当我将白名单中的App-Id放入时,我没有得到Chromecast接收器的列表.我的白名单是否有问题(也许提供了错误的设备序列号),还是对ActivityType在Chrome API中的含义有误?

What should activityType be? I am able to put "YouTube" and "Netflix" and get a list of connected receivers, but when I put my whitelisted App-Id I do not get a list of Chromecast receivers. Is this something wrong with my whitelisting (perhaps giving an incorrect device serial code), or is it an incorrect understanding of what activityType means in the Chrome API?

推荐答案

还有另一种可能导致此方法不起作用.如此答案中所述,您必须为设备启用此设置才能正常使用白名单:

There's another possibility for why this isn't working. As mentioned in this answer, you have to have this setting turned on for your device in order for the whitelisting to work:

在检查以下内容时,将此Chromecast的序列号发送给Google 更新

Send this Chromecast's serial number to Google when checking for updates

这篇关于将Chromecast设备列入白名单后,如何在Chrome中启动接收器应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆