Unable to get Receiver List in Chromecast

微笑、不失礼 提交于 2019-12-08 03:17:04

问题


I am doing a sender and receiver app for our site using Chrome API, currently when user wants to connect chromecast, its opening extension with device list, but in youtube its showing right there..

i am unable to get receiver list when i initiate chromecast sender app, all i am getting is device available or not, there are some old examples which uses cast.Api.addReceiverListener() to get the list of available devices.. but currently its not working and there seems to be no other option to do it..

i can see youtube and netflix are doing it though

thank you.


回答1:


This is not officially supported in the current Chrome API. YouTube is likely using undocumented features or other DIAL functionality.

This might be of interest: https://github.com/jloutsenhizer/CR-Cast/wiki/Chromecast-Implementation-Documentation-WIP



来源:https://stackoverflow.com/questions/23663677/unable-to-get-receiver-list-in-chromecast

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