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

Commit

Permalink
Merge pull request #25 from Orange-OpenSource/onupdatestatus#8
Browse files Browse the repository at this point in the history
fix: Correction on "onupdatestatus" #8
  • Loading branch information
juliendelage authored Jul 26, 2018
2 parents 3ab5885 + b643da0 commit 3c8028e
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 3c8028e

Please sign in to comment.