google-cast

How to listen for HDMI-CEC media controls events in receiver

与世无争的帅哥 提交于 2020-01-23 18:17:57
问题 Google recently announced that Chromecast now supports HDMI-CEC controls. https://plus.google.com/+LeonNicholls/posts/FyGeJavgmX3 I would like the implement the functionality in my app. I have tested with Youtube and my TV and it works. How can I implement the same thing in the receiver portion of my Chromecast app? I have tried listening for key events, but that doesn't seem to pick anything up. Any ideas? 回答1: As long as you use the Media Manager on the receiver side (the recommended

How to listen for HDMI-CEC media controls events in receiver

心已入冬 提交于 2020-01-23 18:17:05
问题 Google recently announced that Chromecast now supports HDMI-CEC controls. https://plus.google.com/+LeonNicholls/posts/FyGeJavgmX3 I would like the implement the functionality in my app. I have tested with Youtube and my TV and it works. How can I implement the same thing in the receiver portion of my Chromecast app? I have tried listening for key events, but that doesn't seem to pick anything up. Any ideas? 回答1: As long as you use the Media Manager on the receiver side (the recommended

On disconnecting ChromeCast from one device it is getting disconnected from both android devices

醉酒当歌 提交于 2020-01-17 06:27:06
问题 Two devices are connected to a Chromecast receiver and disconnecting from one also disconnects the other device. Recently upgraded the SDK version to 9.8.0 and post that only this issue got visible. Any insights for this? 回答1: You need to look at your receiver app and see what logic you are using there that could cause this behavior. On the receiver side, onSenderDisconnected() is called when a sender disconnects and at that point, you need to see if there is any other connected sender left

On disconnecting ChromeCast from one device it is getting disconnected from both android devices

試著忘記壹切 提交于 2020-01-17 06:26:10
问题 Two devices are connected to a Chromecast receiver and disconnecting from one also disconnects the other device. Recently upgraded the SDK version to 9.8.0 and post that only this issue got visible. Any insights for this? 回答1: You need to look at your receiver app and see what logic you are using there that could cause this behavior. On the receiver side, onSenderDisconnected() is called when a sender disconnects and at that point, you need to see if there is any other connected sender left

Android TV Registration in Google Cast SDK Developer Console

℡╲_俬逩灬. 提交于 2020-01-17 04:42:06
问题 I am planning to add Google cast feature on my existing iOS and Android application streaming audio application. I don't have Chrome cast device. But i have Android TV(KDL-43W950C). Can i use my Android TV for developing Google-cast application? If it so, how to register Android TV in Google Cast Developer Console?. Android TV has the serial number of 7 digits, where as registration form expects 8-20 characters. Google Chrome cast application also does not detect the Android TV Google

Google Cast 2.6.0 errors when building iOS project

蹲街弑〆低调 提交于 2020-01-16 08:04:09
问题 Any of you guys had errors when building your iOS project after updating to the new Google Cast 2.6.0 framework? I get the following error: Default initialisation of an object of const type ‘const NSInteger’ (aka ‘const int’). at the following lines in class GCKDevice: /** Device capability flag for video out. */ GCK_EXPORT const NSInteger kGCKDeviceCapabilityVideoOut; /** Device capability flag for video in. */ GCK_EXPORT const NSInteger kGCKDeviceCapabilityVideoIn; /** Device capability

Handling volume change on android lockscreen?

不打扰是莪最后的温柔 提交于 2020-01-14 19:14:25
问题 What I am trying to do is, being able to catch volume up/down button actions on lockscreen on android 4.4. Google Cast Design Checklist document describes lock screen requirement "Provide access to the volume control via hardware buttons". I tried various ways to handle hardware volume buttons on lock screen but none of them worked. onKeyDown/dispatchKeyEvent - I tried to override onKeyDown as well as dispatchKeyEvent methods on Activity, but none of these are executed on lockscreen, these

Handling volume change on android lockscreen?

天大地大妈咪最大 提交于 2020-01-14 19:14:19
问题 What I am trying to do is, being able to catch volume up/down button actions on lockscreen on android 4.4. Google Cast Design Checklist document describes lock screen requirement "Provide access to the volume control via hardware buttons". I tried various ways to handle hardware volume buttons on lock screen but none of them worked. onKeyDown/dispatchKeyEvent - I tried to override onKeyDown as well as dispatchKeyEvent methods on Activity, but none of these are executed on lockscreen, these

How to keep GCKCastSession alive when app goes to background

霸气de小男生 提交于 2020-01-10 20:14:43
问题 I'm using latest Google Cast SDK for iOS (version 3.1.1.10003) and our app is remote controlling Google Cast devices, e.g. it changes their volume. It needs to do so also when our app goes to background. However, GCKSessionManager invokes suspendSessionWithReason: when the app goes to background. This said, the session will be suspended and thus our app can't control it any longer. How can I make GCKSessionManager not suspend sessions when apps go to background? Edit : I'm providing a

Unselecting route because it is no longer selectable chromecast Android Sender

情到浓时终转凉″ 提交于 2020-01-07 09:04:10
问题 Chromecast is causing this error only sometimes when trying to connect to a device on my network, but i am not sure why when the same build works on other devices. Can someone please help me? "unselecting the current device "07-18 15:22:20.592: I/MediaRouter(3628): Unselecting the current route because it is no longer selectable: MediaRouter.RouteInfo{ uniqueId=com.google.android.gms/.cast.media.CastMediaRouteProviderService:35b39330e73d45f54bf12f20a90529a2, name=old reliable, description