0

I need to know the chromecast current position when playing a live dash stream. For testing I am using this akamai stream.

I tried to use RemoteMediaClient.getApproximateStreamPosition() but it only gives me the time since the stream was loaded by chromecast. It works well for VOD.

I then created a simple WebReceiver application to see if would be possible to have some information about the current position. From PlayerManager it is possible to call getCurrentTimeSec together with getAbsoluteTimeForMediaTime to obtain the absolute position in seconds.

However when I compare the value from

PlayerManager.getAbsoluteTimeForMediaTime(PlayerManager.getCurrentTimeSec())

with what I see on chromecast the value is offset (advanced) by around 3 seconds. I also tried another stream and the offset was around 5 seconds.

So my question is how can I know the chromecast's correct absolute current position for live streams?

Rui Rodrigues
  • 382
  • 5
  • 20

0 Answers0