Skip to content

Commit

Permalink
Fix: Incorrect parameter with progress event on html instance (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Jul 26, 2024
1 parent a84c214 commit 16f154c
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 16f154c

Please sign in to comment.