zarebin-player-library 1.0.26 → 1.0.28

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.
@@ -122,6 +122,7 @@ export interface IDetails {
122
122
  duration: number;
123
123
  time_machine: number | null;
124
124
  is_360: boolean;
125
+ vod_max_display_resolution: string | null;
125
126
  }
126
127
  export interface IDownloadLinks {
127
128
  quality: string;
@@ -10627,50 +10627,50 @@
10627
10627
  }
10628
10628
  }.animate__slideOutUp {
10629
10629
  animation-name: slideOutUp;
10630
- }* {
10631
- box-sizing: border-box !important;
10632
- -webkit-tap-highlight-color: transparent;
10633
- -webkit-user-select: none;
10634
- -moz-user-select: none;
10635
- user-select: none;
10636
- }.dvh {
10637
- height: 100vh;
10638
- }@supports (height: 100dvh) {
10639
- .dvh {
10640
- height: 100dvh !important;
10641
- }
10642
- }#video-player-container {
10643
- padding: 0;
10644
- margin: 0;
10645
- font-family:
10646
- "IranYekanFaMobile",
10647
- -apple-system,
10648
- BlinkMacSystemFont,
10649
- Segoe UI,
10650
- Roboto,
10651
- Oxygen,
10652
- Ubuntu,
10653
- Cantarell,
10654
- Fira Sans,
10655
- Droid Sans,
10656
- Helvetica Neue,
10657
- sans-serif !important;
10658
- direction: rtl;
10659
- touch-action: pan-y;
10660
- max-height: 100dvh;
10661
- overflow-x: hidden;
10662
- }@media print {
10663
- #video-player-container {
10664
- print-color-adjust: exact;
10665
- -webkit-print-color-adjust: exact;
10666
- }
10667
- }::-webkit-outer-spin-button,
10668
- ::-webkit-inner-spin-button {
10669
- -webkit-appearance: none;
10670
- appearance: none;
10671
- }a {
10672
- color: inherit;
10673
- text-decoration: none;
10630
+ }* {
10631
+ box-sizing: border-box !important;
10632
+ -webkit-tap-highlight-color: transparent;
10633
+ -webkit-user-select: none;
10634
+ -moz-user-select: none;
10635
+ user-select: none;
10636
+ }.dvh {
10637
+ height: 100vh;
10638
+ }@supports (height: 100dvh) {
10639
+ .dvh {
10640
+ height: 100dvh !important;
10641
+ }
10642
+ }#video-player-container {
10643
+ padding: 0;
10644
+ margin: 0;
10645
+ font-family:
10646
+ "IranYekanFaMobile",
10647
+ -apple-system,
10648
+ BlinkMacSystemFont,
10649
+ Segoe UI,
10650
+ Roboto,
10651
+ Oxygen,
10652
+ Ubuntu,
10653
+ Cantarell,
10654
+ Fira Sans,
10655
+ Droid Sans,
10656
+ Helvetica Neue,
10657
+ sans-serif !important;
10658
+ direction: rtl;
10659
+ touch-action: pan-y;
10660
+ max-height: 100dvh;
10661
+ overflow-x: hidden;
10662
+ }@media print {
10663
+ #video-player-container {
10664
+ print-color-adjust: exact;
10665
+ -webkit-print-color-adjust: exact;
10666
+ }
10667
+ }::-webkit-outer-spin-button,
10668
+ ::-webkit-inner-spin-button {
10669
+ -webkit-appearance: none;
10670
+ appearance: none;
10671
+ }a {
10672
+ color: inherit;
10673
+ text-decoration: none;
10674
10674
  }*, ::before, ::after{
10675
10675
  --tw-border-spacing-x: 0;
10676
10676
  --tw-border-spacing-y: 0;
@@ -520,7 +520,8 @@ var VideoDataSliceState = {
520
520
  release_year: null,
521
521
  duration: 0,
522
522
  time_machine: 0,
523
- is_360: false
523
+ is_360: false,
524
+ vod_max_display_resolution: null
524
525
  },
525
526
  params: {
526
527
  src: "",
@@ -11848,14 +11849,18 @@ var handleMultiLiveHlsConfig = () => {
11848
11849
  };
11849
11850
  };
11850
11851
  var handleManifestParsed = (hls, data) => {
11852
+ const { details } = store.getState().videoData;
11851
11853
  const dispatch = store.dispatch;
11852
11854
  let qualityLevels = [];
11853
11855
  let qualityBitrates = [""];
11854
11856
  let resolutions = [];
11855
11857
  hls.levels.map((level) => {
11856
- qualityLevels.push(level.attrs.RESOLUTION.split("x")[1].trim());
11858
+ const lvl = level.attrs.RESOLUTION.split("x")[1].trim();
11859
+ if (details.vod_max_display_resolution === null || +details.vod_max_display_resolution >= +lvl) {
11860
+ qualityLevels.push(lvl);
11861
+ resolutions.push(level.attrs.RESOLUTION);
11862
+ }
11857
11863
  qualityBitrates.push(`${(level.bitrate / 1e3).toFixed(0)}kbps`);
11858
- resolutions.push(level.attrs.RESOLUTION);
11859
11864
  });
11860
11865
  hls.autoLevelCapping = highestResolutionSupported(resolutions, window.innerWidth, window.innerHeight);
11861
11866
  dispatch(setQualityLevels(qualityLevels));
@@ -22596,7 +22601,7 @@ var Popover = forwardRef(({ children, status, onClose, type, classNames, parentC
22596
22601
  setMaxHeight(0);
22597
22602
  onClose();
22598
22603
  }
22599
- setZIndexOnCatchUp(0);
22604
+ setZIndexOnCatchUp(1);
22600
22605
  }
22601
22606
  };
22602
22607
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [isBlurBackground && /* @__PURE__ */ jsx("div", {