Updating sound duration only if it is not set yet (equal to 0)

This commit is contained in:
Pavle Goloskokovic 2018-04-14 18:54:01 +02:00
parent d664a7d4a6
commit 920e083a8a

View file

@ -227,7 +227,11 @@ var HTML5AudioSoundManager = new Class({
{
this.forEachActiveSound(function (sound)
{
sound.duration = sound.tags[0].duration;
if(sound.duration === 0)
{
sound.duration = sound.tags[0].duration;
}
sound.totalDuration = sound.tags[0].duration;
});