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 to achieve with chrome, is this possible?


回答1:


You can connect to other sessions as well, it shouldn't be necessarily your own session. For example, you can check out the CastVideos-android and CastVideos-chrome sample apps and start a cast session with Android and then connect to that with the chrome app.



来源:https://stackoverflow.com/questions/22300412/chromecast-connect-to-other-device-session-from-chrome

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