chromecast

Chromecast with multiple activity

时光总嘲笑我的痴心妄想 提交于 2019-12-05 02:09:02
问题 I'm developing an application supporting both Chromecast and ActionbarSherlock. In every activity, I create a MediaRouteButton in the ActionBar. My problem is, I didn't connect to the Chromecast device in the first Activity, and go to the second Activity. In the second one, I connect to the Chromecast device. It runned into the onRouteSelected() of the second Activity, then runned into onDeviceAvailable() -> openSession() of the first Activity. I don't know why it didn't run into

Android screen sharing programmatically (Root)

喜夏-厌秋 提交于 2019-12-05 02:02:14
Is it possible to screen sharing from root adb shell without user interaction over mircast or chromecast in Android >= 5? I'm looking for the command that enables/disables this https://support.google.com/nexus/answer/2865484?hl=en You can try the Media Router - Secondary Output APIs from Android SDK: The Android media router APIs are designed to enable media display and playback on these secondary devices. There are two main approaches you can use to play content using these APIs: Remote Playback — This approach uses the receiving device to handle the content data retrieval, decoding, and

Android > Chrome Chromecast icon over html5 video position

六眼飞鱼酱① 提交于 2019-12-05 01:48:50
If there is a Chromecast around and: If the html5 video controls are enabled, the cast buttons shows up in the control bar. If the html5 video controls are disabled, the cast button shows up on the top left. I'd like to disable the native controls, but also include my own cast button, kind of what video.js-chromecast does, but the native button still shows up. Is there anyway to reposition the Cast icon over the html5 video? or completely hide it ? After searching the Chromium source code, I figured out how to do it: video::-internal-media-controls-overlay-cast-button { display: none; }

“No acceptable module found” on Android emulators using com.google.android.gms play-services 9.2.0

醉酒当歌 提交于 2019-12-05 01:22:04
I have recently updated to com.google.android.gms:play-services 9.2.0 and am attempting to use the new Chromecast library and Firebase Analytics but am receiving the error "com.google.android.gms.internal.zzsj$zza: No acceptable module found. Local version is 0 and remote version is 0." in the Activity onCreate method at com.google.android.gms.cast.framework.CastContext.(Unknown Source). Any ideas if this is due to the Cast functionality not working with the emulators or if it's a version issue? The emulators I am testing with are running 5.0 and 5.1. protected void onCreate(Bundle

Storing large file in chromecast memory

有些话、适合烂在心里 提交于 2019-12-04 22:51:58
The problem I made a receiver application that is just showing a video in loop on the Chromecast. The problem is that the Chromecast doesn't seems to be caching the video in it's cache. So the video keeps getting downloaded every time it finishes a loop and it takes a lot of bandwidth. The video will be hosted on external server so the Chromecast will have to download it from internet every time (I cannot change that spec). Just for you know, when debugging the receiver application on a desktop chrome application, the video is cached by the browser, so the problem doesn't seems to come from

Cast connection timeout

橙三吉。 提交于 2019-12-04 21:02:27
I have a custom receiver app (html page + js and css) that contains just an iframe for testing. I load the receiver app locally on the same Wi-Fi network as the ChromeCast. The thing is, it connects fine, then loads the iframe and everything is cool, but after a fix time of 21 secs (everytime), I get a error code 15 timeout. I've tried and set the maxInactivity to 6000 in appConfig, but made no difference. Any ideas what could possibly be wrong? Worth mentioning is that I've also tried to put the receiver app on a domain and made no difference. Edit: Adding some receiver logs, as requested.

Why does the chromecast client declare its height and width as 720p to the receiver app?

旧街凉风 提交于 2019-12-04 20:49:36
问题 Why does the chromecast declare its client height and width to be 720p to the receiver app server? I am trying to display non-video content and assumed I would be able to use the full 1080p resolution. The device reports to the TV that it is in 1080p 60hz but if you look at the on device developer tools it is only displaying my receiver app as 1280x720. Is there a way to force the page to render at full resolution? 回答1: Chromecast devices have a different Graphics Window size than it's Video

Screen mirrorring using chrome cast example code or tutorial [closed]

对着背影说爱祢 提交于 2019-12-04 20:26:55
I am looking to build a sample app that has the capability to just cast my android screen on to the TV screen. Most of the sample applications(including googles official sample cast applications) I see have the capability to cast audio and video as well. I know their is google's chromecast app which does the same(screen mirroring), but I need to integrate same functionality in my app. So any kind of code example or tutorial that point me in the direction of screen mirroring using cast SDK will be much appreciated. You cannot programmatically initiate mirroring your phone screen outside of your

ChromeCast background video playback support iOS

夙愿已清 提交于 2019-12-04 19:32:34
问题 I have a problem that when I my application goes in background the GCKSocket of chromecast iOS api closes and I get this typr of error from api -[GCKCastSocket socketDidDisconnect:withError:] socketDidDisconnect:withError: "(null)" and then if I bring the application to foreground the api creates the socket automatically and set the playback state to paused. If I now try to play the video again it plays normally. I am starting the playback of the media on the background thread like this.

Chromecast Receiver App Cookies

半城伤御伤魂 提交于 2019-12-04 18:13:46
I am trying to play an HLS stream on my chromecast custom receiver. However i'm having authentication issues fetching the m3u8 files because my server requires a cookie. The request to get the root m3u8 file has a 'Set-Cookie' header which needs to be considered when fetching the sub-m3u8 files in my stream (to pass server authentication). I would like to know if its possible to have cookies set when the receiver app fetches the media. Try something like: window.mediaHost = new cast.player.api.Host({ 'mediaElement': window.mediaElement, 'url': url }); window.mediaHost.updateManifestRequestInfo