chromecast

How to initialize CastContext outside of onCreate method

主宰稳场 提交于 2019-12-23 03:03:04
问题 I would like to only activate the Cast feature due to certain criteria so I don't want any Cast logic in my onCreate. I have a setupCast method that has the following code: private void setupCast(String appId) { if (appId != null) { Log.d(TAG, "Setting up Cast..."); setupCastListener(); CastOptionsProvider.setAppId(appId); mCastContext = CastContext.getSharedInstance(_movieActivityContext); mCastContext.registerLifecycleCallbacksBeforeIceCreamSandwich(this, _savedInstanceState); mCastSession

How can I get access to Introductory Overlay?

两盒软妹~` 提交于 2019-12-23 02:45:10
问题 I would like to customize introductory overlay in my iOS app with appearance() method, but I can't find a class responsible for this overlay in API. Do anyone know how can I get an access to introductory overlay? 回答1: We currently don't expose the introductory overlay UI class so you can change the appearance. We have raised this with our engineering team. 回答2: Cast SDK v3 for iOS introduced GCKUIStyle. This allows you to customize appearance of all Cast Views without having a reference to

Can't cast video via google cast correctly in ios app

好久不见. 提交于 2019-12-22 07:12:20
问题 I'm working on a project with custom video player, based on AVPlayer. Trying to integrate google cast. I've made integration based on google tuts: https://codelabs.developers.google.com/codelabs/cast-videos-ios/ But with conversion to swift. Everything seems to work fine, when cast, if video player opens, and there is connected device (or if I connect from panel), I form meta info for file, and it's passed to google cast - everything works fine. But, i have strange behavior: 1) Start casting,

Android > Chrome Chromecast icon over html5 video position

早过忘川 提交于 2019-12-22 03:51:38
问题 If there is a Chromecast around and: If the html5 video controls are enabled, the cast buttons shows up in the control bar. If the html5 video controls are disabled, the cast button shows up on the top left. I'd like to disable the native controls, but also include my own cast button, kind of what video.js-chromecast does, but the native button still shows up. Is there anyway to reposition the Cast icon over the html5 video? or completely hide it ? 回答1: After searching the Chromium source

Storing large file in chromecast memory

匆匆过客 提交于 2019-12-22 01:34:30
问题 The problem I made a receiver application that is just showing a video in loop on the Chromecast. The problem is that the Chromecast doesn't seems to be caching the video in it's cache. So the video keeps getting downloaded every time it finishes a loop and it takes a lot of bandwidth. The video will be hosted on external server so the Chromecast will have to download it from internet every time (I cannot change that spec). Just for you know, when debugging the receiver application on a

Storing large file in chromecast memory

Deadly 提交于 2019-12-22 01:29:09
问题 The problem I made a receiver application that is just showing a video in loop on the Chromecast. The problem is that the Chromecast doesn't seems to be caching the video in it's cache. So the video keeps getting downloaded every time it finishes a loop and it takes a lot of bandwidth. The video will be hosted on external server so the Chromecast will have to download it from internet every time (I cannot change that spec). Just for you know, when debugging the receiver application on a

Cast connection timeout

混江龙づ霸主 提交于 2019-12-22 01:28:34
问题 I have a custom receiver app (html page + js and css) that contains just an iframe for testing. I load the receiver app locally on the same Wi-Fi network as the ChromeCast. The thing is, it connects fine, then loads the iframe and everything is cool, but after a fix time of 21 secs (everytime), I get a error code 15 timeout. I've tried and set the maxInactivity to 6000 in appConfig, but made no difference. Any ideas what could possibly be wrong? Worth mentioning is that I've also tried to put

Chromecast Sender App Doesn't Detect Disconnection/Reconnection

你说的曾经没有我的故事 提交于 2019-12-21 10:46:24
问题 I previously developed an android sender app with the preview SDK and found that when a Chromecast was turned on or off, the app very quickly discovered this and changed the state of the media route button. However with the new SDK, if a Chromecast is unplugged while the app isn't connected to it, MediaRouter.Callback.onRouteUnselected() is never called and the Cast icon remains visible. In some cases even if the app is closed and opened again, onRouteAdded is called on startup with the

RuntimeException (Chromecast)

寵の児 提交于 2019-12-21 02:51:19
问题 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

YouTube iframe api behavior on Chromecast

杀马特。学长 韩版系。学妹 提交于 2019-12-21 02:48:18
问题 Trying to get a YouTube video playing on Chromecast, not using the YouTube receiver but simply the iframe YouTube api. When the receiver url is loaded in a desktop chrome browser it plays ok but when the same url is loaded onto Chromecast I get the message 'This video is currently unavailable - Learn More'. If I keep trying to get the widget, once created, to play different videos it sometimes also says 'The Adobe Flash Player is required for video playback'. The widget is created in the