问题
I'm developing a Receiver Application on the Chromecast. I want to use a serial number in order to limit the viewing on multiple devices at the same time.
How do I get a serial number by Receiver Application on Chromecast. I could not find it from the developer's guide.
回答1:
As part of the device discovery message exchange, device-desc.xml is received by the sender app which has UDN value. This UDN is a UUID and I assume you can use it to uniquely identify the device and may not even need the serial no for your purpose.
回答2:
The serial number is not exposed programmatically.
来源:https://stackoverflow.com/questions/21153049/how-do-i-get-a-serial-number-by-receiver-application-on-chromecast