Problem with getting audio duration from blob in Chrome, Safari
I try to record audio and get the duration of the audio from blub using loadedmetadata event in Promise. It works well in Firefox. But Chrome returns duration as Infinity. iPhone cannot even load audio metadata from blob. What is the problem. If I try to get audio duration for file selected from local device instead of the blob file from media recorder, these codes work in Chrome and iPhone Safari. What is the problem? How to get audio duration from blob file?