zarebin-player-library 1.0.38 → 1.1.0
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.
|
@@ -12728,9 +12728,8 @@ var useGetMarkers = () => {
|
|
|
12728
12728
|
var useGetPlayList = () => {
|
|
12729
12729
|
const dispatch = useAppDispatch();
|
|
12730
12730
|
const { isFetchDetails } = useAppSelector(({ videoData: { isFetchDetails } }) => ({ isFetchDetails }), shallowEqual);
|
|
12731
|
-
const { loadedFragmentsCount } = useAppSelector(({ controller: { loadedFragmentsCount } }) => ({ loadedFragmentsCount }), shallowEqual);
|
|
12732
12731
|
useEffect(() => {
|
|
12733
|
-
if (conditions(ConditionName.getPlayList)
|
|
12732
|
+
if (conditions(ConditionName.getPlayList)) {
|
|
12734
12733
|
const handleGetPlayList = async () => {
|
|
12735
12734
|
const { data, status } = await getPlaylistHeader(API().playList);
|
|
12736
12735
|
if (responseValidator(status)) {
|
|
@@ -12748,7 +12747,7 @@ var useGetPlayList = () => {
|
|
|
12748
12747
|
};
|
|
12749
12748
|
handleGetPlayList();
|
|
12750
12749
|
}
|
|
12751
|
-
}, [isFetchDetails
|
|
12750
|
+
}, [isFetchDetails]);
|
|
12752
12751
|
};
|
|
12753
12752
|
//#endregion
|
|
12754
12753
|
//#region src/videoPlayerLibrary/shared/helpers/hooks/useGetData/useGetProfile.tsx
|
|
@@ -12797,13 +12796,12 @@ var useGetRecommendationList = () => {
|
|
|
12797
12796
|
isFetchDetails,
|
|
12798
12797
|
params
|
|
12799
12798
|
}), shallowEqual);
|
|
12800
|
-
const { loadedFragmentsCount } = useAppSelector(({ controller: { loadedFragmentsCount } }) => ({ loadedFragmentsCount }), shallowEqual);
|
|
12801
12799
|
useEffect(() => {
|
|
12802
|
-
if (conditions(ConditionName.getRecommendationList)
|
|
12800
|
+
if (conditions(ConditionName.getRecommendationList)) (async () => {
|
|
12803
12801
|
const { data, status } = await apiCaller({ url: API().recommendationList() });
|
|
12804
12802
|
if (responseValidator(status)) dispatch(setRecommendationList(data));
|
|
12805
12803
|
})();
|
|
12806
|
-
}, [isFetchDetails
|
|
12804
|
+
}, [isFetchDetails]);
|
|
12807
12805
|
};
|
|
12808
12806
|
//#endregion
|
|
12809
12807
|
//#region src/videoPlayerLibrary/shared/helpers/hooks/useGetData/useUserSettings.tsx
|
|
@@ -69106,18 +69104,13 @@ var VideoControls = ({ progress, buffered, duration, currentTime, showControls }
|
|
|
69106
69104
|
//#endregion
|
|
69107
69105
|
//#region src/videoPlayerLibrary/shared/ui/src/components/advertisement/Advertisement.tsx
|
|
69108
69106
|
var Advertisement = () => {
|
|
69109
|
-
const { params, firstMute, adData
|
|
69107
|
+
const { params, firstMute, adData } = useAppSelector(({ videoData: { params, adData }, controller: { firstMute } }) => ({
|
|
69110
69108
|
params,
|
|
69111
69109
|
firstMute,
|
|
69112
|
-
adData
|
|
69113
|
-
details
|
|
69110
|
+
adData
|
|
69114
69111
|
}), shallowEqual);
|
|
69115
69112
|
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);
|
|
69113
|
+
const { progress, buffered, currentTime, duration, isPaused, skipCounter, hasSkip } = useVideoControls(adData, params);
|
|
69121
69114
|
const containerRef = useRef(null);
|
|
69122
69115
|
const { showControls, resetTimer } = useControlsVisibility(isPaused);
|
|
69123
69116
|
useEffect(() => {
|
|
@@ -69252,8 +69245,8 @@ var VideoArea = () => {
|
|
|
69252
69245
|
dispatch(setAdData({
|
|
69253
69246
|
...getRandomAd(ads),
|
|
69254
69247
|
banner: details.banner,
|
|
69255
|
-
video_id:
|
|
69256
|
-
user_id:
|
|
69248
|
+
video_id: params.id,
|
|
69249
|
+
user_id: details.user_id,
|
|
69257
69250
|
content_id: details.content_id,
|
|
69258
69251
|
content_type: +details.content_type
|
|
69259
69252
|
}));
|