问题描述
在Android中,有没有什么办法来发现,并且得到了施展能力的设备清单,而无需用户经过MediaRouteButton?
In Android, is there any way to discover and get a list of devices that are cast-capable without having the user go through the MediaRouteButton?
推荐答案
在Chromecast设备DIAL服务器:的
The ChromeCast devices are DIAL servers: http://www.dial-multiscreen.org/dial-protocol-specification
您可以发现他们在网络上广播,并确定自己的能力。你可以做这一切的服务。我在编写Android的拨号客户端,你可以尝试: https://github.com/entertailion/DIAL
You can discover their broadcasts on the network and determine their capabilities. You can do all of this in a service. I have written a DIAL client in Android that you could try: https://github.com/entertailion/DIAL
谷歌电视设备也DIAL服务器,所以你有那些和Chromecast设备区别开来。
Google TV devices are also DIAL servers, so you would have to distinguish between those and the ChromeCast devices.
这篇关于获得铸能力的设备的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!