@mottosports/motto-video-player 1.0.1-rc.72 → 1.0.1-rc.73

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.js CHANGED
@@ -1245,7 +1245,7 @@ var supportsWidevinePersistentLicenses = () => {
1245
1245
  var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
1246
1246
 
1247
1247
  // package.json
1248
- var version = "1.0.1-rc.72";
1248
+ var version = "1.0.1-rc.73";
1249
1249
 
1250
1250
  // src/utils/licenseCache.ts
1251
1251
  var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
@@ -4254,7 +4254,7 @@ var Player = (0, import_react13.forwardRef)(
4254
4254
  adsRequest.adTagUrl = imaConfig.adTagUrl;
4255
4255
  adManager.requestClientSideAds(adsRequest);
4256
4256
  setupAdEventListeners();
4257
- await new Promise((resolve) => setTimeout(resolve, 1e4));
4257
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
4258
4258
  await loadManifest();
4259
4259
  } catch (error) {
4260
4260
  console.error("Error initializing ads:", error);
@@ -5040,6 +5040,7 @@ var Event = ({
5040
5040
  const [activePlaylist, setActivePlaylist] = (0, import_react16.useState)();
5041
5041
  const [activeVideoId, setActiveVideoId] = (0, import_react16.useState)();
5042
5042
  const videoIds = eventData?.videoIds ?? [];
5043
+ console.log("adsEnabled", adsEnabled);
5043
5044
  const {
5044
5045
  data: videosData,
5045
5046
  isLoading: videosIsLoading,
@@ -5054,6 +5055,7 @@ var Event = ({
5054
5055
  retry: queryOptions.retry ?? 3,
5055
5056
  retryDelay: queryOptions.retryDelay ?? ((attemptIndex) => Math.min(1e3 * 2 ** attemptIndex, 3e4))
5056
5057
  });
5058
+ console.log("videosData", videosData);
5057
5059
  const [loadingApisState, setLoadingApisState] = (0, import_react16.useState)(true);
5058
5060
  (0, import_react16.useEffect)(() => {
5059
5061
  if (videosData !== void 0) {
@@ -5157,6 +5159,7 @@ var Event = ({
5157
5159
  }
5158
5160
  if (activePlaylist && activeVideoId && videosData) {
5159
5161
  const activeVideo = videosData.find((video) => video.id === activeVideoId);
5162
+ console.log("activeVideo?.ad?.adTagUrl", activeVideo?.ad?.adTagUrl);
5160
5163
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: (0, import_tailwind_merge4.twMerge)("", className), children: [
5161
5164
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "relative w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
5162
5165
  Player,