google-cast

How to add/use GCKMediaQueue in Swift?

折月煮酒 提交于 2019-12-13 02:17:47
问题 So I have managed to play a video on Chromecast. But only one at a time. I've been trying to figure how to programmatically add to the queue. The idea is to keep playing videos all day. In the code below "playthisvideo()" randomly returns a string that contain an http://.....mp4 . I've look at Google's documentation, it's either too vague or I just don't understand it. And I can't seem to find any examples that would lead the way for me to follow. func castthevideo() { let metadata =

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

Can the android TV emulator in android studio recieve casts?

て烟熏妆下的殇ゞ 提交于 2019-12-12 17:24:19
问题 I am currently trying to implement the Cast SDK into my app and I am running into a few issues the biggest one of them being that I do not own a Chromecast , is there a way to test my code to make sure it casts correctly without owning an Android TV or a Chromecast ? Does the Android TV emulator in Android Studio support cast reception? What are the alternatives here? 回答1: No, the emulator is not going to work for testing the cast functionality. 来源: https://stackoverflow.com/questions

Chrome-cast Sample App doesn't work

北城余情 提交于 2019-12-12 16:11:31
问题 I managed to whitelisted my device and I got the AppID and also setup my receiver url. I am able to build and run the CastSample App. I can click the cast button and my TV shows a blank screen. I tried to select one media from the list but nothing is displayed on my TV. From the log I see the follwoing error some seconds after I clicked the cast button. Am I missing anything? 07-30 20:29:12.895: W/StartSessionTask(19880): Expected a channel but never got a connection service URL 07-30 20:29

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

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

Where do I find android.support.v7.mediarouter.R$attr?

隐身守侯 提交于 2019-12-12 10:58:09
问题 Short version I'm getting an unhandled exception when instantiating an android.support.v7.app.MediaRouteButton object. I get: NoClassDefFoundError: android.support.v7.mediarouter.R$attr Where is this class? Or if it's auto-generated, how do I get it to auto-generate? Longer version I am following along with the tutorial for Android app development for chromecast found here: https://developers.google.com/cast/cast_2nd-screen_app_tutorial I am developing using the ADT bundled eclipse, on ubuntu