chromecast

Android youtube sdk integration with Google chromecast

主宰稳场 提交于 2019-12-12 06:45:57
问题 Is it possible to cast a video from YouTube player SDK form android? Please let me know steps to do it. 回答1: Refer the below link for you tube integration Open Chromecast youtube video from android application https://github.com/jlmcdonald/yt-chromecast-demo 回答2: I endup creating an webapp with iframe for chromecast device And for android app, sending message like "load,play,pause" by alerting code in https://github.com/googlecast/CastHelloText-android 来源: https://stackoverflow.com/questions

Chromecast & Air for Android Apps (AS3)

蹲街弑〆低调 提交于 2019-12-12 06:17:25
问题 Anyone one know a simple way to use / intergrate a chromecast sender for my Air for Android Apps so they can cast directly to a TV. I've done a few successful tests on webpages. but as for intergrating the code into an entirely AS3 project, I don't know were to begin? and I can't seem to find any docs on how to do this. Thank you in advance for your help. 回答1: There in an Air Native Extension that handles this: ANE-Chromecast on Github 回答2: The ANE on Github is not a solution (line 19 of

What Payload to send to the Chromecast Default Media Receiver via Cast.CastApi.sendMessage

ぐ巨炮叔叔 提交于 2019-12-12 06:09:50
问题 I have been trying to build a little test application that sends data from an android app (sender) to my chromecast. I am using the Default Media Receiver to avoid paying for registration while I learn. All the code is implemented in an service, the receiver is found and ready but i don't know how to format the payload to actually get the Media Receiver to do anything (display images for example) Here is a bit of code (if more is needed I gladly post it). The onConnected() method is called

Chromecast MetaData

牧云@^-^@ 提交于 2019-12-12 05:51:52
问题 Having all sorts of fun trying to get the desired metadata, lockscreen and cast popup behaviour working in a music app that utilizes a custom receiver on Chromecast. Here's where I've got to.. private void _dummyRemotePlay(long id,String mUrl,String artist,String title,String iUrl) { // CODE THAT CHANGES BEHAVIOUR MediaTrack.Builder b = new MediaTrack.Builder(id,MediaTrack.TYPE_AUDIO); b.setSubtype(MediaTrack.SUBTYPE_METADATA); // END CODE THAT CHANGES BEHAVIOUR MediaMetadata mdata = new

Sending a JSON from ios sender to receiver-app with the GoogleCast-SDK v3

孤街醉人 提交于 2019-12-12 05:18:47
问题 I'm developing an ios sender and custom-receiver app with the Google-Cast-SDK v3 . I can't seem to find the appropriate method to send a message containing a JSON to the Receiver-App. Do I have to use the sendTextMessage -function or is there a better way? Would this "new" function be able to send a base64 coded image? (The Backend has no real file-management yet and this is all I can work with right now.) Thanks for your answers 回答1: Yes, you'll want to create a GCKCastChannel instance (for

Error inflating class android.support.v7.app.MediaRouteButton

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:39:36
问题 I've added the android-support-v7-appcompat,android-support-v7-mediarouter library project to build path. following are my main activity and no errors for import the button, but when execute the app, error inflating MediaRouteButton happens. Thanks a lot for any advice! <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <android.support.v7.app.MediaRouteButton android

Android Sender App getting timeout when trying to connect to Chromecast

妖精的绣舞 提交于 2019-12-12 03:34:54
问题 I am writing an Android App which is playing YouTube videos. I am working on adding Chromecast support to my app. I learnt from various questions posted on Stack Overflow that YouTube SDK does not provide direct APIs to cast videos from your own app. Following the suggestions provided, I wrote my own custom receiver and have published it too. However, when I am calling launchApplication from my app, I am always getting status as 15 in onResult. Cast.CastApi.launchApplication(mApiClient, APP

Cast companion library change video without restarting activity?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 02:01:56
问题 I have built an application that uses Cast Companion Library (CCL) to remotely play video to cast comparable devices. Every thing is working find but I need to be able to change video files and not kill and restart the activity and fragment. I have implemented my own custom version of the VideoCastControllerActivity that implements the same interface but I am re-using the VideoCastControllerFragment that CCL comes with. One problem is that the VideoCastControllerFragment does not really give

Cast Device GoogleApiClient.onConnectionFailedListener always being called

六眼飞鱼酱① 提交于 2019-12-12 01:57:59
问题 I am having trouble debugging why my connection to a cast device is always failing but works fine in other apps that are not mine. I am getting a reference to the cast device but i am never able to connect to that device in my own implementation using: private void connectToCastDevice(CastDevice currentDevice) { // Create the CastOptions.Builder Cast.CastOptions apiOptionsBuilder = Cast.CastOptions.builder(currentDevice, mCastClientListener).build(); // If the GoogleApiClient is not null and

Chromecast SDK Android: getApplicationMetadata returns null

China☆狼群 提交于 2019-12-12 01:49:48
问题 In my sender app I'm using ApplicationMetadata metadata = Cast.CastApi.getApplicationMetadata(apiClient); while apiClient.isConnected() returns true and my receiver app is running on the Chromecast. When I do this, the method always returns null so the metadata object is always set to null. Is there anything else I need to do for this to work? Thanks in advance 回答1: There seems to be a bug there which will be addressed in the next release. Meanwhile, note that when you call Cast.CastApi