Get Chromecast sender URL on receiver

帅比萌擦擦* 提交于 2020-12-12 05:41:18

问题


Is it possible for a Chromecast receiver to determine a particular sender's URL?

I can get a list of senders:

const context = cast.framework.CastReceiverContext.getInstance();
context.getSenders();

This returns an object like this:

{
  id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871",
  userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
}

However, this doesn't contain the URL of the sender. I need to figure out the URL of the site being cast from. Is this possible? And if so, how?

来源:https://stackoverflow.com/questions/64829471/get-chromecast-sender-url-on-receiver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!