Skip to content

Commit

Permalink
Fix: Incorrect parameter with progress event on html instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Jul 26, 2024
1 parent a84c214 commit 6dbbba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htmlaudio/HTMLAudioInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class HTMLAudioInstance extends EventEmitter implements IMediaInstance
{
this._source.currentTime = start;
this._source.onloadedmetadata = null;
this.emit('progress', start, this._duration);
this.emit('progress', start / this._duration, this._duration);
Ticker.shared.add(this._onUpdate, this);
}
};
Expand Down

0 comments on commit 6dbbba9

Please sign in to comment.