How to keep a blobURL from localStorage useful even if browser memory and session expires?

I found this article which teaches how to record an mp3 in your computer using ReactJS. So I copied it and refactored it a little here. After refactoring it into a functional component on stackblitz, I copied it on my original code. Afterwards, I implemented Redux to save the state and also persisted the blobURL on localStorage so that even if I refresh, it could still find it and play it.

PHP Function to get MP3 duration

Is there any PHP function that will give me the MP3 duration. I looked at ID 3 function but i don’t see any thing there for duration and apart from this,id3 is some kind of tag,which will not be there in all MP3 so using this will not make any sense.