google-cast

Display web sites and web apps with Chromecast

萝らか妹 提交于 2019-11-27 00:29:43
问题 Can Chromecast be used to display a web site or web app? All the sample sender/receivers I've seen so far show how to play videos. The docs posted so far are minimal as best, just an API reference with little explanation what any of it does. I just want to send a URL of my choosing and have that page displayed on the TV. There's no user interaction required past that point. Assuming that's possible, does anyone have sample Chrome sender and receiver code for that? 回答1: I was able to modify

How do I change the style of the MediaRouteButton in the ActionBar?

十年热恋 提交于 2019-11-26 17:51:03
问题 I realize I'm probably doing something fundamentally wrong with styles and themes but I'm still a bit of an Android newbie so please excuse my ignorance. I'm trying to change the style of my MediaRouteButton from the default dark to light since I have a light ActionBar. My MediaRouteButton is implemented in the ActionBar as follows: <item android:id="@+id/menu_item_cast" android:actionProviderClass="android.support.v7.app.MediaRouteActionProvider" android:actionViewClass="android.support.v7

“GoogleApiClient is not connected yet” exception in Cast application

本秂侑毒 提交于 2019-11-26 16:53:48
问题 I'm developing an Android application that casts content to Chromecast. Sometimes in my com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks implementation in the onConnected method, I get a java.lang.IllegalStateException: GoogleApiClient is not connected yet. exception. Here is the stack trace: FATAL EXCEPTION: main Process: com.joaomgcd.autocast, PID: 13771 java.lang.IllegalStateException: GoogleApiClient is not connected yet. at com.google.android.gms.internal.eg.a