zarebin-player-library 1.0.37 → 1.0.38
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,13 +69106,18 @@ 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 } = useAppSelector(({ videoData: { params, adData }, controller: { firstMute } }) => ({
|
|
69109
|
+
const { params, firstMute, adData, details } = useAppSelector(({ videoData: { params, adData, details }, controller: { firstMute } }) => ({
|
|
69110
69110
|
params,
|
|
69111
69111
|
firstMute,
|
|
69112
|
-
adData
|
|
69112
|
+
adData,
|
|
69113
|
+
details
|
|
69113
69114
|
}), shallowEqual);
|
|
69114
69115
|
const dispatch = useAppDispatch();
|
|
69115
|
-
const { progress, buffered, currentTime, duration, isPaused, skipCounter, hasSkip } = useVideoControls(
|
|
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);
|
|
69116
69121
|
const containerRef = useRef(null);
|
|
69117
69122
|
const { showControls, resetTimer } = useControlsVisibility(isPaused);
|
|
69118
69123
|
useEffect(() => {
|