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.
If you want to prevent the Shaka player Chromecast plugin from requesting the Widevine license more than once, you can use persistent license request. This means that the plugin requests the license once and reuses it for the duration of the playback. To enable persistent license requests, you can set the "persistentStateRequired" property to true in the player configuration.
Something like this
The persistentStateRequired property can be set to true in the player.configure() method to enable persistent license requests. This tells the plugin to request the Widevine license once and reuse it for the duration of the playback.
Refer to the documentation https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.PlayerConfiguration
and this in particular
AdvancedDrmConfiguration
persistentStateRequired boolean Defaults to false. True if the application requires the key system to support persistent state, e.g., for persistent license storage.
Search for persistentState in the code https://shaka-player-demo.appspot.com/docs/api/externs_shaka_player.js.html