stream-engine-player 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -43277,7 +43277,7 @@ var require_stream_engine_player = __commonJS({
43277
43277
  default: videojs$1
43278
43278
  }, Symbol.toStringTag, { value: "Module" }));
43279
43279
  const name$1 = "stream-engine-player";
43280
- const version$2 = "0.0.12";
43280
+ const version$2 = "0.0.13";
43281
43281
  const description = "Stream engine player";
43282
43282
  const type$1 = "module";
43283
43283
  const files$1 = [
@@ -59231,7 +59231,10 @@ var require_stream_engine_player = __commonJS({
59231
59231
  if (options.muxKey && player.mux) {
59232
59232
  initMux(player, options);
59233
59233
  }
59234
- new PlayerTracker(player, options);
59234
+ this.tracker = new PlayerTracker(player, options);
59235
+ },
59236
+ trackAds: function() {
59237
+ this.tracker.trackAds();
59235
59238
  }
59236
59239
  });
59237
59240
  plugin.pluginName = "analytics";
@@ -66117,7 +66120,7 @@ var require_stream_engine_player = __commonJS({
66117
66120
  player.info = {};
66118
66121
  player.vfhls = {};
66119
66122
  player.transparent = !!scope.options.transparent;
66120
- player.analytics(scope.options.analytics);
66123
+ let analyticsPlugin = player.analytics(scope.options.analytics);
66121
66124
  let imaOptions = {
66122
66125
  adTagUrl: scope.options.adTagUrl,
66123
66126
  adsManagerLoadedCallback
@@ -66510,6 +66513,7 @@ var require_stream_engine_player = __commonJS({
66510
66513
  player.removeClass("vjs-ad-paused");
66511
66514
  }
66512
66515
  );
66516
+ analyticsPlugin.trackAds();
66513
66517
  let isLoop = false;
66514
66518
  player.on("adstart", () => {
66515
66519
  try {