I am using Cast SDK v2 and RemoteDisplayLocalService
to cast local content. In the onRouteUnselected
function in MediaRouter.Callback
, I stop the service with CastRemoteDisplayLocalService.stopService()
. The receiver app stops; however, the system pull-down still says the app is connected to the receiver, like so:
I assume this is because CastRemoteDisplayLocalService
's GoogleApiClient
is still connected to Google Play Services. Is there a programmatic way to completely disconnect the sender app?