stormcloud-video-player 0.8.40 → 0.8.41

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.
package/lib/index.js CHANGED
@@ -8813,12 +8813,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
8813
8813
  ];
8814
8814
  case 3:
8815
8815
  error = _state.sent();
8816
- this.adBreak.adPodQueue = [];
8817
- this.adBreak.inAdBreak = false;
8818
- this.adBreak.showAds = false;
8819
8816
  if (this.debug) {
8820
8817
  console.warn("[StormcloudVideoPlayer] VMAP ad request failed:", error);
8821
8818
  }
8819
+ this.adBreak.handleAdPodComplete();
8822
8820
  return [
8823
8821
  3,
8824
8822
  4
@@ -8986,8 +8984,66 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
8986
8984
  return StormcloudVideoPlayer;
8987
8985
  }();
8988
8986
  // src/ui/StormcloudVideoPlayer.tsx
8989
- import { FaPlay, FaPause, FaVolumeUp, FaVolumeMute, FaVolumeDown, FaExpand, FaCompress } from "react-icons/fa";
8987
+ import { FaPlay, FaPause, FaVolumeUp, FaVolumeMute, FaVolumeDown } from "react-icons/fa";
8990
8988
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8989
+ var ExpandIcon = function ExpandIcon(param) {
8990
+ var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
8991
+ return /* @__PURE__ */ jsxs("svg", {
8992
+ width: size,
8993
+ height: size,
8994
+ viewBox: "0 0 24 24",
8995
+ fill: "none",
8996
+ stroke: "currentColor",
8997
+ strokeWidth: 2,
8998
+ strokeLinecap: "round",
8999
+ strokeLinejoin: "round",
9000
+ "aria-hidden": "true",
9001
+ focusable: "false",
9002
+ children: [
9003
+ /* @__PURE__ */ jsx("path", {
9004
+ d: "M9 4H4v5"
9005
+ }),
9006
+ /* @__PURE__ */ jsx("path", {
9007
+ d: "M20 9V4h-5"
9008
+ }),
9009
+ /* @__PURE__ */ jsx("path", {
9010
+ d: "M15 20h5v-5"
9011
+ }),
9012
+ /* @__PURE__ */ jsx("path", {
9013
+ d: "M4 15v5h5"
9014
+ })
9015
+ ]
9016
+ });
9017
+ };
9018
+ var CompressIcon = function CompressIcon(param) {
9019
+ var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
9020
+ return /* @__PURE__ */ jsxs("svg", {
9021
+ width: size,
9022
+ height: size,
9023
+ viewBox: "0 0 24 24",
9024
+ fill: "none",
9025
+ stroke: "currentColor",
9026
+ strokeWidth: 2,
9027
+ strokeLinecap: "round",
9028
+ strokeLinejoin: "round",
9029
+ "aria-hidden": "true",
9030
+ focusable: "false",
9031
+ children: [
9032
+ /* @__PURE__ */ jsx("path", {
9033
+ d: "M4 9h5V4"
9034
+ }),
9035
+ /* @__PURE__ */ jsx("path", {
9036
+ d: "M15 4v5h5"
9037
+ }),
9038
+ /* @__PURE__ */ jsx("path", {
9039
+ d: "M20 15h-5v5"
9040
+ }),
9041
+ /* @__PURE__ */ jsx("path", {
9042
+ d: "M9 20v-5H4"
9043
+ })
9044
+ ]
9045
+ });
9046
+ };
8991
9047
  var CRITICAL_PROPS = [
8992
9048
  "src",
8993
9049
  "allowNativeHls",
@@ -10025,9 +10081,9 @@ var StormcloudVideoPlayerComponent = React.memo(function(props) {
10025
10081
  minHeight: "".concat(36 * responsiveScale, "px")
10026
10082
  },
10027
10083
  title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
10028
- children: isFullscreen2 ? /* @__PURE__ */ jsx(FaCompress, {
10084
+ children: isFullscreen2 ? /* @__PURE__ */ jsx(CompressIcon, {
10029
10085
  size: Math.max(14, 18 * responsiveScale)
10030
- }) : /* @__PURE__ */ jsx(FaExpand, {
10086
+ }) : /* @__PURE__ */ jsx(ExpandIcon, {
10031
10087
  size: Math.max(14, 18 * responsiveScale)
10032
10088
  })
10033
10089
  })
@@ -10226,9 +10282,9 @@ var StormcloudVideoPlayerComponent = React.memo(function(props) {
10226
10282
  background: "rgba(0, 0, 0, 0.6)"
10227
10283
  },
10228
10284
  title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
10229
- children: isFullscreen2 ? /* @__PURE__ */ jsx(FaCompress, {
10285
+ children: isFullscreen2 ? /* @__PURE__ */ jsx(CompressIcon, {
10230
10286
  size: Math.max(14, 18 * responsiveScale)
10231
- }) : /* @__PURE__ */ jsx(FaExpand, {
10287
+ }) : /* @__PURE__ */ jsx(ExpandIcon, {
10232
10288
  size: Math.max(14, 18 * responsiveScale)
10233
10289
  })
10234
10290
  })