google-cast

Stream overlapping audio files to Chromecast Audio

喜夏-厌秋 提交于 2019-12-22 05:41:59
问题 Short I would like to stream multiple overlapping audio files (some sound effects that play at certain random times). So kind of a generated audio stream that will NEVER repeat exactly the same way. Some audio files are looping, some are at specific times. Probably kind of realtime stream insertion would be good I guess. What is the best way to write such a server software? What protocols should be used for streaming that (I prefer over HTTP). I would probably want to expose an url for each

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

Why is Chromecast SDK for iOS so big when installed with Cocoapods?

一笑奈何 提交于 2019-12-19 11:19:43
问题 I recently added the Chromecast SDK to my project, and GoogleCast.framework is nearly 650MB . Is that the normal size? If not, how can I decrease the size? I installed it with Cocoapods (the google-cast-sdk pod) and my project is all in Swift. 来源: https://stackoverflow.com/questions/53465950/why-is-chromecast-sdk-for-ios-so-big-when-installed-with-cocoapods

How to launch a receiver app in Chrome once Chromecast device has been whitelisted?

别等时光非礼了梦想. 提交于 2019-12-18 12:33:40
问题 I am trying to launch my custom receiver application from the Chrome browser. The first step in doing so appears to add a receiver listener for the activity type I'm interested in: cast_api = new cast.Api(); cast_api.addReceiverListener(activityType, onReceiverList); What should activityType be? I am able to put "YouTube" and "Netflix" and get a list of connected receivers, but when I put my whitelisted App-Id I do not get a list of Chromecast receivers. Is this something wrong with my

Does Chromecast support TTML?

烈酒焚心 提交于 2019-12-14 03:19:54
问题 The Chromecast developer docs say both WebVTT and TTML are Supported Media Types: https://developers.google.com/cast/supported_media_types I see captions when using a WebVTT file in a "track" tag within a video element: <video id="vid" src="http://myurl"> <track kind="captions" src="http://10.16.236.23/test.vtt" srclang="en" label="English" default> </video> But when I try to do the same using a valid TTML file, I don't see captions: <video id="vid" src="http://myurl"> <track kind="captions"

MediaRouter: Detecting a chromecast device when using ActionBarSherlock?

依然范特西╮ 提交于 2019-12-13 18:38:16
问题 So I modified the Mediarouter source to be dependent on ActionBarSherlock rather than AppCompat. However, now the callback from MediaRouteAdapter onDeviceAvailable(...) is not being called. Any ideas on how to get this to work? I don't want to leave the cast button always visible. Rather, I want to use onDeviceAvailable(..) to only make it visible when a device is available. 回答1: I found a hack on how to fix this. If you use appcompat, the cast icon will only be visible when you have a

Adding more fields in MediaMetada GoogleCast

£可爱£侵袭症+ 提交于 2019-12-13 18:26:48
问题 When I cast Video from android phone to Chromecast device, I want to add additional fields for my own application. But when I get this field from the API ( VideoCastManager.getRemoteMediaInformation() ). It always return null for String, zero for int. Here I use another field is MediaMetadata.KEY_ARTIST : MediaMetadata movieMetadata = new MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE); movieMetadata.putString(MediaMetadata.KEY_TITLE, video.getFullName()); movieMetadata.putString(MediaMetadata

Why my MediaRouteButton not available to find any cast devices?

谁说我不能喝 提交于 2019-12-13 17:57:01
问题 following are my codes in main activity public class MainActivity extends ActionBarActivity{ private MediaRouteButton mMediaRouteButton; private MediaRouteSelector mMediaRouteSelector; private MediaRouter mMediaRouter; private CastDevice mSelectedDevice; private MyMediaRouterCallback mMediaRouterCallback; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if(this.checkGooglePlaySevices(this)) Log.v(

Chromecast sender application error when requesting new session

杀马特。学长 韩版系。学妹 提交于 2019-12-13 07:59:02
问题 I have an unpublished custom receiver app, and I am unable to cast to it from my web player sender app in chrome. I do get the receiver "available" message upon initialization of cast api, but when I click on the cast button in player and select the chromecast device from drop down menu in extension, the TV screen goes black and few seconds later I get onError method called with following error: {code: "channel_error", description: "Error: Timeout", details: null} The casting works fine when