chromecast

Get Chromecast sender URL on receiver

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-12 05:41:08
问题 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

Communicate with custom receiver app from chrome on iOS

烈酒焚心 提交于 2020-07-22 21:35:33
问题 I have a custom sender and receiver app that both work as expected on desktop. However if I try to run my app from chrome on iOS I run into issues. Based on the info Im gathering from debugging the receiver app, it is getting into my castReceiverManager.onSenderConnected function and I can log out the event.data and useragent (iOS CastSDK,,iPhone,iPhone OS,8.1.2). It never gets into where I listen for onMessage though. window.messageBus = window.castReceiverManager.getCastMessageBus('urn:x

Reboot a Chromecast

我怕爱的太早我们不能终老 提交于 2020-07-07 11:30:48
问题 How can I, using the Cast SDK or otherwise, have my app trigger a Chromecast reboot, in the manner of the official Chromecast app? In the case of 'otherwise', is Google Play likely to look unkindly on this approach? 回答1: There is no API in the SDK to reboot a Cast device and frankly, it is scary to me that you would want to do that programmatically. What is the reason you would want to do that? 回答2: You definitely should be able to. It's just a HTTP post after all. This from pychromecast CC

Chromecast – Connect to other device session from Chrome

北城以北 提交于 2020-05-28 13:42:06
问题 Context When casting from Google Chrome and using the session listener it's possible to join an already created session, this works well when the session is created from chrome, and if the autoJoinPolicy was set to ORIGIN_SCOPED it even works from a different tab. The problem If another device created a session the sessionListener handler doesn't fire, so I'm not able join the created session. Between devices (android, ios) is possible to detect sessions, that the same behavior I would like

Chromecast – Connect to other device session from Chrome

生来就可爱ヽ(ⅴ<●) 提交于 2020-05-28 13:40:32
问题 Context When casting from Google Chrome and using the session listener it's possible to join an already created session, this works well when the session is created from chrome, and if the autoJoinPolicy was set to ORIGIN_SCOPED it even works from a different tab. The problem If another device created a session the sessionListener handler doesn't fire, so I'm not able join the created session. Between devices (android, ios) is possible to detect sessions, that the same behavior I would like