oralodabas / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Chromecast API - statusupdatelistener callback delay issue #480

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm working on chromecast apps and observed below issues while debugging the 
sender app:

If I schedule an event at specific time, the event is applied with some delay 
in chromecast and also it was notifying to statusupdate listener about 600 
milliseconds late.

Let me explain with an example:

    1.Suppose we have an event at ’00:21:33:400’ (hh:mm:ss:ms), when we trigger the event exactly at specific given time we observed that it is applied late in Chromecast (approximately 600 milliseconds) that is the reason we are triggering event signals 600 milliseconds before the exact event time.

    2.And also observed that sometimes chromecast device is notifying the media status updates very late (i.e.. not triggering the ‘StatusUpdate’ callback) when event applied. Due to this app may not schedule the successive event if chromecast is updated with the streaming position which is greater than the next event start time. That is if next event is there at ’00:21:34:100’ time and if chromecast is notified with the streaming position ‘00:21:34:300’, in this case app will ignore the event and schedule/find the next successive event which is greater than the ‘00:21:34:300’ streaming position.

Actually I'm using default receiver application to play the video (using 
CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID). 

For (1) My main intention is to apply mute/un-mute events at specific given 
time codes. Sender application will send mute/un-mute messages to chromecast 
device but they are applying very late. 

For (2) When any event (mute/un-mute) executed in chromecast device my sender 
app should be notified to StatusUpdateListener immediately where in which I'm 
scheduling the next event to be applied. But StatusUpdateListener is calling 
very late after the event executed.

My sender application should be notified as soon as any mute/un-mute event is 
executed in 'default receiver' app running in chromecast. Actually I'm getting 
this delay only when sender app is in background whereas it is working fine in 
foreground, I tried to acquire WifiLock and WakeLock but still no use. 

I have tried a lot to fix this issue, Can you please help me out on this.

Original issue reported on code.google.com by someswar...@gmail.com on 8 Jan 2015 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by na...@google.com on 8 Jan 2015 at 6:05