android-cast-api

Can one use CastRemoteDisplay.API and Cast.API on the same GoogleApiClient?

牧云@^-^@ 提交于 2020-03-06 04:34:35
问题 I am developing an Android app with CastRemoteDisplay (Cast SDK v2). When another app starts casting, I want to ensure my app stops casting, so I create my CastOptionsBuilder with the following listener: Cast.Listener listener = new Cast.Listener() { @Override public void onApplicationMetadataChanged(ApplicationMetadata metadata) { String backdropId = "E8C28D3C"; // id of the Cast backdrop app if (!(metadata == null || metadata.getApplicationId().equals(backdropId) || metadata

How to stop casting when another app starts casting?

房东的猫 提交于 2019-12-10 22:46:56
问题 I run two applications, both of which use Cast SDK v2 and the Remote Display API. I start casting from App #1, then go to App #2, press the cast button and select a route. Expected: App #2 starts casting, App #1 stops casting. Actual: Immediately after I select a route, App #2's MediaRouter.Callback.onRouteUnselected() is called. Neither app's content shows up on the receiver, but App #1's notification controller remains. I haven't seen this behavior in Cast SDK v3. Is there any way in Cast

Where can I find APPLICATION_ID

你。 提交于 2019-12-06 04:22:56
问题 I'm learning cast api for android and I'm stuck at this part: mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID")) .build(); Where can I find this APPLICATION_ID and what is it? 回答1: Unfortunately, when doing Google Cast Android Sender Application tutorial, you should do multiple steps not described well on site to develop Chromecast applications: You must sign up (yes, pay 5$) for Google Cast SDK After this

Where can I find APPLICATION_ID

时间秒杀一切 提交于 2019-12-04 12:56:33
I'm learning cast api for android and I'm stuck at this part: mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID")) .build(); Where can I find this APPLICATION_ID and what is it? Unfortunately, when doing Google Cast Android Sender Application tutorial , you should do multiple steps not described well on site to develop Chromecast applications: You must sign up (yes, pay 5$) for Google Cast SDK After this process, I suggest you to add your device serial number in Google Cast SDK Developer Console since it's 15