Created attachment 348990 [details] Alert that appears with test code. When using audio.duration on iOS, Mac, other Safari supported devices, it will return "Infinity." This occurs on iOS 12 and below. This can be easy to reproduce, with code, provided below. <audio id="audio" ontimeupdate="test()" src="myaudio.mp3"> <script> function test(){ let audio = document.getElementId("audio"); alert(audio.duration); } </script>
Hmm, I think this is probably not a JavaScriptCore issue. I'm gonna move this over to Media Elements.
<rdar://problem/44603907>
Stephen, could you attach the "myaudio.mp3" that triggers this behavior?
I cannot reproduce the bug on the latest version of iOS 12 with several mp3 files. If Stephen can provide the mp3 file he used to reproduce the bug, I would be happy to open this bug and investigate it.