google-cast

How to play smooth streaming video in Chromecast?

跟風遠走 提交于 2019-12-03 13:42:58
问题 According the Chromecast Developers page, Chromecast supports the SmoothStreaming container, which I believe uses video chunks with the .ismv extension. I am having problems getting those video files to play. If I am not mistaken, Chrome/Chromecasts's implementation of the video tag only supports .mp4 and .webm files, so using cast.MediaLoadRequest (in a Chrome Sender App) would not work if you pass it a url for a manifest file or .ismv container. It does seem possible to write code that

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

一曲冷凌霜 提交于 2019-12-03 13:26:22
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? Chromecast devices have a different Graphics Window size than it's Video window - The Graphics window uses a 1280x720 resolution surface. The window.height and window.width

ChromeCast background video playback support iOS

纵饮孤独 提交于 2019-12-03 11:56:29
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. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^ { [[CastViewController

How to play smooth streaming video in Chromecast?

こ雲淡風輕ζ 提交于 2019-12-03 04:47:18
According the Chromecast Developers page, Chromecast supports the SmoothStreaming container, which I believe uses video chunks with the .ismv extension. I am having problems getting those video files to play. If I am not mistaken, Chrome/Chromecasts's implementation of the video tag only supports .mp4 and .webm files, so using cast.MediaLoadRequest (in a Chrome Sender App) would not work if you pass it a url for a manifest file or .ismv container. It does seem possible to write code that stitches together MPEG-DASH chunks using the MediaSource API from a MPEG-DASH manifest file. However, it

Chromecast Receiver App - Unexpected command, player is in IDLE state

谁都会走 提交于 2019-12-02 08:59:08
I am using the cast reference player sample code to develop a receiver application. I am using the cast message bus to send a JSON string that will launch my media. So in my player.html , I init the cast message bus . When I receive JSON of the media that I want to play, I init player.js from player.html like so: //receive message to play -> pass media through var player = document.getElementById('player'); new sampleplayer.CastPlayer(player).start(); then in my player.js : sampleplayer.CastPlayer.prototype.start = function() { var self = this; var message = //JSON string this.load(JSON.parse

Google Cast - Receiver Unavailable

喜欢而已 提交于 2019-12-02 04:15:45
I'm just trying to get a simple "Hello, world!" style app to run with the new Chromecast SDK. Here's the step-by-step I'm following: https://developers.google.com/cast/docs/chrome_sender To achieve minimal setup, I'm attempting to wire it up via a Chrome App (App, not Extension) as the Sender, and using chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID as the AppID (as mentioned in the tutorial). It seems to fall apart somewhere between Initialization and Launch. My call to chrome.cast.initialize succeeds, but when receiverListener gets invoked, the result is always "unavailable". If I attempt

Google Cast App without internet

你。 提交于 2019-12-02 01:23:39
is it also possible to run Cast apps on Chromecast without internet access in a local network only? Maybe with an own webserver. For a showcase event I can not ensure access to the internet. The use case is for demonstration only. Thanks you. As of early February 2015 the Chromecast requires an internet connection to stream even local content (i.e. from your computer over your wifi). The reason is that, to facilitate the media playback, special code (Javascript) is run directly from Google servers. Why can't Google just download this code directly to the Chromecast one time? I believe it has

Examples using CastCompanionLibrary to simply display an image

与世无争的帅哥 提交于 2019-12-01 18:19:52
I am looking for and example of casting an image to chromecast in android. Oddly enough it doesn't seem like this is covered in the googlecast sample repositories. Does anyone have a simple implementation of this? I basically would like to click on an image in my app's photo gallery on my android device and have it cast to the screen. One side question is, does the image need to be at a url? or is it possible to stream the image to the device? I appreciate the help in advance. I've solved this without the CastCompanionLibrary, but based on google's CastHelloText-android sample. Basically what

Examples using CastCompanionLibrary to simply display an image

烂漫一生 提交于 2019-12-01 18:16:12
问题 I am looking for and example of casting an image to chromecast in android. Oddly enough it doesn't seem like this is covered in the googlecast sample repositories. Does anyone have a simple implementation of this? I basically would like to click on an image in my app's photo gallery on my android device and have it cast to the screen. One side question is, does the image need to be at a url? or is it possible to stream the image to the device? I appreciate the help in advance. 回答1: I've

Not seeing Google Play Services rev 15 in SDK Manager (yet) for Google Cast SDK

只愿长相守 提交于 2019-12-01 15:54:59
As per the Cast SDK Docs , to use Cast SDK in Android I need, Google Play Services Revision 15. I dont see Rev 15 in my SDK Manager. Can anyone else see it yet? or know by when we can expect to start developing for Android with rev 15? Is there an alternative stop gap to get around the problem till Google pushes out to all SDK Managers? Can anyone else see it yet? No, because it is not yet available. UPDATE : OK, now it is. Let the downloading commence! or know by when we can expect to start developing for Android with rev 15? On the page that you linked to , in a large yellow box, you will