chromecast

Chromecast sender APIs for WebView based app on Android 4.4

帅比萌擦擦* 提交于 2020-01-14 14:20:28
问题 I read that WebView component in Android 4.4 is based on Chrome: https://developers.google.com/chrome/mobile/docs/webview/overview#does_the_webview_support_the_chrome_apps_apis However, support for Chrome Apps API is still not there. Does this mean that my WebView based app cannot use Chromecast Sender APIs ? 回答1: That is correct, you do not have the needed extension and APIs to use the (pure) chrome WebView to communicate with a chromecast device. As a side note, you cannot do that in the

How to keep a ChromeCast session alive when the device is asleep?

浪尽此生 提交于 2020-01-11 07:24:10
问题 I have an app that can stream local media content to a Chromecast receiver. This mostly works, except that when the device is asleep and not on external power the session will die/disconnect after about 5 minutes (measured from when the screen goes blank). I've already had a look at this question here: How do I keep a ChromeCast route alive when my app is in the background on battery power? ...and implemented both of the suggested answers. Specifically, in my app's manifest, I have: <uses

Unselecting route because it is no longer selectable chromecast Android Sender

情到浓时终转凉″ 提交于 2020-01-07 09:04:10
问题 Chromecast is causing this error only sometimes when trying to connect to a device on my network, but i am not sure why when the same build works on other devices. Can someone please help me? "unselecting the current device "07-18 15:22:20.592: I/MediaRouter(3628): Unselecting the current route because it is no longer selectable: MediaRouter.RouteInfo{ uniqueId=com.google.android.gms/.cast.media.CastMediaRouteProviderService:35b39330e73d45f54bf12f20a90529a2, name=old reliable, description

Unselecting route because it is no longer selectable chromecast Android Sender

我是研究僧i 提交于 2020-01-07 09:03:06
问题 Chromecast is causing this error only sometimes when trying to connect to a device on my network, but i am not sure why when the same build works on other devices. Can someone please help me? "unselecting the current device "07-18 15:22:20.592: I/MediaRouter(3628): Unselecting the current route because it is no longer selectable: MediaRouter.RouteInfo{ uniqueId=com.google.android.gms/.cast.media.CastMediaRouteProviderService:35b39330e73d45f54bf12f20a90529a2, name=old reliable, description

Android Chromecast Companion Library - set TextTrackStyle error 2103

你。 提交于 2020-01-07 03:51:08
问题 I'm using CastCompanionLibrary-Android and I'm trying to set custom TextTrackStyle for the captions. I'm setting this TexTextStyle to the MediaInfo while I'm creating it: // set CC style TextTrackStyle textTrackStyle = new TextTrackStyle(); textTrackStyle.setBackgroundColor(Color.parseColor("#FFFFFF")); textTrackStyle.setForegroundColor(ContextCompat.getColor(mContext, R.color.blue)); MediaInfo mediaInfo = new MediaInfo.Builder(url) .setStreamDuration(movieVideoItem.getDuration())

Switching Audiotrack on Chromecast

空扰寡人 提交于 2020-01-05 05:30:08
问题 I actually cannot believe I couldn't find an answer to this as it appears to me as if it should be a common problem - am I using the wrong terminology? However, I am looking for a way to switch the audiotrack of the video that is being sent to be played on chromecast. More precisely I'm talking about a multitrack video File embedding two audio lines (mkv-format). I've not found any possibility to do this using the (Android) SDK, nor could I change it using JavaScript on the Receiver App

How to style GCKUIMiniMediaControlsViewController in iOS?

牧云@^-^@ 提交于 2020-01-04 09:22:01
问题 I'm upgrading current Cast SDK to V3 and want to use build-in UI components and remove deprecated functions. Currently, the GCKUIMiniMediaControlsViewController has a white/light theme but I'd like to change it to a darker theme. However, I couldn't find any function/propert/protocol that I can use to change the style. The document Add Advanced Cast v3 Features to your iOS App says: The Cast framework widgets supports the Apple UIAppearance Protocol in UIKit to change the appearance of the

Is it possible to play/pause the current chromecast media stream by a generic Android app?

时光怂恿深爱的人放手 提交于 2020-01-03 04:42:06
问题 I can't find a way to do this. is it possible to control the media stream that is current playing on chromecast, like youtube, video app, music app, or whatever from a generic Android application? I've tried many ways to do it, but I had no success. I'm able to join the chromecast while it's playing a video from youtube for example and get it's session id and some other info, but I can't play/pause the streaming. Is it possible to do it? Thanks in advance. 回答1: It very much depends on the

skipNext skipPrevious Google Cast greyed out

人盡茶涼 提交于 2020-01-03 03:00:07
问题 As it pertains to How to add/use GCKMediaQueue in Swift? I have added the skip buttons on AppDelegate, and they do appear on the expanded controller screen. But they are greyed out. If I let a video end, then it will play the next in the queue. But then why are the buttons greyed out? That usually means that they are not available to use. But I have 50 videos in the queue, so what am I missing? func addvideos2queue() { for indexloop in 1 ... 50 { debugPrint("**** Attempting #" + String

Can Chromecast cast .m3u8 live stream on default receiver?

倾然丶 夕夏残阳落幕 提交于 2020-01-02 10:16:34
问题 I have tried casting .mp4 on default receiver. It works great. Used the same setting to play m3u8 and metadata comes but video doesn't play. Want to know if I can cast .m3u8 as well on the default receiver. If so what MIME type should I use and additional setting should I set? 回答1: HLS (if that is what is in your m38u playlist) is supported. You need to make sure CORS requirements are satisfied (something that is not required for plain mp4). Look at the docs under https://developers.google