What is the equivalent of cast.player.api.Player live stream options on CAF receiver?

367 views Asked by At

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.

2

There are 2 answers

0
Aparna Rvd On

Try this:

playerManager.setMessageInterceptor(
    cast.framework.messages.MessageType.LOAD, function (loadRequestData) {
    loadRequestData.currentTime = Infinity;
    return loadRequestData;
    }
);

https://issuetracker.google.com/issues/78293897?pli=1

6
Leon Nicholls On

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