@livo-tv/blocks 1.31.0 → 1.32.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.
- package/dist/index.cjs +27 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2891,7 +2891,10 @@ function ShaderCurtain({
|
|
|
2891
2891
|
return;
|
|
2892
2892
|
}
|
|
2893
2893
|
let cancelled = false;
|
|
2894
|
-
void import(
|
|
2894
|
+
void import(
|
|
2895
|
+
/* turbopackOptional: true */
|
|
2896
|
+
'@shadergradient/react'
|
|
2897
|
+
).then((loaded) => {
|
|
2895
2898
|
if (cancelled) return;
|
|
2896
2899
|
if (!loaded.ShaderGradientCanvas || !loaded.ShaderGradient) {
|
|
2897
2900
|
setFailed(true);
|
|
@@ -5564,7 +5567,10 @@ function useHlsPlayback({
|
|
|
5564
5567
|
async function setup() {
|
|
5565
5568
|
let Hls = null;
|
|
5566
5569
|
try {
|
|
5567
|
-
Hls = (await import(
|
|
5570
|
+
Hls = (await import(
|
|
5571
|
+
/* turbopackOptional: true */
|
|
5572
|
+
'hls.js'
|
|
5573
|
+
)).default;
|
|
5568
5574
|
} catch {
|
|
5569
5575
|
Hls = null;
|
|
5570
5576
|
}
|
|
@@ -5910,6 +5916,7 @@ function VideoPlayer({
|
|
|
5910
5916
|
const [cssFullscreen, setCssFullscreen] = React11__namespace.useState(false);
|
|
5911
5917
|
const [webkitNativeFs, setWebkitNativeFs] = React11__namespace.useState(false);
|
|
5912
5918
|
const hideTimerRef = React11__namespace.useRef(null);
|
|
5919
|
+
const lastPointerTypeRef = React11__namespace.useRef("mouse");
|
|
5913
5920
|
const liveCaptionCuesRef = React11__namespace.useRef(liveCaptionCues);
|
|
5914
5921
|
const liveLagMsRef = React11__namespace.useRef(liveLagMs);
|
|
5915
5922
|
const compactChromeRef = React11__namespace.useRef(compactChrome);
|
|
@@ -6320,6 +6327,20 @@ function VideoPlayer({
|
|
|
6320
6327
|
return next;
|
|
6321
6328
|
});
|
|
6322
6329
|
}
|
|
6330
|
+
function recordPointerType(e) {
|
|
6331
|
+
lastPointerTypeRef.current = e.pointerType;
|
|
6332
|
+
}
|
|
6333
|
+
function handlePointerMove(e) {
|
|
6334
|
+
if (e.pointerType === "mouse") lastPointerTypeRef.current = "mouse";
|
|
6335
|
+
}
|
|
6336
|
+
function handleMouseMove() {
|
|
6337
|
+
if (lastPointerTypeRef.current === "touch") return;
|
|
6338
|
+
revealControls();
|
|
6339
|
+
}
|
|
6340
|
+
function handleMouseLeave() {
|
|
6341
|
+
if (lastPointerTypeRef.current === "touch") return;
|
|
6342
|
+
if (isPlaying) setControlsVisible(false);
|
|
6343
|
+
}
|
|
6323
6344
|
function handleKeyDown(e) {
|
|
6324
6345
|
if (!active) return;
|
|
6325
6346
|
switch (e.key) {
|
|
@@ -6403,10 +6424,10 @@ function VideoPlayer({
|
|
|
6403
6424
|
cssFullscreen && "fixed inset-0 z-50 h-dvh w-dvw rounded-none",
|
|
6404
6425
|
className
|
|
6405
6426
|
),
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6427
|
+
onPointerDown: recordPointerType,
|
|
6428
|
+
onPointerMove: handlePointerMove,
|
|
6429
|
+
onMouseMove: handleMouseMove,
|
|
6430
|
+
onMouseLeave: handleMouseLeave,
|
|
6410
6431
|
onKeyDown: handleKeyDown,
|
|
6411
6432
|
tabIndex: 0,
|
|
6412
6433
|
role: "region",
|