I was using the CastCompanionLibrary to build an application. In my network, I had a Chromecast device and a Sony Bravia TV. When I clicked on my app'sMediaRouteButton
, I only saw the ChromeCast:
But when I used the YouTube application, I saw:
How can I discover my TV and cast my video to it like YouTube did?