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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +63 -7
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +64 -8
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +1 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +1 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +1 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +63 -7
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -8775,12 +8775,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
8775
8775
|
];
|
|
8776
8776
|
case 3:
|
|
8777
8777
|
error = _state.sent();
|
|
8778
|
-
this.adBreak.adPodQueue = [];
|
|
8779
|
-
this.adBreak.inAdBreak = false;
|
|
8780
|
-
this.adBreak.showAds = false;
|
|
8781
8778
|
if (this.debug) {
|
|
8782
8779
|
console.warn("[StormcloudVideoPlayer] VMAP ad request failed:", error);
|
|
8783
8780
|
}
|
|
8781
|
+
this.adBreak.handleAdPodComplete();
|
|
8784
8782
|
return [
|
|
8785
8783
|
3,
|
|
8786
8784
|
4
|
|
@@ -8950,6 +8948,64 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
8950
8948
|
// src/ui/StormcloudVideoPlayer.tsx
|
|
8951
8949
|
var import_fa = require("react-icons/fa");
|
|
8952
8950
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
8951
|
+
var ExpandIcon = function ExpandIcon(param) {
|
|
8952
|
+
var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
|
|
8953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
8954
|
+
width: size,
|
|
8955
|
+
height: size,
|
|
8956
|
+
viewBox: "0 0 24 24",
|
|
8957
|
+
fill: "none",
|
|
8958
|
+
stroke: "currentColor",
|
|
8959
|
+
strokeWidth: 2,
|
|
8960
|
+
strokeLinecap: "round",
|
|
8961
|
+
strokeLinejoin: "round",
|
|
8962
|
+
"aria-hidden": "true",
|
|
8963
|
+
focusable: "false",
|
|
8964
|
+
children: [
|
|
8965
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8966
|
+
d: "M9 4H4v5"
|
|
8967
|
+
}),
|
|
8968
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8969
|
+
d: "M20 9V4h-5"
|
|
8970
|
+
}),
|
|
8971
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8972
|
+
d: "M15 20h5v-5"
|
|
8973
|
+
}),
|
|
8974
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8975
|
+
d: "M4 15v5h5"
|
|
8976
|
+
})
|
|
8977
|
+
]
|
|
8978
|
+
});
|
|
8979
|
+
};
|
|
8980
|
+
var CompressIcon = function CompressIcon(param) {
|
|
8981
|
+
var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
|
|
8982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
8983
|
+
width: size,
|
|
8984
|
+
height: size,
|
|
8985
|
+
viewBox: "0 0 24 24",
|
|
8986
|
+
fill: "none",
|
|
8987
|
+
stroke: "currentColor",
|
|
8988
|
+
strokeWidth: 2,
|
|
8989
|
+
strokeLinecap: "round",
|
|
8990
|
+
strokeLinejoin: "round",
|
|
8991
|
+
"aria-hidden": "true",
|
|
8992
|
+
focusable: "false",
|
|
8993
|
+
children: [
|
|
8994
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8995
|
+
d: "M4 9h5V4"
|
|
8996
|
+
}),
|
|
8997
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
8998
|
+
d: "M15 4v5h5"
|
|
8999
|
+
}),
|
|
9000
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9001
|
+
d: "M20 15h-5v5"
|
|
9002
|
+
}),
|
|
9003
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9004
|
+
d: "M9 20v-5H4"
|
|
9005
|
+
})
|
|
9006
|
+
]
|
|
9007
|
+
});
|
|
9008
|
+
};
|
|
8953
9009
|
var CRITICAL_PROPS = [
|
|
8954
9010
|
"src",
|
|
8955
9011
|
"allowNativeHls",
|
|
@@ -9987,9 +10043,9 @@ var StormcloudVideoPlayerComponent = import_react.default.memo(function(props) {
|
|
|
9987
10043
|
minHeight: "".concat(36 * responsiveScale, "px")
|
|
9988
10044
|
},
|
|
9989
10045
|
title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
|
|
9990
|
-
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10046
|
+
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompressIcon, {
|
|
9991
10047
|
size: Math.max(14, 18 * responsiveScale)
|
|
9992
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10048
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExpandIcon, {
|
|
9993
10049
|
size: Math.max(14, 18 * responsiveScale)
|
|
9994
10050
|
})
|
|
9995
10051
|
})
|
|
@@ -10188,9 +10244,9 @@ var StormcloudVideoPlayerComponent = import_react.default.memo(function(props) {
|
|
|
10188
10244
|
background: "rgba(0, 0, 0, 0.6)"
|
|
10189
10245
|
},
|
|
10190
10246
|
title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
|
|
10191
|
-
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10247
|
+
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompressIcon, {
|
|
10192
10248
|
size: Math.max(14, 18 * responsiveScale)
|
|
10193
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10249
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExpandIcon, {
|
|
10194
10250
|
size: Math.max(14, 18 * responsiveScale)
|
|
10195
10251
|
})
|
|
10196
10252
|
})
|