chromecast

Android: How can I use the new Chromecast icons with CastCompanionLibrary

我是研究僧i 提交于 2019-12-13 04:39:22
问题 I've seen new ChromeCast icons around: And I'd really like to use them in my app, as the old icon is completely transparent in the action bar when casting is enabled (the on-state icon is the same color as my action bar). I'm under the impression that these icons come from the MediaRouter library, and I have a feeling it hasn't been updated with these new icons yet.. Is there a way I can override the icons in the CastCompanionLibrary? 回答1: I was referencing an out-dated version of MediaRouter

Why can't I cast an MP4 file served by PHP from outside of the document root?

大憨熊 提交于 2019-12-13 03:30:08
问题 Ok, I give up... Something very strange is going on and, after days of messing with this, I have to ask for help. I have a PHP script that serves an MP4 file from outside of the document root. This script works great, except for one very important (to me at least) detail: it will not give me the option to cast the content. On the same server, when I access an MP4 file that IS inside the document root, I load the page and when I click the three dots in the bottom right corner of the Chrome

Update Chromecast MediaMetadata

元气小坏坏 提交于 2019-12-13 01:35:10
问题 I'm playing a live HLS stream in a Chromecast app, and I'm wanting to update the MediaMetadata when programmes start/finish. However I can't find a method to do this. I can load the stream again with fresh MediaInfo, but I can't just update the existing metadata. Is there any way to do this? At present I'm casting from an Android app. Is there a way to send fresh MediaMetadata to the receiver, or can I pass a custom data message with the information, and update the metadata within the sender

How can I send a message to a custom Google Cast Receiver from Chrome for iOS?

元气小坏坏 提交于 2019-12-13 01:29:24
问题 I'm using the CastHelloText-chrome example and am able to get it all working just fine from the Chrome browser on my desktop, however, when I try to use Chrome on my iOS device, I receive the following error when trying to create a session: { "code": "channel_error", "description": "The operation couldn't be completed. (com.google.chrome.ios.cast error 2.)" } This error happens when executing the following: chrome.cast.requestSession(function(e) { session = e; session.sendMessage(namespace,

Cast Sender running on Android Chrome or Firefox

牧云@^-^@ 提交于 2019-12-13 00:25:34
问题 Is there any way to build a pure JS/HTML5 Chromecast Sender implementation that runs in Chrome or Firefox on Android. The Chromecast Chrome extension doesn't run on Android Chrome, so the only solution I can think of is to launch the Receiver via the desktop Chrome extension, then use WebRTC and webkitRTCPeerConnection to send messages between the Chromecast Receiver and a different Android Sender. Both Android Chrome & Firefox support the data channels so at least once launched that might be

Unable to play live stream on chromecast from android sender app

拈花ヽ惹草 提交于 2019-12-12 21:15:39
问题 I am using CastCompanionLibrary-android in my app and following CastVideos-android to play live streams on chromecast. Now the streaming of video works fine on my local player but when it comes to cast that video, it wont play. Rather it just show me my registered receiver app name and on sender app the VideoCastControllerActivity opens with only a loader which wont end. I have registered both my receiver app (Styled Media Receiver) and the device on Google chrome cast console. Also, I tried

Managing GCKDevices on app when user switch TV source

我怕爱的太早我们不能终老 提交于 2019-12-12 15:11:25
问题 Google Chrome cast api of ios have the following methods of device discovery - (void)deviceDidComeOnline:(GCKDevice *)device { // : manipulate UI [self.tableView reloadData]; } - (void)deviceDidGoOffline:(GCKDevice *)device { //: manipulate UI [self.tableView reloadData]; } this runs fine at the start of application and the devices are added to UI normally because I add a listener to it and start the scan when startScan method that typically runs for 5 seconds but if now i switch the source

Styling ChromeCast MediaRoute button

↘锁芯ラ 提交于 2019-12-12 13:57:57
问题 I can't seem to get the MediaRoute button to show up as 'white' in my solid ActionBar. My question is this: How can we style the MediaRoute button light or dark, without changing drawable names? Looking at a similar question here: How do I change the style of the MediaRouteButton in the ActionBar? the accepted solution is just to use your own set of MediaRoute drawables, and swap the names light<>dark. For my app, I have 3 distinct styles: light-ActionBar, dark-ActionBar, and light solid

Is there a way to manually set the ApplicationSession network timeout for Android Chromecasting?

只谈情不闲聊 提交于 2019-12-12 11:35:46
问题 I'm sending a MediaProtocolMessageStream.loadMedia command to my receiver. After a few seconds my session ends with a "network I/O timeout" with channel=SessionError.CATEGORY_DISCONNECT_CHANNEL and code=SessionError.CODE_TIMEOUT. This only happens for longer videos in the range of over 200 minutes so I'm assuming there's a legitimate timeout going on. Is there anyway to tweak the timeout time in a session so I can load larger movies? I see there's a final DEFAULT_TIMEOUT in the underlying

How to keep Chrome Cast running in background iOS?

淺唱寂寞╮ 提交于 2019-12-12 08:09:38
问题 I have a simple question when you go to home screen of iPhone and do not quit the application than the chrome Cast device stops playing the video on screen how can I keep playback alive while the application is running in background. 回答1: If you have a video app and it is running in a cast device, you would want the following behavior: if user "explicitly" disconnects a device (through the cast menu), then receiver should look at the connected devices and see if there is any "other" connected