1

Right now using the cast reference player I pass Infinity as the second parameter on cast.player.api.Player.load() when I want to play live content. How can I accomplish that with the CAF receiver?

Thanks.

casolorz
  • 8,486
  • 19
  • 93
  • 200

1 Answers1

1

You should use chrome.cast.media.StreamType.LIVE as the media type in the load request.

Leon Nicholls
  • 4,623
  • 2
  • 16
  • 17
  • Can I do it on the sernder on the `setStreamType()` method of `MediaInfo`? – casolorz Apr 09 '18 at 20:02
  • I'm doing this on `setStreamType()` but it isn't working. – casolorz Apr 19 '18 at 04:14
  • I think the answer might be `startAbsoluteTime` but it doesn't seem to work with `Infinity`. – casolorz Apr 19 '18 at 04:31
  • If you are still experiencing issues, file a bug and provide a sample stream: https://issuetracker.google.com/issues?q=componentid:190205%20status:open&s=modified_time:desc – Leon Nicholls Apr 20 '18 at 15:38
  • It is filed but with a sample that isn't exactly live since live events end but it is a good long chunk of a live stream. – casolorz Apr 20 '18 at 15:47
  • You should be able to do it either at the sender level or modify the `mediaInfo` object when you get a `LoadRequest`. https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages.MediaInformation#streamType – oferrero May 18 '18 at 03:43