google-cast

Unable to debug Whitelisted device / ApplicationSession failing to start

。_饼干妹妹 提交于 2019-12-12 08:26:02
问题 I am not able to connect to my Whitelisted Chromecast through the given address (ip.address:9222) as mentioned here: https://developers.google.com/cast/developing_your_receiver#debugging When attempting to test my Android sender implementation, my app can successfully see and select the Chromecast device via MediaRouteActionProvider I receive SessionError code CODE_REQUEST_FAILED in CATEGORY_CONNECT_CHANNEL immediately. I've included my app id in both the Sender and Receiver. I've verified

How to keep Chrome Cast running in background iOS?

淺唱寂寞╮ 提交于 2019-12-12 08:09:38
问题 I have a simple question when you go to home screen of iPhone and do not quit the application than the chrome Cast device stops playing the video on screen how can I keep playback alive while the application is running in background. 回答1: If you have a video app and it is running in a cast device, you would want the following behavior: if user "explicitly" disconnects a device (through the cast menu), then receiver should look at the connected devices and see if there is any "other" connected

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

Using a chrome cast can I stream directly from my iPhone?

巧了我就是萌 提交于 2019-12-12 01:04:55
问题 I would like to send screen captures to my iphone to the chromecast or video from the camera. Is this possible or does ChromeCast SDK only stream from the web? 回答1: You can write an app that sends images and video from your phone, you just need to create a mini-server on the phone to serve them from. Then just tell your receiver (probably the Styled one), to access the local server (on your iPhone). 来源: https://stackoverflow.com/questions/21605626/using-a-chrome-cast-can-i-stream-directly

Chromecast playready encryption

我的未来我决定 提交于 2019-12-12 01:03:54
问题 When i try to play encrypted SmoothStreaming URL http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest on my CastVideos-android sample with cast-custom-receiver, in console (:9222) i get [ 8.788s] [cast.player.core.MediaKeysManager] onNeedKey media_player.js:24 [ 8.798s] [cast.player.core.MediaKeysManager] onNeedKey_: 1 media_player.js:24 [ 8.803s] [cast.player.core.MediaKeySession] createSession media_player.js:24 [ 8.808s] [cast.player.core