zarebin-player-library 1.0.36 → 1.0.37

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.
@@ -93,7 +93,7 @@ export interface IParams {
93
93
  homeButtonClickFlag?: number | null;
94
94
  ad?: {
95
95
  adUserId: string;
96
- onAdView?: () => void;
96
+ onAdView?: (ad: Ad) => void;
97
97
  } | undefined;
98
98
  redirectOnEndedUrl?: string;
99
99
  lang?: "ar" | "fa" | "en";
@@ -68934,7 +68934,7 @@ var useVideoControls = (ad, params) => {
68934
68934
  setIsCounting(true);
68935
68935
  setIsPaused(false);
68936
68936
  if (firstPlayRef.current) {
68937
- params.ad.onAdView();
68937
+ params.ad.onAdView(ad);
68938
68938
  setFirstPlay(false);
68939
68939
  }
68940
68940
  };