Our license server enables the JWT JTI key for anti-replays, on our chomecast we see the device is requesting the license more than twice ( if it was twice I could look at maybe the first request is for the server certificate - but for chromecast this is not a thing it seems) which triggers the JTI anti replay. I see that the current version of the cast firmware uses shaka 3.2.0 and that there was a fix for this issue for Widevine ( or similar ) done for 3.0.2.
Wondering if someone as solved a similar issue on a chromecast where the player is requesting the license more than once ?
thanks
Expect the chromecast player to request license once.
Unless the license is cached (persisted) in the app, Widevine makes two separate requests for every asset:
On first inspection they appear very similar, and might lead you to believe they are duplicates, but if you look at the payload, service certificate requests are smaller in size (~2 bytes) compared to license requests.
How to preload Widevine service certificates in Shakaplayer: https://github.com/shaka-project/shaka-player/blob/6513ac056e5fd3ee9aecbb234c724119b058ef8d/docs/tutorials/widevine-service-certs.md