google-cast

Chromecast “StartApplicationRequest failed with status: -4”

荒凉一梦 提交于 2019-12-05 09:19:19
I've set up the Chromecast SDK, whitelisted my device, and am running web servers at the URLs I provided in the whitelist request. The chromecast tic tac toe app works fine with the default app id "TicTacToe" , however changing it to my own: "1813060e-33c5-41dc-b356-0d2bad12497f" or "1813060e-33c5-41dc-b356-0d2bad12497f_1" does not work. The server url is up and running at http://chromecast.clockworkmod.com/ , but no requests are being made to it by Chromecast. The chromecast doesn't display anything. However I get a few errors in the log. Here is the logcat. W/StartSessionTask(15590):

Does the content stream from WiFi directly to Chromecast, or from WiFi to Android to Chromecast?

空扰寡人 提交于 2019-12-05 08:18:22
Does the content stream from WiFi directly to Chromecast, or from WiFi to Android (or any other device) to Chromecast? I know that the other devices can be used to control the Chromecast, but I just want to know whether say you can stream directly from your mobile due say to battery life. The mobile device is only used for the initial content discovery phase where the user selects a video stream to watch. Once playback is initiated, the Chromecast device connects to the internet over WiFi and downloads the stream data without requiring the mobile device to be turned on. More details available

Stream overlapping audio files to Chromecast Audio

醉酒当歌 提交于 2019-12-05 07:03:52
Short I would like to stream multiple overlapping audio files (some sound effects that play at certain random times). So kind of a generated audio stream that will NEVER repeat exactly the same way. Some audio files are looping, some are at specific times. Probably kind of realtime stream insertion would be good I guess. What is the best way to write such a server software? What protocols should be used for streaming that (I prefer over HTTP). I would probably want to expose an url for each configuration (tracks & timing of sound effects). Any pointers to code/libraries? Best if in any

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

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

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

unable to cast to personal whitelisted receiver app

廉价感情. 提交于 2019-12-04 15:03:10
I have successfully used the Android TicTacToe app to cast to the TicTacToe receiver app (AppID "TicTacToe"), using unmodified code from the TicTacToe example on github . Next, I tried to use my personal receiver app. I got the email a couple of hours letting me know that my device was whitelisted and providing the AppID. I put the AppID in line 90 on GameActivity.java (not line 91, as stated in the instructions), and I also put it in line 35 of tictactoe.html (this step was missing from the instructions, but I assume it is needed). I also followed all steps in the Common Errors section of the

Will Chromecast device play videos encoded as HLS? [closed]

十年热恋 提交于 2019-12-04 14:14:05
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . It apparently works on Google TV (for Android apps, not html5 apps), so I'm curious if we'll be able to encode them as HLS (Http Live Streaming) for use with Chromecast? It will now according to the updated SDK docs: https://developers.google.com/cast/docs/media I'm guessing for contentType on MediaInfo you'll pass application/x-mpegURL . HLS is not yet built into the platform, however support for