Skip to content

Commit

Permalink
fix(FEC-13039): ignore playbackRates not included in list (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura authored Mar 16, 2023
1 parent 3ec538c commit 43e75e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@ class Kava extends BasePlugin {
}

_onPlaybackRateChanged(): void {
this._sendAnalytics(KavaEventModel.SPEED);
if (!this.player.playbackRates.length || this.player.playbackRates.includes(this.player.playbackRate)) {
this._sendAnalytics(KavaEventModel.SPEED);
}
}

_onPlayerStateChanged(event: FakeEvent): void {
Expand Down

0 comments on commit 43e75e2

Please sign in to comment.