chromecast

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

Large number of RemoteServiceExceptions in Google's cast MediaNotificationService

徘徊边缘 提交于 2020-02-26 09:51:30
问题 In the last ~24 hours, we've seen a few thousand crashes within Google's MediaNotificationService : Fatal Exception: android.app.RemoteServiceException Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{f9a4deb u0 <our package name>/com.google.android.gms.cast.framework.media.MediaNotificationService} android.app.ActivityThread$H.handleMessage (ActivityThread.java:1855) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop

Authentication in Chromecast CAF Receiver application

时间秒杀一切 提交于 2020-02-22 08:09:26
问题 I have a help URL which is to be authenticated with a token before playing it. How can I add a token header to a receiver CAF application? I searched in the documentation but couldn't find any reference of authentication for a receiver CAF application. In V2 player we can intercept the request with updateSegmentRequestInfo as shown below but im not sure how to do it with CAF Application. Can someone help? host.updateSegmentRequestInfo = function(requestInfo) { console.log("Inside

Chromecast live duration

£可爱£侵袭症+ 提交于 2020-01-24 13:02:53
问题 I am playing a live content (SmoothStreaming) with a set duration in a Chromecast device. Although manifest has a parameter duration, Chromecast doesn't get it (duration: null). I am trying do a seek to forward but Player only seek until 20 seconds later (buffering time). Is there a way to set the duration of a live stream? Or Chromecast doesn't support live seeking? Thanks in advance 来源: https://stackoverflow.com/questions/47031243/chromecast-live-duration

Why am I getting java.lang.IllegalArgumentException: background can not be translucent: #0 when using MediaRouteButton?

给你一囗甜甜゛ 提交于 2020-01-24 09:14:06
问题 I'm trying to cast my app to Chromecast. I've started with adding a button, following the https://developers.google.com/cast/docs/android_sender_integrate guide. After I have added the MediaRouteButton, I get: Caused by: java.lang.IllegalArgumentException: background can not be translucent: #0 at android.support.v4.graphics.ColorUtils.calculateContrast(ColorUtils.java:93) at android.support.v7.app.MediaRouterThemeHelper.getControllerColor(MediaRouterThemeHelper.java:88) at android.support.v7

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