From b643da0ebe879fab9ba7d0bf7add9049567dbcde Mon Sep 17 00:00:00 2001 From: GERMA Delphin Ext IMT/OLS Date: Thu, 26 Jul 2018 16:20:13 +0200 Subject: [PATCH] fix: Correction on "onupdatestatus" --- src/media/media.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/media/media.ts b/src/media/media.ts index 4976ed5..2c19903 100644 --- a/src/media/media.ts +++ b/src/media/media.ts @@ -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