Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix: Correction on "onupdatestatus"
Browse files Browse the repository at this point in the history
  • Loading branch information
GERMA Delphin Ext IMT/OLS authored and GERMA Delphin Ext IMT/OLS committed Jul 26, 2018
1 parent 3ab5885 commit b643da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/media/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ export abstract class Media {

// Dispatch Event If Needed
if (previousStatus !== this.mediaElement.status) {
this.mediaChannel.onUpdateStatus(this.mediaElement.status);
this.lastUpdate = newUpdate;
this.mediaChannel.onUpdateStatus(this.getPlaybackStatus());
} else if (
this.updateFrequency !== 0 &&
newUpdate > this.lastUpdate + this.updateFrequency * 1000
Expand Down

0 comments on commit b643da0

Please sign in to comment.