custom-receiver

Unexpected connected message for already connected sender

自古美人都是妖i 提交于 2019-12-24 12:17:16
问题 I'm developing a custom cast receiver based on Cast-Player-Sample. I'm getting "Unexpected connected message for already connected sender" and "Unexpected sender already registered". Why? I can't figure it out why I'm getting this. How can I track this down? What is triggering this? More screen shots comparing mine version with Cast-Player-Sample : Mine Sample 回答1: I think I figured it out. I used the player.js code from Cast-Player-Sample without modifying anything and I still would see

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

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

Spark Streaming: how not to restart receiver after receiver's failure

强颜欢笑 提交于 2019-12-01 13:21:29
问题 We are using a custom spark receiver that reads streamed data from a provided http link. If the provided http link is incorrect, the receiver fails. The problem is that spark will continuously restart the receiver, and the application will never terminate. The question is how to tell Spark to terminate the application if the receiver fails. This is an extract of our custom receiver: def onStart() { // Start the thread that receives data over a connection new Thread("Receiver") { override def