I'm using the program in the following demo for a personal project. https://mdn.github.io/web-dictaphone/ (more details: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API/Using_the_MediaStream_Recording_API)
However, every time I make a recording, the length doesn't show immediately. Nor does the download option (the three-dot thing on the right). the recording shown before I played it
I have to literally play the recording in order to make it show the recording duration and the download option. the recording shown after I played it
Is there a way to improve this?