chromecast

How do I get a serial number by Receiver Application on Chromecast

不想你离开。 提交于 2019-12-01 14:06:55
I'm developing a Receiver Application on the Chromecast. I want to use a serial number in order to limit the viewing on multiple devices at the same time. How do I get a serial number by Receiver Application on Chromecast. I could not find it from the developer's guide. As part of the device discovery message exchange, device-desc.xml is received by the sender app which has UDN value. This UDN is a UUID and I assume you can use it to uniquely identify the device and may not even need the serial no for your purpose. Ali Naddaf The serial number is not exposed programmatically. 来源: https:/

Google Chromecast SDK TearDown in background

喜你入骨 提交于 2019-12-01 14:00:35
Using the iOS Sender API Framework, when my application goes in the background, the SDK tears down all connections and I cannot launch any more media until the app is put back in the foreground. My app plays audio and is allowed to run and stream in the background. Is there an option to tell Googlecast framework to keep the sockets opened? Here's the log on backgrounding: INFO: Will resign active INFO: Now in background FINE: -[GCKCastSocket disconnect] disconnect FINE: -[GCKCastSocket doTeardownWithError:] doTeardownWithError FINE: -[GCKCastSocket doTeardownWithError:] notifying delegate that

Google Chromecast SDK TearDown in background

纵饮孤独 提交于 2019-12-01 12:56:18
问题 Using the iOS Sender API Framework, when my application goes in the background, the SDK tears down all connections and I cannot launch any more media until the app is put back in the foreground. My app plays audio and is allowed to run and stream in the background. Is there an option to tell Googlecast framework to keep the sockets opened? Here's the log on backgrounding: INFO: Will resign active INFO: Now in background FINE: -[GCKCastSocket disconnect] disconnect FINE: -[GCKCastSocket

How to keep a ChromeCast session alive when the device is asleep?

与世无争的帅哥 提交于 2019-12-01 12:42:54
I have an app that can stream local media content to a Chromecast receiver. This mostly works, except that when the device is asleep and not on external power the session will die/disconnect after about 5 minutes (measured from when the screen goes blank). I've already had a look at this question here: How do I keep a ChromeCast route alive when my app is in the background on battery power? ...and implemented both of the suggested answers. Specifically, in my app's manifest, I have: <uses-permission android:name="android.permission.WAKE_LOCK" /> And then in the embedded HTTP server that I use

Chromecast Sender v2.7.0 lockscreen image

拜拜、爱过 提交于 2019-12-01 12:19:18
问题 How do we go about showing the lockscreen artwork for a chromecast sender app running v2.7.0 . I have spent the best part of about 2 days on this without any resolution. The v2.7.0 library currently has the following method in the VideoCastManager.java class: private void setBitmapForLockScreen(MediaInfo video) { if (video == null || mMediaSessionCompat == null) { return; } Uri imgUrl = null; Bitmap bm = null; List<WebImage> images = video.getMetadata().getImages(); if (Build.VERSION.SDK_INT

MediaRouteActionProvider connection dialog theme

大憨熊 提交于 2019-12-01 11:34:37
I've tried to change theme of the MediaRouteActionProvider connection dialog. I using in my application a Light theme with Dark Actionbar, so the dialog have dark gray content, but the background is dark.. When the app is connected to a device, the other dialogs are ok, they have white background with the correct theme. (For exmaple in VideoMediaRouteControllerDialog and on the disconnect dialog.) Have you any idea, how can I change the connection dialog's theme? Thank you very much! // Screenshot 1 : Connection dialog (with the theme issue) // Screenshot 2 : Controller dialog (with the right,

MediaRouteActionProvider connection dialog theme

白昼怎懂夜的黑 提交于 2019-12-01 08:51:56
问题 I've tried to change theme of the MediaRouteActionProvider connection dialog. I using in my application a Light theme with Dark Actionbar, so the dialog have dark gray content, but the background is dark.. When the app is connected to a device, the other dialogs are ok, they have white background with the correct theme. (For exmaple in VideoMediaRouteControllerDialog and on the disconnect dialog.) Have you any idea, how can I change the connection dialog's theme? Thank you very much! /

Has anyone had success with large image, translation/animation on Chromecast?

懵懂的女人 提交于 2019-12-01 06:13:31
I've attempted several different css animations to move a large image up and down on the screen while I have music playing. I haven't found any variation on speed, distance translated, etc that results in a smooth transition. Remember that a Chromecast device has limited resources (both CPU and memory) has a stripped-down version of chrome As a result, you won't be able to do many fancy transitions/translations that you are otherwise able to do on a desktop or the performance (how smooth it is) is not going to be what you would like it to be, more so if you are playing a media concurrently. I

Has anyone had success with large image, translation/animation on Chromecast?

拈花ヽ惹草 提交于 2019-12-01 05:54:56
问题 I've attempted several different css animations to move a large image up and down on the screen while I have music playing. I haven't found any variation on speed, distance translated, etc that results in a smooth transition. 回答1: Remember that a Chromecast device has limited resources (both CPU and memory) has a stripped-down version of chrome As a result, you won't be able to do many fancy transitions/translations that you are otherwise able to do on a desktop or the performance (how smooth

Change Chromecast casting icon color

ⅰ亾dé卋堺 提交于 2019-12-01 00:48:46
I'm using Google's method to add a Cast button to my app, but it's defaulted to the white icon, which is invisible against my white menu bar. How do I go about changing the color of the Cast icon to black? Ali Naddaf If it is just due to the style (dark vs light), you should be fine if the style is defined correctly (i.e. extending the right theme in terms of dark vs light). For general styling, check out this post and if that doesn't solve your issue, come back and let us know. oziem I've just extended MediaRouteActionProvider like this: public class ThemeableMediaRouteActionProvider extends