zarebin-player-library 1.0.39 → 1.1.1

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) && conditions(ConditionName.hasPermittedLoadedFragment)) {
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, loadedFragmentsCount.length]);
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) && conditions(ConditionName.hasPermittedLoadedFragment)) (async () => {
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, loadedFragmentsCount.length]);
12804
+ }, [isFetchDetails]);
12807
12805
  };
12808
12806
  //#endregion
12809
12807
  //#region src/videoPlayerLibrary/shared/helpers/hooks/useGetData/useUserSettings.tsx
@@ -68965,6 +68963,7 @@ var useVideoControls = (ad, params) => {
68965
68963
  video.addEventListener("progress", handleProgress);
68966
68964
  video.addEventListener("timeupdate", handleTimeUpdate);
68967
68965
  (async () => {
68966
+ if (!conditions(ConditionName.hasAd)) await handleFullScreen();
68968
68967
  await handleLockOrientation();
68969
68968
  const playPromise = video.play();
68970
68969
  dispatch(setPlay(true));