Calculating the audio duration can be difficult on many file formats (or not defined at all), and while we'd like player backends to implement it, we'd rather have a player that can't report duration than no player at all.
UI components should check whether audioElement.duration is null, and disable progress bars and seeking if so
WebAudioPlayer needs to be updated to avoid using self.duration in its 'end of track' calculations (or alternatively, it should populate self.duration as soon as the end of buffer is encountered and the duration is therefore known).
Calculating the audio duration can be difficult on many file formats (or not defined at all), and while we'd like player backends to implement it, we'd rather have a player that can't report duration than no player at all.
WebAudioPlayer
needs to be updated to avoid usingself.duration
in its 'end of track' calculations (or alternatively, it should populateself.duration
as soon as the end of buffer is encountered and the duration is therefore known).