@npo/player 1.23.1 → 1.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/npoplayer.js CHANGED
@@ -163,12 +163,11 @@ export default class NpoPlayer {
163
163
  const initAndStartTracker = () => {
164
164
  if (this.player === null)
165
165
  return;
166
- this.player?.off(PlayerEvent.SourceLoaded, initAndStartTracker);
167
166
  this.player?.off(PlayerEvent.AdBreakFinished, initAndStartTracker);
168
167
  this.player?.off(PlayerEvent.AdError, initAndStartTracker);
169
168
  streamDuration =
170
169
  streamDuration == undefined
171
- ? this.player?.on(PlayerEvent.Ready, getDurationAndStartPlayerTracker)
170
+ ? getDurationAndStartPlayerTracker()
172
171
  : startPlayerTracker(this, getStreamDurationInSeconds({ duration: streamDuration, durationIsInMs: true }), this.version, streamPrid);
173
172
  };
174
173
  if (this.variant !== NpoPlayerUIVariants.AUDIO &&
@@ -179,7 +178,7 @@ export default class NpoPlayer {
179
178
  await handlePreRolls(this.player, this.streamObject, this);
180
179
  }
181
180
  else {
182
- this.player.on(PlayerEvent.Ready, initAndStartTracker);
181
+ initAndStartTracker();
183
182
  }
184
183
  }
185
184
  else {
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npo/player",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "description": "NPO Player",
5
5
  "author": "Publieke Omroep <player@npo.nl>",
6
6
  "contributors": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npo/player",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "description": "NPO Player",
5
5
  "author": "Publieke Omroep <player@npo.nl>",
6
6
  "contributors": [