zarebin-player-library 1.0.38 → 1.0.39

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.
@@ -1143,7 +1143,7 @@ export type Ad = {
1143
1143
  mandatory_play_time: number;
1144
1144
  channel: number;
1145
1145
  banner?: string;
1146
- video_id?: number;
1146
+ video_id?: string;
1147
1147
  user_id?: number | null;
1148
1148
  content_id?: number;
1149
1149
  content_type?: number;
@@ -69106,18 +69106,13 @@ var VideoControls = ({ progress, buffered, duration, currentTime, showControls }
69106
69106
  //#endregion
69107
69107
  //#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/Advertisement.tsx
69108
69108
  var Advertisement = () => {
69109
- const { params, firstMute, adData, details } = useAppSelector(({ videoData: { params, adData, details }, controller: { firstMute } }) => ({
69109
+ const { params, firstMute, adData } = useAppSelector(({ videoData: { params, adData }, controller: { firstMute } }) => ({
69110
69110
  params,
69111
69111
  firstMute,
69112
- adData,
69113
- details
69112
+ adData
69114
69113
  }), shallowEqual);
69115
69114
  const dispatch = useAppDispatch();
69116
- const { progress, buffered, currentTime, duration, isPaused, skipCounter, hasSkip } = useVideoControls({
69117
- ...adData,
69118
- video_id: details.id,
69119
- user_id: details.user_id
69120
- }, params);
69115
+ const { progress, buffered, currentTime, duration, isPaused, skipCounter, hasSkip } = useVideoControls(adData, params);
69121
69116
  const containerRef = useRef(null);
69122
69117
  const { showControls, resetTimer } = useControlsVisibility(isPaused);
69123
69118
  useEffect(() => {
@@ -69252,8 +69247,8 @@ var VideoArea = () => {
69252
69247
  dispatch(setAdData({
69253
69248
  ...getRandomAd(ads),
69254
69249
  banner: details.banner,
69255
- video_id: details.id,
69256
- user_id: +params.user_id,
69250
+ video_id: params.id,
69251
+ user_id: details.user_id,
69257
69252
  content_id: details.content_id,
69258
69253
  content_type: +details.content_type
69259
69254
  }));