MusicKit JS playback always fails at ~15 minutes

https://github.com/TTFM-Labs/public/issues/7

I've tried so many things to fix this. Reauthing does nothing. Modifying the config variables does nothing. Only thing I haven't tried is creating a whole new configuration every time the song changes, but even that will fail on long songs.

This seems to be a timeout of some form. I have no idea why there would be a 15 minute timeout, much less why no reauth attempt would be made. I have been entirely unable to find documentation of such a timeout
Update: Appears to be the widevine implementation of update. Safari works okay because it uses fairplay instead of widevine

Here's the function being called (note: works the first time) https://github.com/rdkcentral/OCDM-Widevine/blob/master/MediaSession.cpp#L204

The recursive call of _handleLicenseResponse inside of the _pendingRenewal setTimeout function on KeySession is the "source of evil" here. The first call seems to work fine. I was able to test this by knocking the time on that setTimeout down to a small value
we noticed this problem too in recent two weeks
MusicKit JS playback always fails at ~15 minutes
 
 
Q