@halibegic/react-video-player 0.0.35 → 0.0.36
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/README.md +21 -1
- package/dist/components/live-player/live-player-tech.d.ts +1 -0
- package/dist/components/live-player.d.ts +1 -0
- package/dist/components/player/player-hls-engine.d.ts +1 -0
- package/dist/components/player/player-tech.d.ts +1 -0
- package/dist/components/vod-player.d.ts +3 -0
- package/dist/react-video-player.es.js +398 -385
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +7 -7
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var Fn = Object.defineProperty, Mn = Object.defineProperties;
|
|
|
2
2
|
var Nn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var be = Object.getOwnPropertySymbols;
|
|
4
4
|
var pt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var mt = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5
|
+
var mt = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
pt.call(t, n) && mt(e, n, t[n]);
|
|
8
8
|
if (be)
|
|
@@ -19,13 +19,13 @@ var ne = (e, t) => {
|
|
|
19
19
|
t.indexOf(o) < 0 && vt.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import St, { useLayoutEffect as Vn, useEffect as N, useRef as O, useState as X, createContext as bt, useContext as
|
|
23
|
-
import { create as
|
|
22
|
+
import St, { useLayoutEffect as Vn, useEffect as N, useRef as O, useState as X, createContext as bt, useContext as Lt, useCallback as U, forwardRef as Me } from "react";
|
|
23
|
+
import { create as Pt, useStore as jt } from "zustand";
|
|
24
24
|
import An from "mitt";
|
|
25
25
|
import re from "hls.js";
|
|
26
|
-
import * as
|
|
26
|
+
import * as Le from "@radix-ui/react-slider";
|
|
27
27
|
import * as xe from "@radix-ui/react-popover";
|
|
28
|
-
import * as
|
|
28
|
+
import * as Pe from "@radix-ui/react-scroll-area";
|
|
29
29
|
function kt(e) {
|
|
30
30
|
var t = this.constructor;
|
|
31
31
|
return this.then(
|
|
@@ -128,7 +128,7 @@ function Nt(e, t) {
|
|
|
128
128
|
e._handled = !0, F._immediateFn(function() {
|
|
129
129
|
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
130
130
|
if (n === null) {
|
|
131
|
-
(e._state === 1 ?
|
|
131
|
+
(e._state === 1 ? We : Te)(t.promise, e._value);
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
var o;
|
|
@@ -138,10 +138,10 @@ function Nt(e, t) {
|
|
|
138
138
|
Te(t.promise, s);
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
We(t.promise, o);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function We(e, t) {
|
|
145
145
|
try {
|
|
146
146
|
if (t === e)
|
|
147
147
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
@@ -179,7 +179,7 @@ function Vt(e, t) {
|
|
|
179
179
|
try {
|
|
180
180
|
e(
|
|
181
181
|
function(o) {
|
|
182
|
-
n || (n = !0,
|
|
182
|
+
n || (n = !0, We(t, o));
|
|
183
183
|
},
|
|
184
184
|
function(o) {
|
|
185
185
|
n || (n = !0, Te(t, o));
|
|
@@ -268,7 +268,7 @@ var ae = (function() {
|
|
|
268
268
|
throw new Error("unable to locate global object");
|
|
269
269
|
})();
|
|
270
270
|
typeof ae.Promise != "function" ? ae.Promise = F : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = kt), ae.Promise.allSettled || (ae.Promise.allSettled = It), ae.Promise.any || (ae.Promise.any = Ft));
|
|
271
|
-
var
|
|
271
|
+
var je = { exports: {} }, ge = {};
|
|
272
272
|
var yt;
|
|
273
273
|
function Un() {
|
|
274
274
|
if (yt) return ge;
|
|
@@ -287,11 +287,11 @@ var we = {};
|
|
|
287
287
|
var gt;
|
|
288
288
|
function zn() {
|
|
289
289
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
290
|
-
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"),
|
|
291
|
-
function
|
|
290
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
|
|
291
|
+
function L(r) {
|
|
292
292
|
if (r === null || typeof r != "object")
|
|
293
293
|
return null;
|
|
294
|
-
var h =
|
|
294
|
+
var h = j && r[j] || r[S];
|
|
295
295
|
return typeof h == "function" ? h : null;
|
|
296
296
|
}
|
|
297
297
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -304,29 +304,29 @@ function zn() {
|
|
|
304
304
|
}
|
|
305
305
|
function k(r, h, m) {
|
|
306
306
|
{
|
|
307
|
-
var w = M.ReactDebugCurrentFrame,
|
|
308
|
-
|
|
309
|
-
var b = m.map(function(
|
|
310
|
-
return String(
|
|
307
|
+
var w = M.ReactDebugCurrentFrame, C = w.getStackAddendum();
|
|
308
|
+
C !== "" && (h += "%s", m = m.concat([C]));
|
|
309
|
+
var b = m.map(function(E) {
|
|
310
|
+
return String(E);
|
|
311
311
|
});
|
|
312
312
|
b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
var T = !1, I = !1, p = !1, B = !1,
|
|
316
|
-
|
|
315
|
+
var T = !1, I = !1, p = !1, B = !1, G = !1, W;
|
|
316
|
+
W = Symbol.for("react.module.reference");
|
|
317
317
|
function V(r) {
|
|
318
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r === c ||
|
|
318
|
+
return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || G || r === s || r === d || r === g || B || r === _ || T || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === l || // This needs to include all possible module reference object
|
|
319
319
|
// types supported by any Flight configuration anywhere since
|
|
320
320
|
// we don't know which Flight build this will end up being used
|
|
321
321
|
// with.
|
|
322
|
-
r.$$typeof ===
|
|
322
|
+
r.$$typeof === W || r.getModuleId !== void 0));
|
|
323
323
|
}
|
|
324
324
|
function D(r, h, m) {
|
|
325
325
|
var w = r.displayName;
|
|
326
326
|
if (w)
|
|
327
327
|
return w;
|
|
328
|
-
var
|
|
329
|
-
return
|
|
328
|
+
var C = h.displayName || h.name || "";
|
|
329
|
+
return C !== "" ? m + "(" + C + ")" : m;
|
|
330
330
|
}
|
|
331
331
|
function Q(r) {
|
|
332
332
|
return r.displayName || "Context";
|
|
@@ -366,9 +366,9 @@ function zn() {
|
|
|
366
366
|
var w = r.displayName || null;
|
|
367
367
|
return w !== null ? w : Z(r.type) || "Memo";
|
|
368
368
|
case v: {
|
|
369
|
-
var
|
|
369
|
+
var C = r, b = C._payload, E = C._init;
|
|
370
370
|
try {
|
|
371
|
-
return Z(
|
|
371
|
+
return Z(E(b));
|
|
372
372
|
} catch (x) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
@@ -376,14 +376,14 @@ function zn() {
|
|
|
376
376
|
}
|
|
377
377
|
return null;
|
|
378
378
|
}
|
|
379
|
-
var z = Object.assign, oe = 0, ue, te,
|
|
379
|
+
var z = Object.assign, oe = 0, ue, te, q, ve, Ye, Xe, Ge;
|
|
380
380
|
function Je() {
|
|
381
381
|
}
|
|
382
382
|
Je.__reactDisabledLog = !0;
|
|
383
383
|
function an() {
|
|
384
384
|
{
|
|
385
385
|
if (oe === 0) {
|
|
386
|
-
ue = console.log, te = console.info,
|
|
386
|
+
ue = console.log, te = console.info, q = console.warn, ve = console.error, Ye = console.group, Xe = console.groupCollapsed, Ge = console.groupEnd;
|
|
387
387
|
var r = {
|
|
388
388
|
configurable: !0,
|
|
389
389
|
enumerable: !0,
|
|
@@ -419,7 +419,7 @@ function zn() {
|
|
|
419
419
|
value: te
|
|
420
420
|
}),
|
|
421
421
|
warn: z({}, r, {
|
|
422
|
-
value:
|
|
422
|
+
value: q
|
|
423
423
|
}),
|
|
424
424
|
error: z({}, r, {
|
|
425
425
|
value: ve
|
|
@@ -439,73 +439,73 @@ function zn() {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
var Ve = M.ReactCurrentDispatcher, Ae;
|
|
442
|
-
function
|
|
442
|
+
function Ee(r, h, m) {
|
|
443
443
|
{
|
|
444
444
|
if (Ae === void 0)
|
|
445
445
|
try {
|
|
446
446
|
throw Error();
|
|
447
|
-
} catch (
|
|
448
|
-
var w =
|
|
447
|
+
} catch (C) {
|
|
448
|
+
var w = C.stack.trim().match(/\n( *(at )?)/);
|
|
449
449
|
Ae = w && w[1] || "";
|
|
450
450
|
}
|
|
451
451
|
return `
|
|
452
452
|
` + Ae + r;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
var Oe = !1,
|
|
455
|
+
var Oe = !1, Ce;
|
|
456
456
|
{
|
|
457
457
|
var cn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
458
|
-
|
|
458
|
+
Ce = new cn();
|
|
459
459
|
}
|
|
460
460
|
function Qe(r, h) {
|
|
461
461
|
if (!r || Oe)
|
|
462
462
|
return "";
|
|
463
463
|
{
|
|
464
|
-
var m =
|
|
464
|
+
var m = Ce.get(r);
|
|
465
465
|
if (m !== void 0)
|
|
466
466
|
return m;
|
|
467
467
|
}
|
|
468
468
|
var w;
|
|
469
469
|
Oe = !0;
|
|
470
|
-
var
|
|
470
|
+
var C = Error.prepareStackTrace;
|
|
471
471
|
Error.prepareStackTrace = void 0;
|
|
472
472
|
var b;
|
|
473
473
|
b = Ve.current, Ve.current = null, an();
|
|
474
474
|
try {
|
|
475
475
|
if (h) {
|
|
476
|
-
var
|
|
476
|
+
var E = function() {
|
|
477
477
|
throw Error();
|
|
478
478
|
};
|
|
479
|
-
if (Object.defineProperty(
|
|
479
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
480
480
|
set: function() {
|
|
481
481
|
throw Error();
|
|
482
482
|
}
|
|
483
483
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
484
484
|
try {
|
|
485
|
-
Reflect.construct(
|
|
486
|
-
} catch (
|
|
487
|
-
w =
|
|
485
|
+
Reflect.construct(E, []);
|
|
486
|
+
} catch (J) {
|
|
487
|
+
w = J;
|
|
488
488
|
}
|
|
489
|
-
Reflect.construct(r, [],
|
|
489
|
+
Reflect.construct(r, [], E);
|
|
490
490
|
} else {
|
|
491
491
|
try {
|
|
492
|
-
|
|
493
|
-
} catch (
|
|
494
|
-
w =
|
|
492
|
+
E.call();
|
|
493
|
+
} catch (J) {
|
|
494
|
+
w = J;
|
|
495
495
|
}
|
|
496
|
-
r.call(
|
|
496
|
+
r.call(E.prototype);
|
|
497
497
|
}
|
|
498
498
|
} else {
|
|
499
499
|
try {
|
|
500
500
|
throw Error();
|
|
501
|
-
} catch (
|
|
502
|
-
w =
|
|
501
|
+
} catch (J) {
|
|
502
|
+
w = J;
|
|
503
503
|
}
|
|
504
504
|
r();
|
|
505
505
|
}
|
|
506
|
-
} catch (
|
|
507
|
-
if (
|
|
508
|
-
for (var x =
|
|
506
|
+
} catch (J) {
|
|
507
|
+
if (J && w && typeof J.stack == "string") {
|
|
508
|
+
for (var x = J.stack.split(`
|
|
509
509
|
`), Y = w.stack.split(`
|
|
510
510
|
`), A = x.length - 1, H = Y.length - 1; A >= 1 && H >= 0 && x[A] !== Y[H]; )
|
|
511
511
|
H--;
|
|
@@ -516,17 +516,17 @@ function zn() {
|
|
|
516
516
|
if (A--, H--, H < 0 || x[A] !== Y[H]) {
|
|
517
517
|
var ee = `
|
|
518
518
|
` + x[A].replace(" at new ", " at ");
|
|
519
|
-
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" &&
|
|
519
|
+
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ce.set(r, ee), ee;
|
|
520
520
|
}
|
|
521
521
|
while (A >= 1 && H >= 0);
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
} finally {
|
|
526
|
-
Oe = !1, Ve.current = b, ln(), Error.prepareStackTrace =
|
|
526
|
+
Oe = !1, Ve.current = b, ln(), Error.prepareStackTrace = C;
|
|
527
527
|
}
|
|
528
|
-
var fe = r ? r.displayName || r.name : "", ce = fe ?
|
|
529
|
-
return typeof r == "function" &&
|
|
528
|
+
var fe = r ? r.displayName || r.name : "", ce = fe ? Ee(fe) : "";
|
|
529
|
+
return typeof r == "function" && Ce.set(r, ce), ce;
|
|
530
530
|
}
|
|
531
531
|
function un(r, h, m) {
|
|
532
532
|
return Qe(r, !1);
|
|
@@ -541,12 +541,12 @@ function zn() {
|
|
|
541
541
|
if (typeof r == "function")
|
|
542
542
|
return Qe(r, dn(r));
|
|
543
543
|
if (typeof r == "string")
|
|
544
|
-
return
|
|
544
|
+
return Ee(r);
|
|
545
545
|
switch (r) {
|
|
546
546
|
case d:
|
|
547
|
-
return
|
|
547
|
+
return Ee("Suspense");
|
|
548
548
|
case g:
|
|
549
|
-
return
|
|
549
|
+
return Ee("SuspenseList");
|
|
550
550
|
}
|
|
551
551
|
if (typeof r == "object")
|
|
552
552
|
switch (r.$$typeof) {
|
|
@@ -555,10 +555,10 @@ function zn() {
|
|
|
555
555
|
case y:
|
|
556
556
|
return Re(r.type, h, m);
|
|
557
557
|
case v: {
|
|
558
|
-
var w = r,
|
|
558
|
+
var w = r, C = w._payload, b = w._init;
|
|
559
559
|
try {
|
|
560
|
-
return Re(b(
|
|
561
|
-
} catch (
|
|
560
|
+
return Re(b(C), h, m);
|
|
561
|
+
} catch (E) {
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
@@ -572,22 +572,22 @@ function zn() {
|
|
|
572
572
|
} else
|
|
573
573
|
tt.setExtraStackFrame(null);
|
|
574
574
|
}
|
|
575
|
-
function fn(r, h, m, w,
|
|
575
|
+
function fn(r, h, m, w, C) {
|
|
576
576
|
{
|
|
577
577
|
var b = Function.call.bind(ye);
|
|
578
|
-
for (var
|
|
579
|
-
if (b(r,
|
|
578
|
+
for (var E in r)
|
|
579
|
+
if (b(r, E)) {
|
|
580
580
|
var x = void 0;
|
|
581
581
|
try {
|
|
582
|
-
if (typeof r[
|
|
583
|
-
var Y = Error((w || "React class") + ": " + m + " type `" +
|
|
582
|
+
if (typeof r[E] != "function") {
|
|
583
|
+
var Y = Error((w || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
584
584
|
throw Y.name = "Invariant Violation", Y;
|
|
585
585
|
}
|
|
586
|
-
x = r[
|
|
586
|
+
x = r[E](h, E, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
587
587
|
} catch (A) {
|
|
588
588
|
x = A;
|
|
589
589
|
}
|
|
590
|
-
x && !(x instanceof Error) && (Se(
|
|
590
|
+
x && !(x instanceof Error) && (Se(C), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", m, E, typeof x), Se(null)), x instanceof Error && !(x.message in et) && (et[x.message] = !0, Se(C), R("Failed %s type: %s", m, x.message), Se(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
@@ -662,7 +662,7 @@ function zn() {
|
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
var xn = function(r, h, m, w,
|
|
665
|
+
var xn = function(r, h, m, w, C, b, E) {
|
|
666
666
|
var x = {
|
|
667
667
|
// This tag allows us to uniquely identify this as a React Element
|
|
668
668
|
$$typeof: t,
|
|
@@ -670,7 +670,7 @@ function zn() {
|
|
|
670
670
|
type: r,
|
|
671
671
|
key: h,
|
|
672
672
|
ref: m,
|
|
673
|
-
props:
|
|
673
|
+
props: E,
|
|
674
674
|
// Record the component responsible for creating this element.
|
|
675
675
|
_owner: b
|
|
676
676
|
};
|
|
@@ -688,25 +688,25 @@ function zn() {
|
|
|
688
688
|
configurable: !1,
|
|
689
689
|
enumerable: !1,
|
|
690
690
|
writable: !1,
|
|
691
|
-
value:
|
|
691
|
+
value: C
|
|
692
692
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
693
693
|
};
|
|
694
|
-
function
|
|
694
|
+
function En(r, h, m, w, C) {
|
|
695
695
|
{
|
|
696
|
-
var b,
|
|
697
|
-
m !== void 0 && (rt(m), x = "" + m), gn(h) && (rt(h.key), x = "" + h.key), yn(h) && (Y = h.ref, wn(h,
|
|
696
|
+
var b, E = {}, x = null, Y = null;
|
|
697
|
+
m !== void 0 && (rt(m), x = "" + m), gn(h) && (rt(h.key), x = "" + h.key), yn(h) && (Y = h.ref, wn(h, C));
|
|
698
698
|
for (b in h)
|
|
699
|
-
ye.call(h, b) && !vn.hasOwnProperty(b) && (
|
|
699
|
+
ye.call(h, b) && !vn.hasOwnProperty(b) && (E[b] = h[b]);
|
|
700
700
|
if (r && r.defaultProps) {
|
|
701
701
|
var A = r.defaultProps;
|
|
702
702
|
for (b in A)
|
|
703
|
-
|
|
703
|
+
E[b] === void 0 && (E[b] = A[b]);
|
|
704
704
|
}
|
|
705
705
|
if (x || Y) {
|
|
706
706
|
var H = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
707
|
-
x && Tn(
|
|
707
|
+
x && Tn(E, H), Y && _n(E, H);
|
|
708
708
|
}
|
|
709
|
-
return xn(r, x, Y,
|
|
709
|
+
return xn(r, x, Y, C, w, ot.current, E);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
var $e = M.ReactCurrentOwner, at = M.ReactDebugCurrentFrame;
|
|
@@ -734,7 +734,7 @@ Check the render method of \`` + r + "`.";
|
|
|
734
734
|
return "";
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Cn(r) {
|
|
738
738
|
return "";
|
|
739
739
|
}
|
|
740
740
|
var ct = {};
|
|
@@ -775,10 +775,10 @@ Check the top-level render call using <` + m + ">.");
|
|
|
775
775
|
else if (Ue(r))
|
|
776
776
|
r._store && (r._store.validated = !0);
|
|
777
777
|
else if (r) {
|
|
778
|
-
var
|
|
779
|
-
if (typeof
|
|
780
|
-
for (var b =
|
|
781
|
-
Ue(
|
|
778
|
+
var C = L(r);
|
|
779
|
+
if (typeof C == "function" && C !== r.entries)
|
|
780
|
+
for (var b = C.call(r), E; !(E = b.next()).done; )
|
|
781
|
+
Ue(E.value) && ut(E.value, h);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -801,8 +801,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
801
801
|
fn(m, r.props, "prop", w, r);
|
|
802
802
|
} else if (h.PropTypes !== void 0 && !Be) {
|
|
803
803
|
Be = !0;
|
|
804
|
-
var
|
|
805
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
804
|
+
var C = Z(h);
|
|
805
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
806
806
|
}
|
|
807
807
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
808
808
|
}
|
|
@@ -820,21 +820,21 @@ Check the top-level render call using <` + m + ">.");
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
var ft = {};
|
|
823
|
-
function ht(r, h, m, w,
|
|
823
|
+
function ht(r, h, m, w, C, b) {
|
|
824
824
|
{
|
|
825
|
-
var
|
|
826
|
-
if (!
|
|
825
|
+
var E = V(r);
|
|
826
|
+
if (!E) {
|
|
827
827
|
var x = "";
|
|
828
828
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
829
|
-
var Y =
|
|
829
|
+
var Y = Cn();
|
|
830
830
|
Y ? x += Y : x += lt();
|
|
831
831
|
var A;
|
|
832
832
|
r === null ? A = "null" : He(r) ? A = "array" : r !== void 0 && r.$$typeof === t ? (A = "<" + (Z(r.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : A = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, x);
|
|
833
833
|
}
|
|
834
|
-
var H =
|
|
834
|
+
var H = En(r, h, m, C, b);
|
|
835
835
|
if (H == null)
|
|
836
836
|
return H;
|
|
837
|
-
if (
|
|
837
|
+
if (E) {
|
|
838
838
|
var ee = h.children;
|
|
839
839
|
if (ee !== void 0)
|
|
840
840
|
if (w)
|
|
@@ -848,11 +848,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
848
848
|
dt(ee, r);
|
|
849
849
|
}
|
|
850
850
|
if (ye.call(h, "key")) {
|
|
851
|
-
var ce = Z(r),
|
|
851
|
+
var ce = Z(r), J = Object.keys(h).filter(function(Dn) {
|
|
852
852
|
return Dn !== "key";
|
|
853
|
-
}), ze =
|
|
853
|
+
}), ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
854
|
if (!ft[ce + ze]) {
|
|
855
|
-
var In =
|
|
855
|
+
var In = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
856
856
|
R(`A props object containing a "key" prop is being spread into JSX:
|
|
857
857
|
let props = %s;
|
|
858
858
|
<%s {...props} />
|
|
@@ -864,25 +864,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
864
864
|
return r === o ? bn(H) : Sn(H), H;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ln(r, h, m) {
|
|
868
868
|
return ht(r, h, m, !0);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Pn(r, h, m) {
|
|
871
871
|
return ht(r, h, m, !1);
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
we.Fragment = o, we.jsx =
|
|
873
|
+
var jn = Pn, kn = Ln;
|
|
874
|
+
we.Fragment = o, we.jsx = jn, we.jsxs = kn;
|
|
875
875
|
})()), we;
|
|
876
876
|
}
|
|
877
877
|
var wt;
|
|
878
|
-
function
|
|
879
|
-
return wt || (wt = 1, process.env.NODE_ENV === "production" ?
|
|
878
|
+
function qn() {
|
|
879
|
+
return wt || (wt = 1, process.env.NODE_ENV === "production" ? je.exports = Un() : je.exports = zn()), je.exports;
|
|
880
880
|
}
|
|
881
|
-
var a =
|
|
882
|
-
const
|
|
883
|
-
playerNotice:
|
|
881
|
+
var a = qn();
|
|
882
|
+
const Wn = "_playerNotice_lq5nz_1", Zn = "_playerNoticeTitle_lq5nz_17", Kn = "_playerNoticeText_lq5nz_26", Yn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
|
|
883
|
+
playerNotice: Wn,
|
|
884
884
|
playerNoticeTitle: Zn,
|
|
885
|
-
playerNoticeText: Kn
|
|
885
|
+
playerNoticeText: Kn,
|
|
886
|
+
playerNoticeLowZIndex: Yn
|
|
886
887
|
}, At = typeof window != "undefined" ? Vn : N;
|
|
887
888
|
function Ke(e, t) {
|
|
888
889
|
const n = O(e);
|
|
@@ -899,29 +900,29 @@ function Ke(e, t) {
|
|
|
899
900
|
};
|
|
900
901
|
}, [t]);
|
|
901
902
|
}
|
|
902
|
-
function
|
|
903
|
+
function Xn(e) {
|
|
903
904
|
const [, t] = X(0);
|
|
904
905
|
Ke(() => t((n) => n + 1), e);
|
|
905
906
|
}
|
|
906
|
-
const
|
|
907
|
+
const Gn = () => Pt((e) => ({
|
|
907
908
|
delay: 0,
|
|
908
909
|
startDate: null,
|
|
909
910
|
setDelay: (t) => e({ delay: t }),
|
|
910
911
|
setStartDate: (t) => e({ startDate: t })
|
|
911
912
|
})), Ot = bt(
|
|
912
913
|
null
|
|
913
|
-
),
|
|
914
|
+
), Jn = ({ children: e }) => {
|
|
914
915
|
const t = O(
|
|
915
916
|
null
|
|
916
917
|
);
|
|
917
|
-
return t.current || (t.current =
|
|
918
|
+
return t.current || (t.current = Gn()), /* @__PURE__ */ a.jsx(Ot.Provider, { value: t.current, children: e });
|
|
918
919
|
}, $ = (e) => {
|
|
919
|
-
const t =
|
|
920
|
+
const t = Lt(Ot);
|
|
920
921
|
if (!t)
|
|
921
922
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
922
|
-
return
|
|
923
|
+
return jt(t, e);
|
|
923
924
|
};
|
|
924
|
-
function
|
|
925
|
+
function Qn(e, t, n) {
|
|
925
926
|
const o = {
|
|
926
927
|
days: 86400,
|
|
927
928
|
hours: 3600,
|
|
@@ -931,15 +932,15 @@ function Jn(e, t, n) {
|
|
|
931
932
|
};
|
|
932
933
|
return e * (o[t] / o[n]);
|
|
933
934
|
}
|
|
934
|
-
function
|
|
935
|
-
return
|
|
935
|
+
function er(e) {
|
|
936
|
+
return Qn(e, "milliseconds", "seconds");
|
|
936
937
|
}
|
|
937
938
|
const _e = (e) => {
|
|
938
939
|
if (isNaN(e) || e === 1 / 0) return "0:00";
|
|
939
940
|
const t = (c) => (c < 10 ? "0" : "") + c, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
|
|
940
941
|
return n === 0 ? `${o}:${t(s)}` : `${n}:${t(o)}:${t(s)}`;
|
|
941
942
|
};
|
|
942
|
-
function
|
|
943
|
+
function tr(e, t) {
|
|
943
944
|
var n, o, s, c, u, i;
|
|
944
945
|
if (typeof Intl != "undefined" && Intl.DateTimeFormat)
|
|
945
946
|
try {
|
|
@@ -953,25 +954,25 @@ function er(e, t) {
|
|
|
953
954
|
second: "2-digit",
|
|
954
955
|
hour12: !1
|
|
955
956
|
}).formatToParts(e), g = parseInt(
|
|
956
|
-
((n = d.find((
|
|
957
|
+
((n = d.find((L) => L.type === "year")) == null ? void 0 : n.value) || "0",
|
|
957
958
|
10
|
|
958
959
|
), y = parseInt(
|
|
959
|
-
((o = d.find((
|
|
960
|
+
((o = d.find((L) => L.type === "month")) == null ? void 0 : o.value) || "0",
|
|
960
961
|
10
|
|
961
962
|
) - 1, v = parseInt(
|
|
962
|
-
((s = d.find((
|
|
963
|
+
((s = d.find((L) => L.type === "day")) == null ? void 0 : s.value) || "0",
|
|
963
964
|
10
|
|
964
965
|
), _ = parseInt(
|
|
965
|
-
((c = d.find((
|
|
966
|
+
((c = d.find((L) => L.type === "hour")) == null ? void 0 : c.value) || "0",
|
|
966
967
|
10
|
|
967
|
-
),
|
|
968
|
-
((u = d.find((
|
|
968
|
+
), j = parseInt(
|
|
969
|
+
((u = d.find((L) => L.type === "minute")) == null ? void 0 : u.value) || "0",
|
|
969
970
|
10
|
|
970
971
|
), S = parseInt(
|
|
971
|
-
((i = d.find((
|
|
972
|
+
((i = d.find((L) => L.type === "second")) == null ? void 0 : i.value) || "0",
|
|
972
973
|
10
|
|
973
974
|
);
|
|
974
|
-
return new Date(g, y, v, _,
|
|
975
|
+
return new Date(g, y, v, _, j, S);
|
|
975
976
|
} catch (l) {
|
|
976
977
|
return console.warn(
|
|
977
978
|
`Failed to convert date to timezone ${t}, returning original date:`,
|
|
@@ -987,23 +988,23 @@ function Ht(e) {
|
|
|
987
988
|
const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
|
|
988
989
|
return e.test(t);
|
|
989
990
|
}
|
|
990
|
-
const $t = Ht(/iPhone|iPad|iPod/i),
|
|
991
|
-
function
|
|
991
|
+
const $t = Ht(/iPhone|iPad|iPod/i), nr = Ht(/Tizen/i);
|
|
992
|
+
function rr() {
|
|
992
993
|
const e = document;
|
|
993
994
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
+
function or(e) {
|
|
996
997
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
997
998
|
}
|
|
998
|
-
function
|
|
999
|
+
function ir(e) {
|
|
999
1000
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
1000
1001
|
}
|
|
1001
|
-
function
|
|
1002
|
+
function sr(e, t) {
|
|
1002
1003
|
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1003
1004
|
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1004
1005
|
};
|
|
1005
1006
|
}
|
|
1006
|
-
const
|
|
1007
|
+
const ar = () => An(), lr = (e, t) => ({
|
|
1007
1008
|
currentTime: 0,
|
|
1008
1009
|
duration: 0,
|
|
1009
1010
|
isEnded: !1,
|
|
@@ -1115,7 +1116,7 @@ const sr = () => An(), ar = (e, t) => ({
|
|
|
1115
1116
|
}));
|
|
1116
1117
|
},
|
|
1117
1118
|
getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
|
|
1118
|
-
|
|
1119
|
+
er(Date.now() - t().pauseTime).toFixed(0)
|
|
1119
1120
|
),
|
|
1120
1121
|
play: () => {
|
|
1121
1122
|
const n = t().techRef.current;
|
|
@@ -1162,11 +1163,11 @@ const sr = () => An(), ar = (e, t) => ({
|
|
|
1162
1163
|
isLoading: !1
|
|
1163
1164
|
});
|
|
1164
1165
|
}
|
|
1165
|
-
}),
|
|
1166
|
+
}), cr = (e, t) => ({
|
|
1166
1167
|
isIdle: !1,
|
|
1167
1168
|
setIsIdle: (n) => e({ isIdle: n }),
|
|
1168
1169
|
resetIdle: () => t().eventEmitter.emit("resetIdle")
|
|
1169
|
-
}),
|
|
1170
|
+
}), ur = (e) => ({
|
|
1170
1171
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
1171
1172
|
addIdleLock: (t) => e((n) => ({
|
|
1172
1173
|
idleLocks: new Set(n.idleLocks).add(t)
|
|
@@ -1175,48 +1176,48 @@ const sr = () => An(), ar = (e, t) => ({
|
|
|
1175
1176
|
const o = new Set(n.idleLocks);
|
|
1176
1177
|
return o.delete(t), { idleLocks: o };
|
|
1177
1178
|
})
|
|
1178
|
-
}),
|
|
1179
|
+
}), dr = (e, t) => ({
|
|
1179
1180
|
level: null,
|
|
1180
1181
|
levels: null,
|
|
1181
1182
|
setLevels: (n) => e({ levels: n }),
|
|
1182
1183
|
setLevel: (n) => {
|
|
1183
1184
|
n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
|
|
1184
1185
|
}
|
|
1185
|
-
}),
|
|
1186
|
+
}), fr = (e, t) => ({
|
|
1186
1187
|
isFullscreen: !1,
|
|
1187
1188
|
isFullscreenReady: !1,
|
|
1188
1189
|
exitFullscreen: () => {
|
|
1189
|
-
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }),
|
|
1190
|
+
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), ir(document), e({ isFullscreen: !1 });
|
|
1190
1191
|
},
|
|
1191
1192
|
requestFullscreen: () => {
|
|
1192
1193
|
const n = t().techRef.current, o = t().containerRef.current;
|
|
1193
1194
|
if (!n || !o) return;
|
|
1194
1195
|
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
|
|
1195
1196
|
const s = $t ? n : o;
|
|
1196
|
-
s &&
|
|
1197
|
+
s && or(s), e({ isFullscreen: !0 });
|
|
1197
1198
|
},
|
|
1198
1199
|
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1199
1200
|
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1200
|
-
}),
|
|
1201
|
+
}), hr = (e) => ({
|
|
1201
1202
|
error: null,
|
|
1202
1203
|
setError: (t) => e({ error: t })
|
|
1203
|
-
}),
|
|
1204
|
-
eventEmitter:
|
|
1205
|
-
}),
|
|
1204
|
+
}), mr = () => ({
|
|
1205
|
+
eventEmitter: ar()
|
|
1206
|
+
}), pr = (e) => () => P({}, e), vr = (e, t) => Pt()((...n) => P(P(P(P(P(P(P(P({}, lr(...n)), cr(...n)), ur(...n)), fr(...n)), dr(...n)), hr(...n)), mr(...n)), pr({
|
|
1206
1207
|
techRef: e,
|
|
1207
1208
|
containerRef: t
|
|
1208
1209
|
})(...n))), Bt = bt(null);
|
|
1209
|
-
function
|
|
1210
|
+
function yr({ children: e }) {
|
|
1210
1211
|
const t = O(null), n = O(null), o = O(null);
|
|
1211
|
-
return t.current || (t.current =
|
|
1212
|
+
return t.current || (t.current = vr(n, o)), /* @__PURE__ */ a.jsx(Bt.Provider, { value: t.current, children: e });
|
|
1212
1213
|
}
|
|
1213
1214
|
const f = (e) => {
|
|
1214
|
-
const t =
|
|
1215
|
+
const t = Lt(Bt);
|
|
1215
1216
|
if (!t)
|
|
1216
1217
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1217
|
-
return
|
|
1218
|
+
return jt(t, e);
|
|
1218
1219
|
};
|
|
1219
|
-
function
|
|
1220
|
+
function gr(e) {
|
|
1220
1221
|
const t = e.split(`
|
|
1221
1222
|
`);
|
|
1222
1223
|
for (const n of t) {
|
|
@@ -1224,12 +1225,12 @@ function yr(e) {
|
|
|
1224
1225
|
if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
|
|
1225
1226
|
const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), c = new Date(s);
|
|
1226
1227
|
if (!isNaN(c.getTime()))
|
|
1227
|
-
return
|
|
1228
|
+
return tr(c, "Europe/Sarajevo");
|
|
1228
1229
|
}
|
|
1229
1230
|
}
|
|
1230
1231
|
return null;
|
|
1231
1232
|
}
|
|
1232
|
-
function
|
|
1233
|
+
function wr(e, t) {
|
|
1233
1234
|
const n = e.split(`
|
|
1234
1235
|
`);
|
|
1235
1236
|
let o = !1;
|
|
@@ -1256,19 +1257,19 @@ function gr(e, t) {
|
|
|
1256
1257
|
}
|
|
1257
1258
|
return null;
|
|
1258
1259
|
}
|
|
1259
|
-
function
|
|
1260
|
+
function Tr(e) {
|
|
1260
1261
|
return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
|
|
1261
1262
|
}
|
|
1262
|
-
async function
|
|
1263
|
+
async function _r(e) {
|
|
1263
1264
|
try {
|
|
1264
|
-
const t =
|
|
1265
|
+
const t = Tr(e);
|
|
1265
1266
|
console.log("Converting to DVR URL:", t);
|
|
1266
1267
|
const n = await fetch(t);
|
|
1267
1268
|
if (!n.ok)
|
|
1268
1269
|
throw new Error(
|
|
1269
1270
|
`Failed to fetch master playlist: ${n.status} ${n.statusText}`
|
|
1270
1271
|
);
|
|
1271
|
-
const o = await n.text(), s =
|
|
1272
|
+
const o = await n.text(), s = wr(
|
|
1272
1273
|
o,
|
|
1273
1274
|
t
|
|
1274
1275
|
);
|
|
@@ -1280,68 +1281,68 @@ async function Tr(e) {
|
|
|
1280
1281
|
throw new Error(
|
|
1281
1282
|
`Failed to fetch chunklist: ${c.status} ${c.statusText}`
|
|
1282
1283
|
);
|
|
1283
|
-
const u = await c.text(), i =
|
|
1284
|
+
const u = await c.text(), i = gr(u);
|
|
1284
1285
|
return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
|
|
1285
1286
|
} catch (t) {
|
|
1286
1287
|
return console.error("Error getting start time from HLS URL:", t), null;
|
|
1287
1288
|
}
|
|
1288
1289
|
}
|
|
1289
|
-
function
|
|
1290
|
+
function xr(n) {
|
|
1290
1291
|
var o = n, { url: e } = o, t = ne(o, ["url"]);
|
|
1291
1292
|
const [s, c] = X(!0), u = $((d) => d.startDate), i = $((d) => d.setStartDate), l = U(async () => {
|
|
1292
|
-
const d = await
|
|
1293
|
+
const d = await _r(e);
|
|
1293
1294
|
d && i(d);
|
|
1294
1295
|
}, [e, i]);
|
|
1295
1296
|
return N(() => {
|
|
1296
1297
|
(async () => {
|
|
1297
1298
|
c(!0), await l(), c(!1);
|
|
1298
1299
|
})();
|
|
1299
|
-
}, [l]), Ke(l, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(
|
|
1300
|
+
}, [l]), Ke(l, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(Er, P({}, t));
|
|
1300
1301
|
}
|
|
1301
|
-
function
|
|
1302
|
+
function Er({
|
|
1302
1303
|
children: e,
|
|
1303
1304
|
messages: t = {}
|
|
1304
1305
|
}) {
|
|
1305
1306
|
var u, i, l;
|
|
1306
1307
|
const n = $((d) => d.startDate), o = f((d) => d.isStarted);
|
|
1307
|
-
return
|
|
1308
|
+
return Xn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ a.jsx(
|
|
1308
1309
|
Cr,
|
|
1309
1310
|
{
|
|
1310
1311
|
startDate: n,
|
|
1311
1312
|
title: (i = t == null ? void 0 : t.eventNotStarted) != null ? i : "Event has not started yet.",
|
|
1312
1313
|
message: (l = t == null ? void 0 : t.eventStartingSoon) != null ? l : "Starting in few seconds..."
|
|
1313
1314
|
}
|
|
1314
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className:
|
|
1315
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
|
|
1315
1316
|
}
|
|
1316
1317
|
function Cr({ startDate: e, title: t, message: n }) {
|
|
1317
1318
|
const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)), c = Math.floor(
|
|
1318
1319
|
o % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1319
1320
|
);
|
|
1320
|
-
return s || c ? /* @__PURE__ */ a.jsxs("div", { className:
|
|
1321
|
-
/* @__PURE__ */ a.jsx("h3", { className:
|
|
1322
|
-
/* @__PURE__ */ a.jsxs("p", { className:
|
|
1321
|
+
return s || c ? /* @__PURE__ */ a.jsxs("div", { className: ie.playerNotice, children: [
|
|
1322
|
+
/* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
|
|
1323
|
+
/* @__PURE__ */ a.jsxs("p", { className: ie.playerNoticeText, children: [
|
|
1323
1324
|
"(",
|
|
1324
1325
|
s > 0 ? `${s}h ${c}m` : `${c}m`,
|
|
1325
1326
|
")"
|
|
1326
1327
|
] })
|
|
1327
|
-
] }) : /* @__PURE__ */ a.jsx("div", { className:
|
|
1328
|
+
] }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
|
|
1328
1329
|
}
|
|
1329
1330
|
function Ut({ callback: e }) {
|
|
1330
1331
|
const t = f((n) => n.eventEmitter);
|
|
1331
1332
|
return N(() => {
|
|
1332
|
-
const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), c = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (S) => e("volumeChange", S), l = (S) => e("fullscreenChange", S), d = (S) => e("qualityChange", S), g = (S) => e("loadedMetadata", S), y = () => e("loadStart", void 0), v = () => e("playing", void 0), _ = () => e("waiting", void 0),
|
|
1333
|
-
return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", c), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", l), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", _), t.on("error",
|
|
1334
|
-
t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", c), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", l), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", _), t.off("error",
|
|
1333
|
+
const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), c = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (S) => e("volumeChange", S), l = (S) => e("fullscreenChange", S), d = (S) => e("qualityChange", S), g = (S) => e("loadedMetadata", S), y = () => e("loadStart", void 0), v = () => e("playing", void 0), _ = () => e("waiting", void 0), j = () => e("error", void 0);
|
|
1334
|
+
return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", c), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", l), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", _), t.on("error", j), () => {
|
|
1335
|
+
t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", c), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", l), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", _), t.off("error", j);
|
|
1335
1336
|
};
|
|
1336
1337
|
}, [e, t]), null;
|
|
1337
1338
|
}
|
|
1338
1339
|
const zt = (e, t = 0) => parseInt(
|
|
1339
1340
|
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
1340
|
-
),
|
|
1341
|
+
), qt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Rr = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
|
|
1341
1342
|
const o = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
|
|
1342
1343
|
return `${parseFloat((e / Math.pow(1024, c)).toFixed(o))}${s[c]}`;
|
|
1343
1344
|
};
|
|
1344
|
-
function
|
|
1345
|
+
function br({
|
|
1345
1346
|
isAuto: e,
|
|
1346
1347
|
level: t,
|
|
1347
1348
|
levels: n
|
|
@@ -1359,17 +1360,17 @@ function Sr({
|
|
|
1359
1360
|
const { bitrate: u, height: i, index: l } = c;
|
|
1360
1361
|
s.push({
|
|
1361
1362
|
sid: `quality-level-${l}`,
|
|
1362
|
-
label: i ? `${i}p` :
|
|
1363
|
+
label: i ? `${i}p` : Sr(u),
|
|
1363
1364
|
value: l,
|
|
1364
1365
|
selected: o === 1 || !e && l === t
|
|
1365
1366
|
});
|
|
1366
1367
|
}), s;
|
|
1367
1368
|
}
|
|
1368
|
-
function
|
|
1369
|
+
function Lr({ callback: e }) {
|
|
1369
1370
|
const t = $((c) => c.delay), n = $((c) => c.startDate), o = n ? n.getTime() : 0, s = f((c) => c.eventEmitter);
|
|
1370
1371
|
return N(() => {
|
|
1371
1372
|
const c = () => e("timeUpdate", {
|
|
1372
|
-
currentTime:
|
|
1373
|
+
currentTime: qt(o, t),
|
|
1373
1374
|
duration: -1
|
|
1374
1375
|
});
|
|
1375
1376
|
return s.on("timeUpdate", c), () => {
|
|
@@ -1377,7 +1378,7 @@ function br({ callback: e }) {
|
|
|
1377
1378
|
};
|
|
1378
1379
|
}, [e, s]), /* @__PURE__ */ a.jsx(Ut, { callback: e });
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
+
function Wt() {
|
|
1381
1382
|
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), c = f((i) => i.volume), u = U(
|
|
1382
1383
|
(i) => {
|
|
1383
1384
|
let l = !1;
|
|
@@ -1441,19 +1442,19 @@ function Pr() {
|
|
|
1441
1442
|
);
|
|
1442
1443
|
return N(() => (document.addEventListener("keydown", u), () => {
|
|
1443
1444
|
document.removeEventListener("keydown", u);
|
|
1444
|
-
}), [u]), /* @__PURE__ */ a.jsx(
|
|
1445
|
+
}), [u]), /* @__PURE__ */ a.jsx(Wt, {});
|
|
1445
1446
|
}
|
|
1446
1447
|
function Zt({ children: e }) {
|
|
1447
|
-
return /* @__PURE__ */ a.jsx(
|
|
1448
|
+
return /* @__PURE__ */ a.jsx(yr, { children: e });
|
|
1448
1449
|
}
|
|
1449
1450
|
function jr({ children: e }) {
|
|
1450
|
-
return /* @__PURE__ */ a.jsx(
|
|
1451
|
+
return /* @__PURE__ */ a.jsx(Jn, { children: /* @__PURE__ */ a.jsx(Zt, { children: e }) });
|
|
1451
1452
|
}
|
|
1452
|
-
function
|
|
1453
|
-
const o = O(null), s = f((T) => T.level), c = f((T) => T.levels), u = f((T) => T.setLevel), i = f((T) => T.setLevels), l = f((T) => T.techRef), d = f((T) => T.setError), g = O(0), y = O(null), v = 50, _ = 1e4,
|
|
1453
|
+
function kr({ url: e, isLive: t, messages: n }) {
|
|
1454
|
+
const o = O(null), s = f((T) => T.level), c = f((T) => T.levels), u = f((T) => T.setLevel), i = f((T) => T.setLevels), l = f((T) => T.techRef), d = f((T) => T.setError), g = O(0), y = O(null), v = 50, _ = 1e4, j = U(
|
|
1454
1455
|
(T) => {
|
|
1455
1456
|
if (o.current && (o.current.nextLevel = T, u(null), c)) {
|
|
1456
|
-
const I = c.map((p) => he(
|
|
1457
|
+
const I = c.map((p) => he(P({}, p), {
|
|
1457
1458
|
selected: p.value === T
|
|
1458
1459
|
}));
|
|
1459
1460
|
i(I);
|
|
@@ -1462,18 +1463,18 @@ function Lr({ url: e, isLive: t, messages: n }) {
|
|
|
1462
1463
|
[c, u, i, o]
|
|
1463
1464
|
), S = U(() => {
|
|
1464
1465
|
o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
|
|
1465
|
-
}, [e]),
|
|
1466
|
+
}, [e]), L = U(() => {
|
|
1466
1467
|
if (!o.current) return;
|
|
1467
1468
|
console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1468
1469
|
const T = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
|
|
1469
1470
|
i(
|
|
1470
|
-
|
|
1471
|
-
levels: T.map((B,
|
|
1472
|
-
const { bitrate:
|
|
1471
|
+
br({
|
|
1472
|
+
levels: T.map((B, G) => {
|
|
1473
|
+
const { bitrate: W, height: V, width: D } = B;
|
|
1473
1474
|
return {
|
|
1474
|
-
bitrate:
|
|
1475
|
+
bitrate: W,
|
|
1475
1476
|
height: V,
|
|
1476
|
-
index:
|
|
1477
|
+
index: G,
|
|
1477
1478
|
width: D
|
|
1478
1479
|
};
|
|
1479
1480
|
}),
|
|
@@ -1484,7 +1485,7 @@ function Lr({ url: e, isLive: t, messages: n }) {
|
|
|
1484
1485
|
}, [d, i]), M = U(
|
|
1485
1486
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1486
1487
|
(T, I) => {
|
|
1487
|
-
var p;
|
|
1488
|
+
var p, B;
|
|
1488
1489
|
if (console.error("[Player][HLS] ERROR", T, I), !!o.current && I.fatal)
|
|
1489
1490
|
switch (I.type) {
|
|
1490
1491
|
case re.ErrorTypes.NETWORK_ERROR:
|
|
@@ -1492,14 +1493,18 @@ function Lr({ url: e, isLive: t, messages: n }) {
|
|
|
1492
1493
|
if (o.current)
|
|
1493
1494
|
try {
|
|
1494
1495
|
console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
|
|
1495
|
-
} catch (
|
|
1496
|
-
console.error("[Player][HLS] Retry failed:",
|
|
1496
|
+
} catch (G) {
|
|
1497
|
+
console.error("[Player][HLS] Retry failed:", G);
|
|
1497
1498
|
}
|
|
1498
1499
|
}, _)), d({
|
|
1499
1500
|
message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
|
|
1500
|
-
code: "
|
|
1501
|
+
code: "LIVE_MANIFEST_LOAD_ERROR",
|
|
1501
1502
|
tech: "hls"
|
|
1502
|
-
})) :
|
|
1503
|
+
})) : (d({
|
|
1504
|
+
message: (B = n == null ? void 0 : n.unableToPlay) != null ? B : "Unable to play the video. Please try again later.",
|
|
1505
|
+
code: "NETWORK_ERROR",
|
|
1506
|
+
tech: "hls"
|
|
1507
|
+
}), o.current.startLoad());
|
|
1503
1508
|
break;
|
|
1504
1509
|
case re.ErrorTypes.MEDIA_ERROR:
|
|
1505
1510
|
o.current.recoverMediaError();
|
|
@@ -1514,28 +1519,28 @@ function Lr({ url: e, isLive: t, messages: n }) {
|
|
|
1514
1519
|
maxBufferSize: 30 * 1024 * 1024
|
|
1515
1520
|
// 30MB
|
|
1516
1521
|
};
|
|
1517
|
-
|
|
1522
|
+
nr ? (T.backBufferLength = -1, T.enableWorker = !1) : t ? T.backBufferLength = 10 : T.backBufferLength = 60;
|
|
1518
1523
|
try {
|
|
1519
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", re.version), o.current = new re(T), o.current.attachMedia(l.current), o.current.on(re.Events.MEDIA_ATTACHED, S), o.current.on(re.Events.MANIFEST_LOADED,
|
|
1524
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", re.version), o.current = new re(T), o.current.attachMedia(l.current), o.current.on(re.Events.MEDIA_ATTACHED, S), o.current.on(re.Events.MANIFEST_LOADED, L), o.current.on(re.Events.ERROR, M);
|
|
1520
1525
|
} catch (I) {
|
|
1521
1526
|
throw new Error(`Error initializing Hls: ${I}`);
|
|
1522
1527
|
}
|
|
1523
1528
|
}, [
|
|
1524
|
-
|
|
1529
|
+
L,
|
|
1525
1530
|
S,
|
|
1526
1531
|
M,
|
|
1527
1532
|
t,
|
|
1528
1533
|
l,
|
|
1529
1534
|
e
|
|
1530
1535
|
]), k = U(() => {
|
|
1531
|
-
o.current && (o.current.off(re.Events.MEDIA_ATTACHED, S), o.current.off(re.Events.MANIFEST_LOADED,
|
|
1532
|
-
}, [
|
|
1536
|
+
o.current && (o.current.off(re.Events.MEDIA_ATTACHED, S), o.current.off(re.Events.MANIFEST_LOADED, L), o.current.off(re.Events.ERROR, M), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1537
|
+
}, [L, S, M]);
|
|
1533
1538
|
return N(() => {
|
|
1534
|
-
s !== null &&
|
|
1535
|
-
}, [s,
|
|
1539
|
+
s !== null && j(s);
|
|
1540
|
+
}, [s, j]), N(() => (re.isSupported() && R(), k), [k, R]), null;
|
|
1536
1541
|
}
|
|
1537
|
-
const
|
|
1538
|
-
playerVideo:
|
|
1542
|
+
const Ir = "_playerVideo_wc0sm_1", Dr = {
|
|
1543
|
+
playerVideo: Ir
|
|
1539
1544
|
};
|
|
1540
1545
|
function Kt({
|
|
1541
1546
|
url: e,
|
|
@@ -1543,7 +1548,7 @@ function Kt({
|
|
|
1543
1548
|
isMuted: n = !1,
|
|
1544
1549
|
messages: o = {}
|
|
1545
1550
|
}) {
|
|
1546
|
-
const s = f((p) => p.handleDurationChange), c = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), l = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), _ = f((p) => p.handleTimeUpdate),
|
|
1551
|
+
const s = f((p) => p.handleDurationChange), c = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), l = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), _ = f((p) => p.handleTimeUpdate), j = f((p) => p.handleWaiting), S = f((p) => p.handleVolumeChange), L = f((p) => p.handleError), M = f((p) => p.techRef), R = O(null), k = () => t ? {} : {
|
|
1547
1552
|
onDurationChange: s,
|
|
1548
1553
|
onSeeked: y,
|
|
1549
1554
|
onSeeking: v,
|
|
@@ -1552,12 +1557,12 @@ function Kt({
|
|
|
1552
1557
|
(!R.current || Date.now() - R.current >= 1e3) && (_(), R.current = Date.now());
|
|
1553
1558
|
}, I = k();
|
|
1554
1559
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1555
|
-
/* @__PURE__ */ a.jsx(
|
|
1560
|
+
/* @__PURE__ */ a.jsx(kr, { isLive: t, url: e, messages: o }),
|
|
1556
1561
|
/* @__PURE__ */ a.jsx(
|
|
1557
1562
|
"video",
|
|
1558
|
-
|
|
1563
|
+
P({
|
|
1559
1564
|
ref: M,
|
|
1560
|
-
className:
|
|
1565
|
+
className: Dr.playerVideo,
|
|
1561
1566
|
playsInline: !0,
|
|
1562
1567
|
autoPlay: !0,
|
|
1563
1568
|
controls: !1,
|
|
@@ -1565,20 +1570,20 @@ function Kt({
|
|
|
1565
1570
|
preload: "auto",
|
|
1566
1571
|
crossOrigin: "anonymous",
|
|
1567
1572
|
onEnded: c,
|
|
1568
|
-
onError:
|
|
1573
|
+
onError: L,
|
|
1569
1574
|
onLoadedMetadata: u,
|
|
1570
1575
|
onLoadStart: i,
|
|
1571
1576
|
onPause: l,
|
|
1572
1577
|
onPlay: d,
|
|
1573
1578
|
onPlaying: g,
|
|
1574
|
-
onWaiting:
|
|
1579
|
+
onWaiting: j,
|
|
1575
1580
|
onVolumeChange: S,
|
|
1576
1581
|
tabIndex: -1
|
|
1577
1582
|
}, I)
|
|
1578
1583
|
)
|
|
1579
1584
|
] });
|
|
1580
1585
|
}
|
|
1581
|
-
function
|
|
1586
|
+
function Fr({ url: e, messages: t = {} }) {
|
|
1582
1587
|
const [n, o] = X(null), s = $((u) => u.delay), c = U(async () => {
|
|
1583
1588
|
o(
|
|
1584
1589
|
s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
|
|
@@ -1588,7 +1593,7 @@ function Dr({ url: e, messages: t = {} }) {
|
|
|
1588
1593
|
c();
|
|
1589
1594
|
}, [c]), n ? /* @__PURE__ */ a.jsx(Kt, { url: n, isLive: !0, messages: t }) : null;
|
|
1590
1595
|
}
|
|
1591
|
-
function
|
|
1596
|
+
function Mr(e, {
|
|
1592
1597
|
defaultValue: t = !1,
|
|
1593
1598
|
initializeWithValue: n = !0
|
|
1594
1599
|
} = {}) {
|
|
@@ -1605,13 +1610,13 @@ function Fr(e, {
|
|
|
1605
1610
|
};
|
|
1606
1611
|
}, [e]), s;
|
|
1607
1612
|
}
|
|
1608
|
-
const
|
|
1609
|
-
playbackButton:
|
|
1610
|
-
seekIndicator:
|
|
1611
|
-
seekIndicatorLeft:
|
|
1612
|
-
seekIndicatorRight:
|
|
1613
|
-
seekIndicatorVisible:
|
|
1614
|
-
},
|
|
1613
|
+
const Nr = "_playbackButton_lgsgw_1", Vr = "_seekIndicator_lgsgw_23", Ar = "_seekIndicatorLeft_lgsgw_49", Or = "_seekIndicatorRight_lgsgw_53", Hr = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1614
|
+
playbackButton: Nr,
|
|
1615
|
+
seekIndicator: Vr,
|
|
1616
|
+
seekIndicatorLeft: Ar,
|
|
1617
|
+
seekIndicatorRight: Or,
|
|
1618
|
+
seekIndicatorVisible: Hr
|
|
1619
|
+
}, $r = 10;
|
|
1615
1620
|
function Yt(i) {
|
|
1616
1621
|
var l = i, {
|
|
1617
1622
|
className: e,
|
|
@@ -1628,9 +1633,9 @@ function Yt(i) {
|
|
|
1628
1633
|
"maxForwardTime",
|
|
1629
1634
|
"maxBackwardTime"
|
|
1630
1635
|
]);
|
|
1631
|
-
return
|
|
1632
|
-
|
|
1633
|
-
|
|
1636
|
+
return Mr("(min-width: 1024px)") ? /* @__PURE__ */ a.jsx(Br, P({ className: e, onClick: t }, u)) : /* @__PURE__ */ a.jsx(
|
|
1637
|
+
Ur,
|
|
1638
|
+
P({
|
|
1634
1639
|
className: e,
|
|
1635
1640
|
maxForwardTime: s,
|
|
1636
1641
|
maxBackwardTime: c,
|
|
@@ -1639,7 +1644,7 @@ function Yt(i) {
|
|
|
1639
1644
|
}, u)
|
|
1640
1645
|
);
|
|
1641
1646
|
}
|
|
1642
|
-
function
|
|
1647
|
+
function Br(o) {
|
|
1643
1648
|
var s = o, { className: e, onClick: t } = s, n = ne(s, ["className", "onClick"]);
|
|
1644
1649
|
const c = O(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), l = f((_) => _.requestFullscreen), d = (_) => {
|
|
1645
1650
|
v() ? (y(), i ? u() : l()) : g(_);
|
|
@@ -1654,14 +1659,14 @@ function $r(o) {
|
|
|
1654
1659
|
y();
|
|
1655
1660
|
}, []), /* @__PURE__ */ a.jsx(
|
|
1656
1661
|
"button",
|
|
1657
|
-
|
|
1662
|
+
P({
|
|
1658
1663
|
onClick: d,
|
|
1659
1664
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1660
1665
|
"aria-label": "Player gestures"
|
|
1661
1666
|
}, n)
|
|
1662
1667
|
);
|
|
1663
1668
|
}
|
|
1664
|
-
function
|
|
1669
|
+
function Ur(u) {
|
|
1665
1670
|
var i = u, {
|
|
1666
1671
|
className: e,
|
|
1667
1672
|
maxForwardTime: t,
|
|
@@ -1679,49 +1684,49 @@ function Br(u) {
|
|
|
1679
1684
|
single: null,
|
|
1680
1685
|
indicator: null,
|
|
1681
1686
|
accumulate: null
|
|
1682
|
-
}), g = O(null), y = O(0), v = O(null), [_,
|
|
1687
|
+
}), g = O(null), y = O(0), v = O(null), [_, j] = X({ visible: !1, direction: null, time: 0 }), S = f((p) => p.isIdle), L = f((p) => p.setIsIdle), M = f((p) => p.resetIdle), R = (p, B) => p < B / 2 ? "backward" : "forward", k = (p) => {
|
|
1683
1688
|
if (!g.current) return;
|
|
1684
1689
|
const B = p.changedTouches[0];
|
|
1685
1690
|
if (!B) return;
|
|
1686
|
-
const
|
|
1687
|
-
if (V < 0 || V >
|
|
1691
|
+
const G = Date.now(), W = g.current.getBoundingClientRect(), V = B.clientX - W.left, D = B.clientY - W.top;
|
|
1692
|
+
if (V < 0 || V > W.width || D < 0 || D > W.height)
|
|
1688
1693
|
return;
|
|
1689
|
-
const Q = l.current, Z = Q ?
|
|
1694
|
+
const Q = l.current, Z = Q ? G - Q.time : 1 / 0, z = R(V, W.width), oe = v.current !== null && v.current === z && Q !== null && Z < 700 && Math.abs(V - Q.x) < 100;
|
|
1690
1695
|
if (Q !== null && v.current === null && Z < 300 && Math.abs(V - Q.x) < 50 || oe) {
|
|
1691
1696
|
p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), M(), (v.current === null || v.current !== z) && (y.current = 0, v.current = z);
|
|
1692
1697
|
const te = z === "backward" ? n : t;
|
|
1693
1698
|
y.current = Math.min(
|
|
1694
|
-
y.current +
|
|
1699
|
+
y.current + $r,
|
|
1695
1700
|
te != null ? te : 1 / 0
|
|
1696
1701
|
), T(z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1697
|
-
const
|
|
1698
|
-
|
|
1699
|
-
}, 500), l.current = { time:
|
|
1702
|
+
const q = y.current;
|
|
1703
|
+
q > 0 && (v.current === "backward" ? s == null || s(q) : o == null || o(q), y.current = 0, v.current = null, l.current = null, I(), M()), d.current.accumulate = null;
|
|
1704
|
+
}, 500), l.current = { time: G, x: V };
|
|
1700
1705
|
} else {
|
|
1701
|
-
l.current = { time:
|
|
1706
|
+
l.current = { time: G, x: V }, d.current.single && window.clearTimeout(d.current.single);
|
|
1702
1707
|
const te = v.current !== null ? 700 : 350;
|
|
1703
1708
|
d.current.single = window.setTimeout(() => {
|
|
1704
1709
|
if (v.current === null) {
|
|
1705
1710
|
d.current.single = null;
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1711
|
+
const q = S;
|
|
1712
|
+
L(!q), q && M();
|
|
1708
1713
|
}
|
|
1709
1714
|
l.current = null;
|
|
1710
1715
|
}, te);
|
|
1711
1716
|
}
|
|
1712
1717
|
}, T = (p, B) => {
|
|
1713
|
-
|
|
1718
|
+
j({ visible: !0, direction: p, time: B }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1714
1719
|
I();
|
|
1715
1720
|
}, 700);
|
|
1716
1721
|
}, I = () => {
|
|
1717
|
-
|
|
1722
|
+
j({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1718
1723
|
};
|
|
1719
1724
|
return N(() => () => {
|
|
1720
1725
|
d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
|
|
1721
1726
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1722
1727
|
/* @__PURE__ */ a.jsx(
|
|
1723
1728
|
"button",
|
|
1724
|
-
|
|
1729
|
+
P({
|
|
1725
1730
|
ref: g,
|
|
1726
1731
|
onTouchEnd: k,
|
|
1727
1732
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
@@ -1740,7 +1745,7 @@ function Br(u) {
|
|
|
1740
1745
|
)
|
|
1741
1746
|
] });
|
|
1742
1747
|
}
|
|
1743
|
-
function
|
|
1748
|
+
function zr() {
|
|
1744
1749
|
const e = f((l) => l.isPlaying), t = f((l) => l.pause), n = f((l) => l.getPauseTimeDiff), o = f((l) => l.play), s = $((l) => l.delay), c = $((l) => l.setDelay), u = $((l) => l.startDate), i = u ? u.getTime() : 0;
|
|
1745
1750
|
return /* @__PURE__ */ a.jsx(
|
|
1746
1751
|
Yt,
|
|
@@ -1766,28 +1771,28 @@ function Ur() {
|
|
|
1766
1771
|
}
|
|
1767
1772
|
);
|
|
1768
1773
|
}
|
|
1769
|
-
const
|
|
1770
|
-
playerButton:
|
|
1774
|
+
const qr = "_playerButton_izwqq_1", Wr = "_playerButtonCircle_izwqq_42", Tt = {
|
|
1775
|
+
playerButton: qr,
|
|
1771
1776
|
playerButtonCircle: Wr
|
|
1772
1777
|
}, le = Me(
|
|
1773
1778
|
(s, o) => {
|
|
1774
1779
|
var c = s, { shape: e = "circle", className: t } = c, n = ne(c, ["shape", "className"]);
|
|
1775
1780
|
const u = e === "circle" ? Tt.playerButtonCircle : "", i = [Tt.playerButton, u, t].filter(Boolean).join(" ");
|
|
1776
|
-
return /* @__PURE__ */ a.jsx("button",
|
|
1781
|
+
return /* @__PURE__ */ a.jsx("button", P({ ref: o, className: i }, n));
|
|
1777
1782
|
}
|
|
1778
1783
|
);
|
|
1779
1784
|
le.displayName = "PlayerButton";
|
|
1780
|
-
const
|
|
1781
|
-
liveIndicator:
|
|
1782
|
-
liveIndicatorHasDelay:
|
|
1783
|
-
liveIndicatorNoDelay:
|
|
1785
|
+
const Zr = "_liveIndicator_1jczn_1", Kr = "_liveIndicatorHasDelay_1jczn_9", Yr = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
1786
|
+
liveIndicator: Zr,
|
|
1787
|
+
liveIndicatorHasDelay: Kr,
|
|
1788
|
+
liveIndicatorNoDelay: Yr
|
|
1784
1789
|
};
|
|
1785
|
-
function
|
|
1790
|
+
function Xr(n) {
|
|
1786
1791
|
var o = n, { message: e } = o, t = ne(o, ["message"]);
|
|
1787
1792
|
const s = $((l) => l.delay), c = $((l) => l.setDelay), u = () => {
|
|
1788
1793
|
s && c(0);
|
|
1789
1794
|
}, i = s ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
|
|
1790
|
-
return /* @__PURE__ */ a.jsxs(le, he(
|
|
1795
|
+
return /* @__PURE__ */ a.jsxs(le, he(P({ onClick: u, shape: "square" }, t), { children: [
|
|
1791
1796
|
/* @__PURE__ */ a.jsx("div", { className: i }),
|
|
1792
1797
|
e || "Live"
|
|
1793
1798
|
] }));
|
|
@@ -1814,7 +1819,7 @@ function Gt() {
|
|
|
1814
1819
|
}
|
|
1815
1820
|
);
|
|
1816
1821
|
}
|
|
1817
|
-
function
|
|
1822
|
+
function Gr() {
|
|
1818
1823
|
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = $((i) => i.delay), c = $((i) => i.setDelay), u = () => {
|
|
1819
1824
|
if (e)
|
|
1820
1825
|
t();
|
|
@@ -1825,22 +1830,22 @@ function Xr() {
|
|
|
1825
1830
|
};
|
|
1826
1831
|
return /* @__PURE__ */ a.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
|
|
1827
1832
|
}
|
|
1828
|
-
const
|
|
1829
|
-
progressSlider:
|
|
1830
|
-
tipContainer:
|
|
1831
|
-
tipContainerVisible:
|
|
1832
|
-
tipContainerHidden:
|
|
1833
|
-
tipContent:
|
|
1834
|
-
},
|
|
1835
|
-
sliderRoot:
|
|
1836
|
-
sliderTrack:
|
|
1837
|
-
sliderRange:
|
|
1838
|
-
sliderThumb:
|
|
1833
|
+
const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipContainerVisible_hwzgf_17", to = "_tipContainerHidden_hwzgf_22", no = "_tipContent_hwzgf_27", se = {
|
|
1834
|
+
progressSlider: Jr,
|
|
1835
|
+
tipContainer: Qr,
|
|
1836
|
+
tipContainerVisible: eo,
|
|
1837
|
+
tipContainerHidden: to,
|
|
1838
|
+
tipContent: no
|
|
1839
|
+
}, ro = "_sliderRoot_aeak6_1", oo = "_sliderTrack_aeak6_18", io = "_sliderRange_aeak6_28", so = "_sliderThumb_aeak6_37", Ie = {
|
|
1840
|
+
sliderRoot: ro,
|
|
1841
|
+
sliderTrack: oo,
|
|
1842
|
+
sliderRange: io,
|
|
1843
|
+
sliderThumb: so
|
|
1839
1844
|
}, Ne = Me((c, s) => {
|
|
1840
1845
|
var u = c, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
|
|
1841
1846
|
return /* @__PURE__ */ a.jsxs(
|
|
1842
|
-
|
|
1843
|
-
he(
|
|
1847
|
+
Le.Root,
|
|
1848
|
+
he(P({
|
|
1844
1849
|
ref: s,
|
|
1845
1850
|
min: t,
|
|
1846
1851
|
max: e,
|
|
@@ -1853,8 +1858,8 @@ const Gr = "_progressSlider_hwzgf_1", Jr = "_tipContainer_hwzgf_7", Qr = "_tipCo
|
|
|
1853
1858
|
)
|
|
1854
1859
|
}, o), {
|
|
1855
1860
|
children: [
|
|
1856
|
-
/* @__PURE__ */ a.jsx(
|
|
1857
|
-
/* @__PURE__ */ a.jsx(
|
|
1861
|
+
/* @__PURE__ */ a.jsx(Le.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ a.jsx(Le.Range, { className: Ie.sliderRange }) }),
|
|
1862
|
+
/* @__PURE__ */ a.jsx(Le.Thumb, { className: Ie.sliderThumb })
|
|
1858
1863
|
]
|
|
1859
1864
|
})
|
|
1860
1865
|
);
|
|
@@ -1872,43 +1877,43 @@ function Fe(e) {
|
|
|
1872
1877
|
} : t;
|
|
1873
1878
|
}
|
|
1874
1879
|
const _t = "vod-player-progress-bar";
|
|
1875
|
-
function
|
|
1876
|
-
const e = O(null), t = O(null), [n, o] = X(0), [s, c] = X(0), [u, i] = X(!1), [l, d] = X(-1), [g, y] = X(-1), v = $((D) => D.delay), _ = $((D) => D.startDate),
|
|
1877
|
-
o(
|
|
1878
|
-
}, [v, S,
|
|
1880
|
+
function ao() {
|
|
1881
|
+
const e = O(null), t = O(null), [n, o] = X(0), [s, c] = X(0), [u, i] = X(!1), [l, d] = X(-1), [g, y] = X(-1), v = $((D) => D.delay), _ = $((D) => D.startDate), j = _ ? _.getTime() : 0, S = (/* @__PURE__ */ new Date()).getTime(), L = $((D) => D.setDelay), M = f((D) => D.isPlaying), R = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), T = U(() => {
|
|
1882
|
+
o(qt(j, v)), c(Rr(j, S));
|
|
1883
|
+
}, [v, S, j]), I = parseFloat(
|
|
1879
1884
|
(s ? (g !== -1 ? g : n) / s * 100 : 0).toFixed(1)
|
|
1880
1885
|
), p = (D) => {
|
|
1881
1886
|
y(s * (D[0] / 100)), R(_t);
|
|
1882
1887
|
}, B = () => {
|
|
1883
1888
|
if (g !== -1) {
|
|
1884
|
-
const D = zt(
|
|
1885
|
-
|
|
1889
|
+
const D = zt(j, g);
|
|
1890
|
+
L(D), y(-1), k(_t);
|
|
1886
1891
|
}
|
|
1887
|
-
},
|
|
1892
|
+
}, G = () => i(!0), W = () => i(!1), V = U(
|
|
1888
1893
|
(D) => {
|
|
1889
1894
|
const Q = e.current, Z = t.current;
|
|
1890
1895
|
if (Q && Z) {
|
|
1891
1896
|
const z = Fe(Q), oe = Fe(Z), ue = (D.pageX || D.clientX) - z.left, te = ue / z.width;
|
|
1892
1897
|
if (te < 0) return;
|
|
1893
|
-
let
|
|
1894
|
-
|
|
1898
|
+
let q = ue - oe.width / 2;
|
|
1899
|
+
q < 0 && (q = 0), q > z.width - oe.width && (q = -1), Z.style.left = q > -1 ? `${q}px` : "auto", Z.style.right = q > -1 ? "auto" : "0px";
|
|
1895
1900
|
const ve = s - te * s;
|
|
1896
1901
|
d(ve > 0 ? ve : 0);
|
|
1897
1902
|
}
|
|
1898
|
-
|
|
1903
|
+
G();
|
|
1899
1904
|
},
|
|
1900
1905
|
[s]
|
|
1901
1906
|
);
|
|
1902
1907
|
return Ke(() => T(), M ? 1e3 : null), N(() => {
|
|
1903
1908
|
T();
|
|
1904
|
-
}, [T]), /* @__PURE__ */ a.jsxs("div", { className:
|
|
1909
|
+
}, [T]), /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
|
|
1905
1910
|
/* @__PURE__ */ a.jsx(
|
|
1906
1911
|
Ne,
|
|
1907
1912
|
{
|
|
1908
1913
|
ref: e,
|
|
1909
1914
|
value: [I],
|
|
1910
|
-
onPointerLeave:
|
|
1911
|
-
onPointerDown:
|
|
1915
|
+
onPointerLeave: W,
|
|
1916
|
+
onPointerDown: W,
|
|
1912
1917
|
onPointerMove: V,
|
|
1913
1918
|
onValueChange: p,
|
|
1914
1919
|
onValueCommit: B,
|
|
@@ -1919,13 +1924,13 @@ function so() {
|
|
|
1919
1924
|
"div",
|
|
1920
1925
|
{
|
|
1921
1926
|
ref: t,
|
|
1922
|
-
className: `${
|
|
1923
|
-
children: /* @__PURE__ */ a.jsx("p", { className:
|
|
1927
|
+
className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
1928
|
+
children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: `-${_e(l)}` })
|
|
1924
1929
|
}
|
|
1925
1930
|
)
|
|
1926
1931
|
] });
|
|
1927
1932
|
}
|
|
1928
|
-
function
|
|
1933
|
+
function lo() {
|
|
1929
1934
|
return /* @__PURE__ */ a.jsx(
|
|
1930
1935
|
"svg",
|
|
1931
1936
|
{
|
|
@@ -1936,24 +1941,32 @@ function ao() {
|
|
|
1936
1941
|
}
|
|
1937
1942
|
);
|
|
1938
1943
|
}
|
|
1939
|
-
function
|
|
1944
|
+
function co() {
|
|
1940
1945
|
const e = $((s) => s.startDate), t = $((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
|
|
1941
|
-
return /* @__PURE__ */ a.jsx(le, { onClick: o, children: /* @__PURE__ */ a.jsx(
|
|
1946
|
+
return /* @__PURE__ */ a.jsx(le, { onClick: o, children: /* @__PURE__ */ a.jsx(lo, {}) });
|
|
1942
1947
|
}
|
|
1943
1948
|
function Jt() {
|
|
1944
|
-
const e = f((
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1949
|
+
const e = f((n) => n.error);
|
|
1950
|
+
if (!e) return null;
|
|
1951
|
+
const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
|
|
1952
|
+
return /* @__PURE__ */ a.jsx(
|
|
1953
|
+
"div",
|
|
1954
|
+
{
|
|
1955
|
+
className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
|
|
1956
|
+
children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
|
|
1957
|
+
}
|
|
1958
|
+
);
|
|
1959
|
+
}
|
|
1960
|
+
const uo = "_playerContainer_1fn8l_1", fo = "_controlsBottom_1fn8l_29", ho = "_controlsContainer_1fn8l_45", mo = "_controlsRow_1fn8l_61", po = "_controlsSection_1fn8l_68", vo = "_controlsSectionStart_1fn8l_78", yo = "_controlsSectionEnd_1fn8l_82", K = {
|
|
1961
|
+
playerContainer: uo,
|
|
1962
|
+
controlsBottom: fo,
|
|
1963
|
+
controlsContainer: ho,
|
|
1964
|
+
controlsRow: mo,
|
|
1965
|
+
controlsSection: po,
|
|
1966
|
+
controlsSectionStart: vo,
|
|
1967
|
+
controlsSectionEnd: yo
|
|
1955
1968
|
};
|
|
1956
|
-
function
|
|
1969
|
+
function go() {
|
|
1957
1970
|
return /* @__PURE__ */ a.jsx(
|
|
1958
1971
|
"svg",
|
|
1959
1972
|
{
|
|
@@ -1964,7 +1977,7 @@ function yo() {
|
|
|
1964
1977
|
}
|
|
1965
1978
|
);
|
|
1966
1979
|
}
|
|
1967
|
-
function
|
|
1980
|
+
function wo() {
|
|
1968
1981
|
return /* @__PURE__ */ a.jsx(
|
|
1969
1982
|
"svg",
|
|
1970
1983
|
{
|
|
@@ -1978,7 +1991,7 @@ function go() {
|
|
|
1978
1991
|
function Qt() {
|
|
1979
1992
|
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), s = f((d) => d.setIsFullscreen), c = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = U(
|
|
1980
1993
|
(d) => {
|
|
1981
|
-
d.stopPropagation(), s(
|
|
1994
|
+
d.stopPropagation(), s(rr());
|
|
1982
1995
|
},
|
|
1983
1996
|
[s]
|
|
1984
1997
|
), l = () => {
|
|
@@ -1987,21 +2000,21 @@ function Qt() {
|
|
|
1987
2000
|
return N(() => {
|
|
1988
2001
|
const d = $t ? u.current : e.current;
|
|
1989
2002
|
if (d)
|
|
1990
|
-
return
|
|
2003
|
+
return sr(d, i);
|
|
1991
2004
|
}, [e, i, u]), N(() => {
|
|
1992
2005
|
c(!0);
|
|
1993
|
-
}, [c]), /* @__PURE__ */ a.jsx(le, { onClick: l, children: n ? /* @__PURE__ */ a.jsx(
|
|
2006
|
+
}, [c]), /* @__PURE__ */ a.jsx(le, { onClick: l, children: n ? /* @__PURE__ */ a.jsx(wo, {}) : /* @__PURE__ */ a.jsx(go, {}) });
|
|
1994
2007
|
}
|
|
1995
|
-
const
|
|
1996
|
-
idleCheckContainer:
|
|
1997
|
-
idleCheckContainerIdle:
|
|
1998
|
-
idleCheckContainerActive:
|
|
1999
|
-
},
|
|
2008
|
+
const To = "_idleCheckContainer_iz9tu_1", _o = "_idleCheckContainerIdle_iz9tu_10", xo = "_idleCheckContainerActive_iz9tu_15", qe = {
|
|
2009
|
+
idleCheckContainer: To,
|
|
2010
|
+
idleCheckContainerIdle: _o,
|
|
2011
|
+
idleCheckContainerActive: xo
|
|
2012
|
+
}, Eo = 5 * 1e3;
|
|
2000
2013
|
function en({ children: e }) {
|
|
2001
2014
|
const t = O(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), s = O(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), l = U(() => {
|
|
2002
2015
|
s.current !== null && (window.clearTimeout(s.current), s.current = null);
|
|
2003
2016
|
}, []), d = U(() => {
|
|
2004
|
-
l(), s.current = window.setTimeout(() => o(!0),
|
|
2017
|
+
l(), s.current = window.setTimeout(() => o(!0), Eo);
|
|
2005
2018
|
}, [l]);
|
|
2006
2019
|
N(() => (o(!1), d(), () => {
|
|
2007
2020
|
l();
|
|
@@ -2010,11 +2023,11 @@ function en({ children: e }) {
|
|
|
2010
2023
|
if (!v) return;
|
|
2011
2024
|
const _ = (S) => {
|
|
2012
2025
|
n && (S.stopPropagation(), o(!1), d());
|
|
2013
|
-
},
|
|
2026
|
+
}, j = () => {
|
|
2014
2027
|
n && o(!1), d();
|
|
2015
2028
|
};
|
|
2016
|
-
return v.addEventListener("click", _), v.addEventListener("mousemove",
|
|
2017
|
-
v.removeEventListener("click", _), v.removeEventListener("mousemove",
|
|
2029
|
+
return v.addEventListener("click", _), v.addEventListener("mousemove", j), () => {
|
|
2030
|
+
v.removeEventListener("click", _), v.removeEventListener("mousemove", j);
|
|
2018
2031
|
};
|
|
2019
2032
|
}, [t, n, o, d]), N(() => {
|
|
2020
2033
|
const v = () => {
|
|
@@ -2024,16 +2037,16 @@ function en({ children: e }) {
|
|
|
2024
2037
|
i.off("resetIdle", v);
|
|
2025
2038
|
};
|
|
2026
2039
|
}, [i, o, d]);
|
|
2027
|
-
const g = n && !u, y = `${
|
|
2040
|
+
const g = n && !u, y = `${qe.idleCheckContainer} ${g ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
|
|
2028
2041
|
return /* @__PURE__ */ a.jsx("div", { ref: t, className: y, children: e });
|
|
2029
2042
|
}
|
|
2030
|
-
const Co = "_spinner_oo4hi_10",
|
|
2043
|
+
const Co = "_spinner_oo4hi_10", Ro = {
|
|
2031
2044
|
spinner: Co
|
|
2032
2045
|
};
|
|
2033
|
-
function
|
|
2034
|
-
return /* @__PURE__ */ a.jsx("div",
|
|
2046
|
+
function So(e) {
|
|
2047
|
+
return /* @__PURE__ */ a.jsx("div", P({ className: Ro.spinner }, e));
|
|
2035
2048
|
}
|
|
2036
|
-
function
|
|
2049
|
+
function bo(e, t = 500) {
|
|
2037
2050
|
const [n, o] = X(e);
|
|
2038
2051
|
return N(() => {
|
|
2039
2052
|
const s = window.setTimeout(() => o(e), t);
|
|
@@ -2042,13 +2055,13 @@ function So(e, t = 500) {
|
|
|
2042
2055
|
};
|
|
2043
2056
|
}, [e, t]), n;
|
|
2044
2057
|
}
|
|
2045
|
-
const
|
|
2046
|
-
loadingContainer:
|
|
2058
|
+
const Lo = "_loadingContainer_v9v7r_1", Po = {
|
|
2059
|
+
loadingContainer: Lo
|
|
2047
2060
|
};
|
|
2048
2061
|
function tn(n) {
|
|
2049
2062
|
var o = n, { style: e } = o, t = ne(o, ["style"]);
|
|
2050
2063
|
const s = f((u) => u.isLoading);
|
|
2051
|
-
return
|
|
2064
|
+
return bo(s, 100) ? /* @__PURE__ */ a.jsx("div", he(P({ className: Po.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(So, {}) })) : null;
|
|
2052
2065
|
}
|
|
2053
2066
|
function jo() {
|
|
2054
2067
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -2061,7 +2074,7 @@ function jo() {
|
|
|
2061
2074
|
}
|
|
2062
2075
|
);
|
|
2063
2076
|
}
|
|
2064
|
-
function
|
|
2077
|
+
function ko() {
|
|
2065
2078
|
return /* @__PURE__ */ a.jsx(
|
|
2066
2079
|
"svg",
|
|
2067
2080
|
{
|
|
@@ -2072,18 +2085,18 @@ function Lo() {
|
|
|
2072
2085
|
}
|
|
2073
2086
|
);
|
|
2074
2087
|
}
|
|
2075
|
-
const
|
|
2076
|
-
dropdownMenuContent:
|
|
2077
|
-
dropdownMenuItem:
|
|
2078
|
-
scrollAreaRoot:
|
|
2079
|
-
scrollAreaViewport:
|
|
2080
|
-
scrollAreaScrollbar:
|
|
2081
|
-
scrollAreaThumb:
|
|
2082
|
-
},
|
|
2088
|
+
const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo = "_scrollAreaRoot_11aiz_124", Mo = "_scrollAreaViewport_11aiz_132", No = "_scrollAreaScrollbar_11aiz_140", Vo = "_scrollAreaThumb_11aiz_167", pe = {
|
|
2089
|
+
dropdownMenuContent: Io,
|
|
2090
|
+
dropdownMenuItem: Do,
|
|
2091
|
+
scrollAreaRoot: Fo,
|
|
2092
|
+
scrollAreaViewport: Mo,
|
|
2093
|
+
scrollAreaScrollbar: No,
|
|
2094
|
+
scrollAreaThumb: Vo
|
|
2095
|
+
}, Ao = xe.Root, Oo = xe.Trigger, Ho = xe.Portal, nn = Me((c, s) => {
|
|
2083
2096
|
var u = c, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
2084
2097
|
return /* @__PURE__ */ a.jsx(
|
|
2085
2098
|
xe.Content,
|
|
2086
|
-
he(
|
|
2099
|
+
he(P({
|
|
2087
2100
|
ref: s,
|
|
2088
2101
|
sideOffset: e,
|
|
2089
2102
|
className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
|
|
@@ -2095,19 +2108,19 @@ const ko = "_dropdownMenuContent_11aiz_1", Io = "_dropdownMenuItem_11aiz_82", Do
|
|
|
2095
2108
|
}
|
|
2096
2109
|
}, o), {
|
|
2097
2110
|
children: /* @__PURE__ */ a.jsxs(
|
|
2098
|
-
|
|
2111
|
+
Pe.Root,
|
|
2099
2112
|
{
|
|
2100
2113
|
className: pe.scrollAreaRoot,
|
|
2101
2114
|
type: "always",
|
|
2102
2115
|
scrollHideDelay: 0,
|
|
2103
2116
|
children: [
|
|
2104
|
-
/* @__PURE__ */ a.jsx(
|
|
2117
|
+
/* @__PURE__ */ a.jsx(Pe.Viewport, { className: pe.scrollAreaViewport, children: n }),
|
|
2105
2118
|
/* @__PURE__ */ a.jsx(
|
|
2106
|
-
|
|
2119
|
+
Pe.Scrollbar,
|
|
2107
2120
|
{
|
|
2108
2121
|
className: pe.scrollAreaScrollbar,
|
|
2109
2122
|
orientation: "vertical",
|
|
2110
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2123
|
+
children: /* @__PURE__ */ a.jsx(Pe.Thumb, { className: pe.scrollAreaThumb })
|
|
2111
2124
|
}
|
|
2112
2125
|
)
|
|
2113
2126
|
]
|
|
@@ -2126,7 +2139,7 @@ const rn = Me((s, o) => {
|
|
|
2126
2139
|
};
|
|
2127
2140
|
return /* @__PURE__ */ a.jsx(xe.Close, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
2128
2141
|
"div",
|
|
2129
|
-
|
|
2142
|
+
P({
|
|
2130
2143
|
ref: o,
|
|
2131
2144
|
className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
|
|
2132
2145
|
role: "menuitem",
|
|
@@ -2145,9 +2158,9 @@ function on() {
|
|
|
2145
2158
|
},
|
|
2146
2159
|
[o, s]
|
|
2147
2160
|
);
|
|
2148
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2149
|
-
/* @__PURE__ */ a.jsx(
|
|
2150
|
-
/* @__PURE__ */ a.jsx(
|
|
2161
|
+
return /* @__PURE__ */ a.jsxs(Ao, { open: e, onOpenChange: i, children: [
|
|
2162
|
+
/* @__PURE__ */ a.jsx(Oo, { asChild: !0, children: /* @__PURE__ */ a.jsx(le, { children: /* @__PURE__ */ a.jsx(ko, {}) }) }),
|
|
2163
|
+
/* @__PURE__ */ a.jsx(Ho, { container: n.current, children: /* @__PURE__ */ a.jsx(nn, { side: "top", align: "end", children: c == null ? void 0 : c.map((l) => /* @__PURE__ */ a.jsxs(
|
|
2151
2164
|
rn,
|
|
2152
2165
|
{
|
|
2153
2166
|
onClick: () => u(l.value),
|
|
@@ -2160,7 +2173,7 @@ function on() {
|
|
|
2160
2173
|
)) }) })
|
|
2161
2174
|
] });
|
|
2162
2175
|
}
|
|
2163
|
-
function
|
|
2176
|
+
function $o() {
|
|
2164
2177
|
return /* @__PURE__ */ a.jsx(
|
|
2165
2178
|
"svg",
|
|
2166
2179
|
{
|
|
@@ -2171,7 +2184,7 @@ function Ho() {
|
|
|
2171
2184
|
}
|
|
2172
2185
|
);
|
|
2173
2186
|
}
|
|
2174
|
-
function
|
|
2187
|
+
function Bo() {
|
|
2175
2188
|
return /* @__PURE__ */ a.jsx(
|
|
2176
2189
|
"svg",
|
|
2177
2190
|
{
|
|
@@ -2182,7 +2195,7 @@ function $o() {
|
|
|
2182
2195
|
}
|
|
2183
2196
|
);
|
|
2184
2197
|
}
|
|
2185
|
-
function
|
|
2198
|
+
function Uo() {
|
|
2186
2199
|
return /* @__PURE__ */ a.jsx(
|
|
2187
2200
|
"svg",
|
|
2188
2201
|
{
|
|
@@ -2193,19 +2206,19 @@ function Bo() {
|
|
|
2193
2206
|
}
|
|
2194
2207
|
);
|
|
2195
2208
|
}
|
|
2196
|
-
const
|
|
2197
|
-
volumeContainer:
|
|
2198
|
-
volumeSlider:
|
|
2199
|
-
},
|
|
2209
|
+
const zo = "_volumeContainer_4d6jg_1", qo = "_volumeSlider_4d6jg_8", Et = {
|
|
2210
|
+
volumeContainer: zo,
|
|
2211
|
+
volumeSlider: qo
|
|
2212
|
+
}, Ct = "volume";
|
|
2200
2213
|
function sn() {
|
|
2201
2214
|
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), s = (i) => {
|
|
2202
|
-
e(i[0]), n(
|
|
2215
|
+
e(i[0]), n(Ct);
|
|
2203
2216
|
}, c = () => {
|
|
2204
|
-
o(
|
|
2217
|
+
o(Ct);
|
|
2205
2218
|
}, u = () => e(t ? 0 : 100);
|
|
2206
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2207
|
-
/* @__PURE__ */ a.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx(
|
|
2208
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
2219
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Et.volumeContainer, children: [
|
|
2220
|
+
/* @__PURE__ */ a.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Bo, {}) : /* @__PURE__ */ a.jsx(Uo, {}) }),
|
|
2221
|
+
/* @__PURE__ */ a.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ a.jsx(
|
|
2209
2222
|
Ne,
|
|
2210
2223
|
{
|
|
2211
2224
|
value: [t],
|
|
@@ -2215,8 +2228,8 @@ function sn() {
|
|
|
2215
2228
|
) })
|
|
2216
2229
|
] });
|
|
2217
2230
|
}
|
|
2218
|
-
function
|
|
2219
|
-
return /* @__PURE__ */ a.jsx(jr, { children: /* @__PURE__ */ a.jsx(Wo,
|
|
2231
|
+
function li(e) {
|
|
2232
|
+
return /* @__PURE__ */ a.jsx(jr, { children: /* @__PURE__ */ a.jsx(Wo, P({}, e)) });
|
|
2220
2233
|
}
|
|
2221
2234
|
function Wo({ url: e, messages: t, onEvent: n }) {
|
|
2222
2235
|
const o = f((s) => s.containerRef);
|
|
@@ -2227,7 +2240,7 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2227
2240
|
className: K.playerContainer,
|
|
2228
2241
|
children: [
|
|
2229
2242
|
/* @__PURE__ */ a.jsxs(
|
|
2230
|
-
|
|
2243
|
+
xr,
|
|
2231
2244
|
{
|
|
2232
2245
|
url: e,
|
|
2233
2246
|
messages: {
|
|
@@ -2236,7 +2249,7 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2236
2249
|
},
|
|
2237
2250
|
children: [
|
|
2238
2251
|
/* @__PURE__ */ a.jsx(
|
|
2239
|
-
|
|
2252
|
+
Fr,
|
|
2240
2253
|
{
|
|
2241
2254
|
url: e,
|
|
2242
2255
|
messages: {
|
|
@@ -2247,17 +2260,17 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2247
2260
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
2248
2261
|
/* @__PURE__ */ a.jsx(tn, {}),
|
|
2249
2262
|
/* @__PURE__ */ a.jsxs(en, { children: [
|
|
2250
|
-
/* @__PURE__ */ a.jsx(
|
|
2263
|
+
/* @__PURE__ */ a.jsx(zr, {}),
|
|
2251
2264
|
/* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
|
|
2252
|
-
/* @__PURE__ */ a.jsx(
|
|
2265
|
+
/* @__PURE__ */ a.jsx(ao, {}),
|
|
2253
2266
|
/* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
|
|
2254
2267
|
/* @__PURE__ */ a.jsxs(
|
|
2255
2268
|
"div",
|
|
2256
2269
|
{
|
|
2257
2270
|
className: `${K.controlsSection} ${K.controlsSectionStart}`,
|
|
2258
2271
|
children: [
|
|
2259
|
-
/* @__PURE__ */ a.jsx(
|
|
2260
|
-
/* @__PURE__ */ a.jsx(
|
|
2272
|
+
/* @__PURE__ */ a.jsx(Gr, {}),
|
|
2273
|
+
/* @__PURE__ */ a.jsx(co, {}),
|
|
2261
2274
|
/* @__PURE__ */ a.jsx(sn, {})
|
|
2262
2275
|
]
|
|
2263
2276
|
}
|
|
@@ -2267,7 +2280,7 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2267
2280
|
{
|
|
2268
2281
|
className: `${K.controlsSection} ${K.controlsSectionEnd}`,
|
|
2269
2282
|
children: [
|
|
2270
|
-
/* @__PURE__ */ a.jsx(
|
|
2283
|
+
/* @__PURE__ */ a.jsx(Xr, { message: t == null ? void 0 : t.live }),
|
|
2271
2284
|
/* @__PURE__ */ a.jsx(on, {}),
|
|
2272
2285
|
/* @__PURE__ */ a.jsx(Qt, {})
|
|
2273
2286
|
]
|
|
@@ -2280,12 +2293,12 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2280
2293
|
}
|
|
2281
2294
|
),
|
|
2282
2295
|
/* @__PURE__ */ a.jsx(Pr, {}),
|
|
2283
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2296
|
+
n && /* @__PURE__ */ a.jsx(Lr, { callback: n })
|
|
2284
2297
|
]
|
|
2285
2298
|
}
|
|
2286
2299
|
);
|
|
2287
2300
|
}
|
|
2288
|
-
function
|
|
2301
|
+
function Zo() {
|
|
2289
2302
|
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), s = f((u) => u.duration), c = f((u) => u.seek);
|
|
2290
2303
|
return /* @__PURE__ */ a.jsx(
|
|
2291
2304
|
Yt,
|
|
@@ -2306,34 +2319,34 @@ function qo() {
|
|
|
2306
2319
|
}
|
|
2307
2320
|
);
|
|
2308
2321
|
}
|
|
2309
|
-
function
|
|
2322
|
+
function Ko() {
|
|
2310
2323
|
const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
|
|
2311
2324
|
e ? t() : n();
|
|
2312
2325
|
};
|
|
2313
2326
|
return /* @__PURE__ */ a.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
|
|
2314
2327
|
}
|
|
2315
2328
|
const Rt = "vod-player-progress-bar";
|
|
2316
|
-
function
|
|
2329
|
+
function Yo() {
|
|
2317
2330
|
const e = O(null), t = O(null), [n, o] = X(!1), [s, c] = X(-1), [u, i] = X(-1), l = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), _ = parseFloat(
|
|
2318
2331
|
(d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
|
|
2319
|
-
),
|
|
2332
|
+
), j = (k) => {
|
|
2320
2333
|
i(d * (k[0] / 100)), y(Rt);
|
|
2321
2334
|
}, S = () => {
|
|
2322
2335
|
u !== -1 && (g(u), i(-1), v(Rt));
|
|
2323
|
-
},
|
|
2336
|
+
}, L = () => o(!0), M = () => o(!1), R = U(
|
|
2324
2337
|
(k) => {
|
|
2325
2338
|
const T = e.current, I = t.current;
|
|
2326
2339
|
if (T && I) {
|
|
2327
|
-
const p = Fe(T), B = Fe(I),
|
|
2328
|
-
if (
|
|
2329
|
-
let V =
|
|
2330
|
-
V < 0 && (V = 0), V > p.width - B.width && (V = -1), I.style.left = V > -1 ? `${V}px` : "auto", I.style.right = V > -1 ? "auto" : "0px", c(
|
|
2340
|
+
const p = Fe(T), B = Fe(I), G = (k.pageX || k.clientX) - p.left, W = G / p.width;
|
|
2341
|
+
if (W < 0) return;
|
|
2342
|
+
let V = G - B.width / 2;
|
|
2343
|
+
V < 0 && (V = 0), V > p.width - B.width && (V = -1), I.style.left = V > -1 ? `${V}px` : "auto", I.style.right = V > -1 ? "auto" : "0px", c(W * d);
|
|
2331
2344
|
}
|
|
2332
|
-
|
|
2345
|
+
L();
|
|
2333
2346
|
},
|
|
2334
2347
|
[d]
|
|
2335
2348
|
);
|
|
2336
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2349
|
+
return /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
|
|
2337
2350
|
/* @__PURE__ */ a.jsx(
|
|
2338
2351
|
Ne,
|
|
2339
2352
|
{
|
|
@@ -2342,7 +2355,7 @@ function Ko() {
|
|
|
2342
2355
|
onPointerLeave: M,
|
|
2343
2356
|
onPointerDown: M,
|
|
2344
2357
|
onPointerMove: R,
|
|
2345
|
-
onValueChange:
|
|
2358
|
+
onValueChange: j,
|
|
2346
2359
|
onValueCommit: S,
|
|
2347
2360
|
step: 0.1
|
|
2348
2361
|
}
|
|
@@ -2351,18 +2364,18 @@ function Ko() {
|
|
|
2351
2364
|
"div",
|
|
2352
2365
|
{
|
|
2353
2366
|
ref: t,
|
|
2354
|
-
className: `${
|
|
2355
|
-
children: /* @__PURE__ */ a.jsx("p", { className:
|
|
2367
|
+
className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2368
|
+
children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: _e(s) })
|
|
2356
2369
|
}
|
|
2357
2370
|
)
|
|
2358
2371
|
] });
|
|
2359
2372
|
}
|
|
2360
|
-
const
|
|
2361
|
-
remainingTimeContainer:
|
|
2362
|
-
remainingTime:
|
|
2363
|
-
remainingSeparator:
|
|
2373
|
+
const Xo = "_remainingTimeContainer_1yyhb_1", Go = "_remainingTime_1yyhb_1", Jo = "_remainingSeparator_1yyhb_17", De = {
|
|
2374
|
+
remainingTimeContainer: Xo,
|
|
2375
|
+
remainingTime: Go,
|
|
2376
|
+
remainingSeparator: Jo
|
|
2364
2377
|
};
|
|
2365
|
-
function
|
|
2378
|
+
function Qo() {
|
|
2366
2379
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2367
2380
|
return /* @__PURE__ */ a.jsxs("div", { className: De.remainingTimeContainer, children: [
|
|
2368
2381
|
/* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(e) }),
|
|
@@ -2370,7 +2383,7 @@ function Jo() {
|
|
|
2370
2383
|
/* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(t) })
|
|
2371
2384
|
] });
|
|
2372
2385
|
}
|
|
2373
|
-
function
|
|
2386
|
+
function ei({ callback: e }) {
|
|
2374
2387
|
const t = f((n) => n.eventEmitter);
|
|
2375
2388
|
return N(() => {
|
|
2376
2389
|
const n = (o) => e("timeUpdate", o);
|
|
@@ -2379,7 +2392,7 @@ function Qo({ callback: e }) {
|
|
|
2379
2392
|
};
|
|
2380
2393
|
}, [e, t]), /* @__PURE__ */ a.jsx(Ut, { callback: e });
|
|
2381
2394
|
}
|
|
2382
|
-
function
|
|
2395
|
+
function ti() {
|
|
2383
2396
|
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), s = f((i) => i.play), c = f((i) => i.seek), u = U(
|
|
2384
2397
|
(i) => {
|
|
2385
2398
|
let l = !1;
|
|
@@ -2402,37 +2415,37 @@ function ei() {
|
|
|
2402
2415
|
);
|
|
2403
2416
|
return N(() => (document.addEventListener("keydown", u), () => {
|
|
2404
2417
|
document.removeEventListener("keydown", u);
|
|
2405
|
-
}), [u]), /* @__PURE__ */ a.jsx(
|
|
2418
|
+
}), [u]), /* @__PURE__ */ a.jsx(Wt, {});
|
|
2406
2419
|
}
|
|
2407
|
-
function
|
|
2408
|
-
return /* @__PURE__ */ a.jsx(Zt, { children: /* @__PURE__ */ a.jsx(
|
|
2420
|
+
function ci(e) {
|
|
2421
|
+
return /* @__PURE__ */ a.jsx(Zt, { children: /* @__PURE__ */ a.jsx(ni, P({}, e)) });
|
|
2409
2422
|
}
|
|
2410
|
-
function
|
|
2411
|
-
const
|
|
2423
|
+
function ni({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
2424
|
+
const s = f((u) => u.setStartTime), c = f((u) => u.containerRef);
|
|
2412
2425
|
return N(() => {
|
|
2413
|
-
|
|
2414
|
-
}, [
|
|
2426
|
+
o && s(o);
|
|
2427
|
+
}, [o, s]), /* @__PURE__ */ a.jsxs(
|
|
2415
2428
|
"div",
|
|
2416
2429
|
{
|
|
2417
|
-
ref:
|
|
2430
|
+
ref: c,
|
|
2418
2431
|
className: K.playerContainer,
|
|
2419
2432
|
children: [
|
|
2420
|
-
/* @__PURE__ */ a.jsx(Kt, { url: e, isLive: !1 }),
|
|
2433
|
+
/* @__PURE__ */ a.jsx(Kt, { url: e, isLive: !1, messages: t }),
|
|
2421
2434
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
2422
2435
|
/* @__PURE__ */ a.jsx(tn, {}),
|
|
2423
2436
|
/* @__PURE__ */ a.jsxs(en, { children: [
|
|
2424
|
-
/* @__PURE__ */ a.jsx(
|
|
2437
|
+
/* @__PURE__ */ a.jsx(Zo, {}),
|
|
2425
2438
|
/* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
|
|
2426
|
-
/* @__PURE__ */ a.jsx(
|
|
2439
|
+
/* @__PURE__ */ a.jsx(Yo, {}),
|
|
2427
2440
|
/* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
|
|
2428
2441
|
/* @__PURE__ */ a.jsxs(
|
|
2429
2442
|
"div",
|
|
2430
2443
|
{
|
|
2431
2444
|
className: `${K.controlsSection} ${K.controlsSectionStart}`,
|
|
2432
2445
|
children: [
|
|
2433
|
-
/* @__PURE__ */ a.jsx(
|
|
2446
|
+
/* @__PURE__ */ a.jsx(Ko, {}),
|
|
2434
2447
|
/* @__PURE__ */ a.jsx(sn, {}),
|
|
2435
|
-
/* @__PURE__ */ a.jsx(
|
|
2448
|
+
/* @__PURE__ */ a.jsx(Qo, {})
|
|
2436
2449
|
]
|
|
2437
2450
|
}
|
|
2438
2451
|
),
|
|
@@ -2449,14 +2462,14 @@ function ti({ url: e, onEvent: t, startTime: n }) {
|
|
|
2449
2462
|
] })
|
|
2450
2463
|
] }) })
|
|
2451
2464
|
] }),
|
|
2452
|
-
/* @__PURE__ */ a.jsx(
|
|
2453
|
-
|
|
2465
|
+
/* @__PURE__ */ a.jsx(ti, {}),
|
|
2466
|
+
n && /* @__PURE__ */ a.jsx(ei, { callback: n })
|
|
2454
2467
|
]
|
|
2455
2468
|
}
|
|
2456
2469
|
);
|
|
2457
2470
|
}
|
|
2458
2471
|
export {
|
|
2459
|
-
|
|
2460
|
-
|
|
2472
|
+
li as LivePlayer,
|
|
2473
|
+
ci as VodPlayer
|
|
2461
2474
|
};
|
|
2462
2475
|
//# sourceMappingURL=react-video-player.es.js.map
|