tried to try castHelloText-android-master sample in google sdk.
It seems like I cannot get device discovery to work if I changed MediaRouteSelector to look for CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID. The Cast button is not displayed. but if I change it to CastMediaControlIntent.CATEGORY_CAST, I can get a button to display.
The reason I do this is because I intend to use the default media receiver instead of deploying my own receiver.
I was wondering if there is a mistake here. or should I just stick with CATEGORY_CAST for detection. If you have a way to make it work, pls show me the way, thanks.
source
share