Skip to content

Commit b452859

Browse files
Assigning duration and totalDuration values to audio tag duration
1 parent 1d92510 commit b452859

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var HTML5AudioSound = new Class({
2525
* @default null
2626
*/
2727
this.audio = null;
28+
this.duration = this.tags[0].duration;
29+
this.totalDuration = this.tags[0].duration;
2830
BaseSound.call(this, manager, key, config);
2931
}
3032
});

0 commit comments

Comments
 (0)