google-cast

Android Chomecast Sender App: MediaRouteActionProvider

倾然丶 夕夏残阳落幕 提交于 2019-12-11 09:27:12
问题 I have a problem with a Chromecast sender app for Android. This is my second sender app so, generally speaking, I have the basics down. What is right: When I run the app directly from Eclipse, it works on both of my test devices. When I run the app directly from Android Studio, it works on both of my test devices. The problem: When I generate a signed APK through BOTH Eclipse and Android Studio, the app crashes when it reaches the “cast activity” on both devices. The logcat error is as

Chromecast Receiver CAF, infinite loading of MPEG-DASH stream, ShakaPlayer access

醉酒当歌 提交于 2019-12-11 07:43:32
问题 I've got a problem with Chromecast playing MPEG-DASH livestream. The infinite loading occurs because of the lack of UTCTiming tag in manifest. The problem is known to occur with ShakaPlayer. It's the first problem in FAQ: https://github.com/google/shaka-player/blob/master/docs/tutorials/faq.md On chromecast however, i can't access the ShakaPlayer directly (or maybe there is a way that i'm not familiar with). There are 2 solutions to the problem that i can think of: Modify manifest dynamically

Chromecast sender as a PlayReady license provider

混江龙づ霸主 提交于 2019-12-11 07:37:31
问题 Let's assume we have an encrypted stream (SmoothStreaming + Playready) and a custom receiver build on googlecast/cast-custom-receiver. I can see that device tries to get the license from the LA_URL (license acquisition URL) - extracted from stream PlayReady ProtectionHeader . I wonder is there a way to override this behaviour? I want receiver to delegate license acquisition to sender - iOS app in my case. 回答1: When you are setting up a Host, you can pass a licenseUrl (see here), I think if

CAF Receiver, shutdown handling

橙三吉。 提交于 2019-12-11 06:38:39
问题 i'm trying to add logic to the shutdown event on my receiver app but every time the sender disconnects, debugger just closes and no logic is executed (like sending some HttpRequests). My piece of code: this.context.addEventListener( cast.framework.system.ShutdownEvent, e => { this._sendStats(); }); Also tried cast.framework.system.SHUTDOWN and cast.framework.system.SENDER_DISCONNECTED . Is there other way to get the expected result (executing logic on apps shutdown) 回答1: You need to use the

Can not access Chromecast receiver debug page by http://chromecastIP:9222?

早过忘川 提交于 2019-12-11 06:35:36
问题 In my whitelist process, I submit the requests and didn't get response email, so submit a fews days later again. Then one day received 3 response emails with 3 different URLs. However, I still can't see the receiver debug page [http://192.168.1.101:9222](this is my chromecast local IP), where did I miss? The device lists are empty in my sender app too. Thanks a lot! 来源: https://stackoverflow.com/questions/21425388/can-not-access-chromecast-receiver-debug-page-by-http-chromecastip9222

How to stream SHOUTcast radio streams on Chromecast receiver

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:57:59
问题 We have a Android radio app which plays various live radio streams. It works pretty well with Google Chromecast as log the stream is a "normal" mp3 stream. The playback on Chromecast Styled Media Receiver is NOT working with SHOUTcast streams i.e http://46.105.118.14:13500 . After mRemoteMediaPlayer.load(...) I see in my Android LogCat a result statuscode = 1 . In Chrome debug console I see the following Load metadata error : [673.080s] [cast.receiver.MediaManager] Load metadata error cast

remoteMediaPlayer.requestStatus(…) returns statusCode SIGN_IN_REQUIRED

独自空忆成欢 提交于 2019-12-11 03:33:30
问题 I have a radio application which plays live radio stations on Google Chromecast. Starting a stream with remoteMediaPlayer.load(...) works just fine. But remoteMediaPlayer.requestStatus(...) for later stopping the stream says statusCode=SIGN_IN_REQUIRED and throws a IllegalStateException: No current media session Why can't I stop the playing live radio stream? Or how can I stop the remoteMediaPlayer playback? The live radio streams are HTTP. Can it be the problem? Here the details: The

Enqueue multiple media items

做~自己de王妃 提交于 2019-12-11 03:30:08
问题 Can I enqueue multiple tracks to be played on a chromecast receiver app one by one? I just want to play a simple playlist. So i enqueue 5 tracks, my iOS client goes into background mode when playing the second track, and I want my chromecast receiver app to play the remaining 3 tracks. Is this possible? Actually it's comments to the loadMedia:autoplay: that make me think that this should be possible: /** * Loads, **enqueues (at the end of the queue)**, and optionally starts playback of a new

I used to be able to get a receiver list in the Chromecast beta, now I can't… Am I missing something?

给你一囗甜甜゛ 提交于 2019-12-10 23:08:28
问题 When I wrote a simple Chrome (Browser) Chromecast app in the beta a few months ago, I was able to get a list of receivers through Javascript, and then prompt the user to select the device. Now I can't seem to do this, and I can't figure out how to do this by reading the API docs. It seems that the only thing I can do is hope and pray that my user figures out how to click the chromecast button in the browser. Youtube, however, has a chromecast button right next to the video. I'd like to do the

How to stop casting when another app starts casting?

房东的猫 提交于 2019-12-10 22:46:56
问题 I run two applications, both of which use Cast SDK v2 and the Remote Display API. I start casting from App #1, then go to App #2, press the cast button and select a route. Expected: App #2 starts casting, App #1 stops casting. Actual: Immediately after I select a route, App #2's MediaRouter.Callback.onRouteUnselected() is called. Neither app's content shows up on the receiver, but App #1's notification controller remains. I haven't seen this behavior in Cast SDK v3. Is there any way in Cast