@brndts/brndts-ads 1.14.5 → 1.14.6

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/dist/index.mjs CHANGED
@@ -74084,6 +74084,9 @@ var YoutubeMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74084
74084
  this.instance = event.target;
74085
74085
  this.ready = true;
74086
74086
  this.observeResize();
74087
+ if (this._source && this._source.type === "playlist") {
74088
+ this._source.videoId = this.videoId;
74089
+ }
74087
74090
  this.context.store.dispatch({
74088
74091
  type: "READY"
74089
74092
  });
@@ -84493,7 +84496,7 @@ var VideoAd = /*#__PURE__*/ function() {
84493
84496
  {
84494
84497
  key: "handleInfo",
84495
84498
  value: function handleInfo(data) {
84496
- var _this_presentation;
84499
+ var _this_presentation, _this_presentation1;
84497
84500
  if (!data.video) {
84498
84501
  ErrorHandler.handle(new InternalError("Setup failed: no video identifier"));
84499
84502
  return;
@@ -84528,6 +84531,7 @@ var VideoAd = /*#__PURE__*/ function() {
84528
84531
  ts: 0
84529
84532
  });
84530
84533
  (_this_presentation = this.presentation) === null || _this_presentation === void 0 ? void 0 : _this_presentation.setup();
84534
+ (_this_presentation1 = this.presentation) === null || _this_presentation1 === void 0 ? void 0 : _this_presentation1.start();
84531
84535
  }
84532
84536
  },
84533
84537
  {