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
package/lib/index.cjs
CHANGED
|
@@ -9020,12 +9020,10 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
9020
9020
|
];
|
|
9021
9021
|
case 3:
|
|
9022
9022
|
error = _state.sent();
|
|
9023
|
-
this.adBreak.adPodQueue = [];
|
|
9024
|
-
this.adBreak.inAdBreak = false;
|
|
9025
|
-
this.adBreak.showAds = false;
|
|
9026
9023
|
if (this.debug) {
|
|
9027
9024
|
console.warn("[StormcloudVideoPlayer] VMAP ad request failed:", error);
|
|
9028
9025
|
}
|
|
9026
|
+
this.adBreak.handleAdPodComplete();
|
|
9029
9027
|
return [
|
|
9030
9028
|
3,
|
|
9031
9029
|
4
|
|
@@ -9195,6 +9193,64 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
9195
9193
|
// src/ui/StormcloudVideoPlayer.tsx
|
|
9196
9194
|
var import_fa = require("react-icons/fa");
|
|
9197
9195
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
9196
|
+
var ExpandIcon = function ExpandIcon(param) {
|
|
9197
|
+
var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
|
|
9198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
9199
|
+
width: size,
|
|
9200
|
+
height: size,
|
|
9201
|
+
viewBox: "0 0 24 24",
|
|
9202
|
+
fill: "none",
|
|
9203
|
+
stroke: "currentColor",
|
|
9204
|
+
strokeWidth: 2,
|
|
9205
|
+
strokeLinecap: "round",
|
|
9206
|
+
strokeLinejoin: "round",
|
|
9207
|
+
"aria-hidden": "true",
|
|
9208
|
+
focusable: "false",
|
|
9209
|
+
children: [
|
|
9210
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9211
|
+
d: "M9 4H4v5"
|
|
9212
|
+
}),
|
|
9213
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9214
|
+
d: "M20 9V4h-5"
|
|
9215
|
+
}),
|
|
9216
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9217
|
+
d: "M15 20h5v-5"
|
|
9218
|
+
}),
|
|
9219
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9220
|
+
d: "M4 15v5h5"
|
|
9221
|
+
})
|
|
9222
|
+
]
|
|
9223
|
+
});
|
|
9224
|
+
};
|
|
9225
|
+
var CompressIcon = function CompressIcon(param) {
|
|
9226
|
+
var _param_size = param.size, size = _param_size === void 0 ? 18 : _param_size;
|
|
9227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
9228
|
+
width: size,
|
|
9229
|
+
height: size,
|
|
9230
|
+
viewBox: "0 0 24 24",
|
|
9231
|
+
fill: "none",
|
|
9232
|
+
stroke: "currentColor",
|
|
9233
|
+
strokeWidth: 2,
|
|
9234
|
+
strokeLinecap: "round",
|
|
9235
|
+
strokeLinejoin: "round",
|
|
9236
|
+
"aria-hidden": "true",
|
|
9237
|
+
focusable: "false",
|
|
9238
|
+
children: [
|
|
9239
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9240
|
+
d: "M4 9h5V4"
|
|
9241
|
+
}),
|
|
9242
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9243
|
+
d: "M15 4v5h5"
|
|
9244
|
+
}),
|
|
9245
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9246
|
+
d: "M20 15h-5v5"
|
|
9247
|
+
}),
|
|
9248
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
9249
|
+
d: "M9 20v-5H4"
|
|
9250
|
+
})
|
|
9251
|
+
]
|
|
9252
|
+
});
|
|
9253
|
+
};
|
|
9198
9254
|
var CRITICAL_PROPS = [
|
|
9199
9255
|
"src",
|
|
9200
9256
|
"allowNativeHls",
|
|
@@ -10232,9 +10288,9 @@ var StormcloudVideoPlayerComponent = import_react.default.memo(function(props) {
|
|
|
10232
10288
|
minHeight: "".concat(36 * responsiveScale, "px")
|
|
10233
10289
|
},
|
|
10234
10290
|
title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
|
|
10235
|
-
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10291
|
+
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompressIcon, {
|
|
10236
10292
|
size: Math.max(14, 18 * responsiveScale)
|
|
10237
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10293
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExpandIcon, {
|
|
10238
10294
|
size: Math.max(14, 18 * responsiveScale)
|
|
10239
10295
|
})
|
|
10240
10296
|
})
|
|
@@ -10433,9 +10489,9 @@ var StormcloudVideoPlayerComponent = import_react.default.memo(function(props) {
|
|
|
10433
10489
|
background: "rgba(0, 0, 0, 0.6)"
|
|
10434
10490
|
},
|
|
10435
10491
|
title: isFullscreen2 ? "Exit Fullscreen" : "Enter Fullscreen",
|
|
10436
|
-
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10492
|
+
children: isFullscreen2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompressIcon, {
|
|
10437
10493
|
size: Math.max(14, 18 * responsiveScale)
|
|
10438
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
10494
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExpandIcon, {
|
|
10439
10495
|
size: Math.max(14, 18 * responsiveScale)
|
|
10440
10496
|
})
|
|
10441
10497
|
})
|