Azure Media Service is used to deliver widevine license, I used shaka-packager with key-id and key-value get from license to package and encrypt video, and output two types of files, MPD, and MP4 encrypted video.
When I test the encrypted content with the Dash test player, everything works fine and without a license, I can not play video.
Then when I override policies and set license_duration_seconds = 1800
The player stops after 30 minutes and displays "DRM: KeyStatusChange error! -- License has expired"
However, when I click on Load again or refresh the page and use the same license and MPD URL, the same content plays again!
I'm not sure if I missed something when I package the video with shaka-player.
Is this the expected behavior?
When you "click on Load again or refresh the page", are you sure the player did not get a new Widevine license (hence another 30 min of playback window)?
Is this a browser app or native/non-browser app? The reason I ask this: not every Widevine environment supports persistent license. Android native app and Android Chrome support it. If you expect license re-use, persistent license is required and needs to be supported.