chromecast

Can you add Chromecast functionality without using the ActionBar

对着背影说爱祢 提交于 2019-12-03 19:40:51
I've been working from the example applications from Google to prepare our Chromecast capabilities, What I've found however is that you are required to have a button in the ActionBar (as implemented by Google) in order to get an ActionProvider in order to attach your selector to. @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); getMenuInflater().inflate(R.menu.main, menu); MenuItem mediaRouteMenuItem = menu.findItem(R.id.media_route_menu_item); MediaRouteActionProvider mediaRouteActionProvider = (MediaRouteActionProvider) MenuItemCompat

Chromecast with multiple activity

一笑奈何 提交于 2019-12-03 16:47:59
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 onDeviceAvailable() on the second Activity. Can anyone help me? Thanks in advance Here is my code in both

What does Chromecast support?

半腔热情 提交于 2019-12-03 16:29:08
问题 I'm wondering what web technologies the Chromecast supports. I know there's not a comprehensive list as mentioned here but I actually would like a list of supported and performant features. How different is it from normal web development? Is there hardware acceleration, WebGL, or Web Audio support? How's the performance for these. Any sort of thing an old-fashioned web developer would want to know? Any weird quirks? 回答1: There is no support for plugins like Flash player, Silverlight,

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

RuntimeException (Chromecast)

只愿长相守 提交于 2019-12-03 09:42:32
I try to configure Chromecast but got RuntimeException and don't understant the reason. Here are logs from Fabric: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{... .activity.TVActivityPhone}: java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zza: Remote load failed. No local fallback found. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2747) at android.app.ActivityThread.access$900(ActivityThread.java:187) at android.app

What does Chromecast support?

不打扰是莪最后的温柔 提交于 2019-12-03 05:35:43
I'm wondering what web technologies the Chromecast supports. I know there's not a comprehensive list as mentioned here but I actually would like a list of supported and performant features. How different is it from normal web development? Is there hardware acceleration, WebGL, or Web Audio support? How's the performance for these. Any sort of thing an old-fashioned web developer would want to know? Any weird quirks? There is no support for plugins like Flash player, Silverlight, Quicktime and Unity. Regarding HTML5 support I did a simple receiver which do nothing but redirecting to http:/

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 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

Chromecast Android Sender RemoteMediaPlayer producing No current media session

和自甴很熟 提交于 2019-12-01 14:27:34
I have been able to successfully cast video to a Chromecast and have the option let the video play when disconnecting and it all works great. However, if I choose to quit the application and let the video continue playing and then try to re-join the currently playing session and try to use the RemoteMediaPlayer to control the video I am getting: "java.lang.IllegalStateException: No current media session". Just as a background, I am saving the route id and session id on the initial connect into preferences and am able to successfully call "Cast.CastApi.joinApplication" and when in the onResult