I already briefly mentioned this in #15,, but I thought I'd make a separate issue for this since I couldn't figure out how to solve it even with a custom audio player (see #18). Basically, sometimes, the duration of an audio would be reported wrongly. Either as being longer than it actually is, or, and I've seen this with most stream archives, it'll be reported as being shorter than it actually is. The amount by which it's wrong is the worst in Firefox, for example it shows an audio that is a bit over a minute long as being 51 minutes long in Firefox, while in Chromium it shows it as being 2 minutes 20 seconds. Those audios still play just fine, including the parts that are after the reported duration in the case of the reported duration being too short, it's just the duration reported by browsers that is wrong. I've seen this both in my dev environment and on the main audiopub.site instance.
Some things I've tried:
- Testing with what file formats it happens (including video formats): it happens with everything
- Tested in multiple browsers: happens in all of them, but it's the worst in Firefox
- Adding a server side check for audio duration using ffprobe in various ways then using that instead of what the browser reports: this worked very well, except when ffprobe and the browser would disagree a bit too much which would result in weird behavior such as the ending being cut off
There has to be some way to solve this since big platforms never have this problem. I just haven't figured out what it is so I'm opening an issue here in hopes of someone else looking into it and possibly figuring it out.
I already briefly mentioned this in #15,, but I thought I'd make a separate issue for this since I couldn't figure out how to solve it even with a custom audio player (see #18). Basically, sometimes, the duration of an audio would be reported wrongly. Either as being longer than it actually is, or, and I've seen this with most stream archives, it'll be reported as being shorter than it actually is. The amount by which it's wrong is the worst in Firefox, for example it shows an audio that is a bit over a minute long as being 51 minutes long in Firefox, while in Chromium it shows it as being 2 minutes 20 seconds. Those audios still play just fine, including the parts that are after the reported duration in the case of the reported duration being too short, it's just the duration reported by browsers that is wrong. I've seen this both in my dev environment and on the main audiopub.site instance.
Some things I've tried:
There has to be some way to solve this since big platforms never have this problem. I just haven't figured out what it is so I'm opening an issue here in hopes of someone else looking into it and possibly figuring it out.