chromecast

Open Chromecast YouTube video from my Android app

☆樱花仙子☆ 提交于 2019-11-27 12:34:16
问题 I'm able to use my own whitelisted url for feeding my chromecast videos, but can I make it stream a YouTube video directly from my app? I assume all I would need is to launch the YouTube app remotely and feed it a video ID somehow, but I can't find out how to do that. Has anyone done this from an Android app? Thanks. 回答1: Not sure if you are still looking for a solution for this. The way to do it is as follows: MimeData data = new MimeData("v=g1LsT1PVjUA", MimeData.TYPE_TEXT); mSession

Is it possible to programmatically connect to a chromecast route?

早过忘川 提交于 2019-11-27 08:26:57
问题 I'm writing a chromecast receiver application that will (hopefully) allow me to remotely put alert messages up on my TV to serve as reminders. My plan was to have a dedicated wireless device on my home network that would constantly poll for new messages from a centralized server. When a new message was found, it would connect to a chromecast route, turning on the TV and displaying the new message. But as far as I can tell, the only way to activate a chromecast route is by manually clicking

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

Chrome Cast Sender “session_error” NOT_FOUND

拟墨画扇 提交于 2019-11-26 16:45:28
I can't get a basic sender app set up. I've tried the CastHelloText sender example, put in my own AppId and get an error immediately after chrome.cast.requestSession() is called when I select my device from the top-right Google Cast extension button. My receiver is based off of Cast-Simple-Receiver . I've done the whole unplugging power/plugging back in thing to restart ChromeCast, but that doesn't resolve my issue. Resources out there seem kind of slim at the moment, but is there a place that explains everything in-depth without having to jump from site to site? Also, take a look at the image

Google Chromecast sender error if Chromecast extension is not installed or using incognito

风流意气都作罢 提交于 2019-11-26 14:56:36
I'm having an error running Chromecast sender in Chrome Incognito or if Chromecast extension is not installed: Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js

Chrome Cast Sender “session_error” NOT_FOUND

五迷三道 提交于 2019-11-26 04:56:03
问题 I can\'t get a basic sender app set up. I\'ve tried the CastHelloText sender example, put in my own AppId and get an error immediately after chrome.cast.requestSession() is called when I select my device from the top-right Google Cast extension button. My receiver is based off of Cast-Simple-Receiver. I\'ve done the whole unplugging power/plugging back in thing to restart ChromeCast, but that doesn\'t resolve my issue. Resources out there seem kind of slim at the moment, but is there a place

Google Chromecast sender error if Chromecast extension is not installed or using incognito

此生再无相见时 提交于 2019-11-26 04:06:20
问题 I\'m having an error running Chromecast sender in Chrome Incognito or if Chromecast extension is not installed: Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js Failed to load