zarebin-player-library 1.1.5 → 1.1.7

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.
@@ -445,8 +445,8 @@ export type Ad = {
445
445
  mandatory_play_time: number;
446
446
  channel: number;
447
447
  banner?: string;
448
- video_id?: number;
449
- user_id?: number;
448
+ video_id?: string;
449
+ user_id?: number | null;
450
450
  content_id?: number;
451
451
  content_type?: number;
452
452
  };
@@ -68927,7 +68927,7 @@ var useVideoControls = (ad, params) => {
68927
68927
  setIsCounting(true);
68928
68928
  setIsPaused(false);
68929
68929
  if (firstPlayRef.current) {
68930
- params.ad.onAdView();
68930
+ params.ad.onAdView(ad);
68931
68931
  setFirstPlay(false);
68932
68932
  }
68933
68933
  };
@@ -69039,7 +69039,7 @@ var SkipButton = ({ skipCounter }) => {
69039
69039
  //#endregion
69040
69040
  //#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/UnMuteVideo.tsx
69041
69041
  var UnMuteVideo = ({ advertisement }) => /* @__PURE__ */ jsxs("div", {
69042
- className: `pl-flex pl-cursor-pointer pl-items-center pl-rounded-[4px] pl-bg-gray-500 ${!advertisement ? "pl-absolute -pl-left-2 pl-top-[60px]" : ""} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-1 pl-px-2 pl-py-[10px]" : "!pl-left-8 pl-gap-2 pl-p-3"} ${conditions(ConditionName.isTouchScreen) && "pl-mx-4"}`,
69042
+ className: `pl-flex pl-cursor-pointer pl-items-center pl-rounded-lg pl-bg-gray-500 ${!advertisement ? "pl-absolute -pl-left-2 pl-top-[60px]" : ""} ${conditions(ConditionName.isTouchScreen) ? "pl-gap-1 pl-px-2 pl-py-[10px]" : "!pl-left-8 pl-gap-2 pl-p-3"} ${conditions(ConditionName.isTouchScreen) && "pl-mx-4"}`,
69043
69043
  children: [/* @__PURE__ */ jsx("img", {
69044
69044
  src: IMAGES.mute,
69045
69045
  alt: "mute icon",
@@ -69230,8 +69230,8 @@ var VideoArea = () => {
69230
69230
  dispatch(setAdData({
69231
69231
  ...getRandomAd(ads),
69232
69232
  banner: details.banner,
69233
- video_id: details.id,
69234
- user_id: +params.user_id,
69233
+ video_id: params.id,
69234
+ user_id: details.user_id,
69235
69235
  content_id: details.content_id,
69236
69236
  content_type: +details.content_type
69237
69237
  }));