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.
|
@@ -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
|
|
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:
|
|
69256
|
-
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
|
}));
|