@eluvio/elv-player-js 2.0.12 → 2.0.13
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/.vite/manifest.json +17 -17
- package/dist/{Analytics-JClL9-rw.js → Analytics-BpQvXFBN.js} +1 -1
- package/dist/{Analytics-C-Qtiaj8.mjs → Analytics-C2aNIlgB.mjs} +1 -1
- package/dist/{dash.all.min-DSPta4I8.mjs → dash.all.min-4KPdfQy9.mjs} +1 -1
- package/dist/{dash.all.min-CKG-Nafr.js → dash.all.min-CvyuA1qu.js} +1 -1
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{index-MOXxNSCM.mjs → index-BbdUj9ed.mjs} +1 -1
- package/dist/{index-D2YyP3Tb.js → index-DpcTzcxF.js} +1 -1
- package/dist/{index-m_aqq34s.js → index-cfJzxx0E.js} +3 -3
- package/dist/{index-DRg6NbQr.mjs → index-vNV4wecA.mjs} +177 -172
- package/lib/player/PlayerParameters.js +5 -0
- package/lib/ui/PlayerUI.jsx +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const qt = {
|
|
2
2
|
ui: {
|
|
3
3
|
WEB: "web",
|
|
4
4
|
TV: "tv"
|
|
@@ -76,6 +76,10 @@ const Gt = {
|
|
|
76
76
|
ON: !0,
|
|
77
77
|
ARROW_KEYS_DISABLED: "arrow_keys_disabled"
|
|
78
78
|
},
|
|
79
|
+
showLoader: {
|
|
80
|
+
OFF: !1,
|
|
81
|
+
ON: !0
|
|
82
|
+
},
|
|
79
83
|
collectVideoAnalytics: {
|
|
80
84
|
OFF: !1,
|
|
81
85
|
ON: !0,
|
|
@@ -87,7 +91,7 @@ const Gt = {
|
|
|
87
91
|
}
|
|
88
92
|
}, UG = {
|
|
89
93
|
clientOptions: {
|
|
90
|
-
network:
|
|
94
|
+
network: qt.networks.MAIN,
|
|
91
95
|
client: void 0,
|
|
92
96
|
staticToken: void 0,
|
|
93
97
|
tenantId: void 0,
|
|
@@ -100,16 +104,16 @@ const Gt = {
|
|
|
100
104
|
},
|
|
101
105
|
sourceOptions: {
|
|
102
106
|
protocols: [
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
qt.protocols.HLS,
|
|
108
|
+
qt.protocols.DASH
|
|
105
109
|
],
|
|
106
110
|
drms: [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
qt.drms.FAIRPLAY,
|
|
112
|
+
qt.drms.SAMPLE_AES,
|
|
113
|
+
qt.drms.AES128,
|
|
114
|
+
qt.drms.WIDEVINE,
|
|
115
|
+
qt.drms.CLEAR,
|
|
116
|
+
qt.drms.PLAYREADY
|
|
113
117
|
],
|
|
114
118
|
contentInfo: {
|
|
115
119
|
title: void 0,
|
|
@@ -117,7 +121,7 @@ const Gt = {
|
|
|
117
121
|
description: void 0,
|
|
118
122
|
image: void 0,
|
|
119
123
|
posterImage: void 0,
|
|
120
|
-
type:
|
|
124
|
+
type: qt.type.VOD,
|
|
121
125
|
headers: []
|
|
122
126
|
},
|
|
123
127
|
mediaCollectionOptions: {
|
|
@@ -146,18 +150,19 @@ const Gt = {
|
|
|
146
150
|
playerOptions: {
|
|
147
151
|
appName: void 0,
|
|
148
152
|
backgroundColor: void 0,
|
|
149
|
-
ui:
|
|
150
|
-
controls:
|
|
151
|
-
autoplay:
|
|
152
|
-
muted:
|
|
153
|
-
loop:
|
|
154
|
-
watermark:
|
|
155
|
-
keyboardControls:
|
|
156
|
-
capLevelToPlayerSize:
|
|
157
|
-
title:
|
|
158
|
-
playerProfile:
|
|
159
|
-
collectVideoAnalytics:
|
|
160
|
-
verifyContent:
|
|
153
|
+
ui: qt.ui.WEB,
|
|
154
|
+
controls: qt.controls.AUTO_HIDE,
|
|
155
|
+
autoplay: qt.autoplay.OFF,
|
|
156
|
+
muted: qt.muted.OFF,
|
|
157
|
+
loop: qt.loop.OFF,
|
|
158
|
+
watermark: qt.watermark.ON,
|
|
159
|
+
keyboardControls: qt.keyboardControls.ON,
|
|
160
|
+
capLevelToPlayerSize: qt.capLevelToPlayerSize.OFF,
|
|
161
|
+
title: qt.title.ON,
|
|
162
|
+
playerProfile: qt.playerProfile.DEFAULT,
|
|
163
|
+
collectVideoAnalytics: qt.collectVideoAnalytics.ON,
|
|
164
|
+
verifyContent: qt.verifyContent.OFF,
|
|
165
|
+
showLoader: qt.showLoader.ON,
|
|
161
166
|
hlsjsOptions: void 0,
|
|
162
167
|
dashjsOptions: void 0,
|
|
163
168
|
debugLogging: !1,
|
|
@@ -4415,34 +4420,34 @@ function QG() {
|
|
|
4415
4420
|
case "pointerup":
|
|
4416
4421
|
Pt = Dh;
|
|
4417
4422
|
}
|
|
4418
|
-
var
|
|
4419
|
-
|
|
4423
|
+
var Vt = (f & 4) !== 0, na = !Vt && l === "scroll", $e = Vt ? ut !== null ? ut + "Capture" : null : ut;
|
|
4424
|
+
Vt = [];
|
|
4420
4425
|
for (var ze = Ye, Ve; ze !== null; ) {
|
|
4421
4426
|
Ve = ze;
|
|
4422
4427
|
var vt = Ve.stateNode;
|
|
4423
|
-
if (Ve.tag === 5 && vt !== null && (Ve = vt, $e !== null && (vt = at(ze, $e), vt != null &&
|
|
4428
|
+
if (Ve.tag === 5 && vt !== null && (Ve = vt, $e !== null && (vt = at(ze, $e), vt != null && Vt.push(Xd(ze, vt, Ve)))), na) break;
|
|
4424
4429
|
ze = ze.return;
|
|
4425
4430
|
}
|
|
4426
|
-
0 <
|
|
4431
|
+
0 < Vt.length && (ut = new Pt(ut, jt, null, v, lt), dt.push({ event: ut, listeners: Vt }));
|
|
4427
4432
|
}
|
|
4428
4433
|
}
|
|
4429
4434
|
if (!(f & 7)) {
|
|
4430
4435
|
e: {
|
|
4431
4436
|
if (ut = l === "mouseover" || l === "pointerover", Pt = l === "mouseout" || l === "pointerout", ut && v !== Rt && (jt = v.relatedTarget || v.fromElement) && (Ms(jt) || jt[su])) break e;
|
|
4432
4437
|
if ((Pt || ut) && (ut = lt.window === lt ? lt : (ut = lt.ownerDocument) ? ut.defaultView || ut.parentWindow : window, Pt ? (jt = v.relatedTarget || v.toElement, Pt = Ye, jt = jt ? Ms(jt) : null, jt !== null && (na = Nt(jt), jt !== na || jt.tag !== 5 && jt.tag !== 6) && (jt = null)) : (Pt = null, jt = Ye), Pt !== jt)) {
|
|
4433
|
-
if (
|
|
4434
|
-
for (
|
|
4438
|
+
if (Vt = eu, vt = "onMouseLeave", $e = "onMouseEnter", ze = "mouse", (l === "pointerout" || l === "pointerover") && (Vt = Dh, vt = "onPointerLeave", $e = "onPointerEnter", ze = "pointer"), na = Pt == null ? ut : gf(Pt), Ve = jt == null ? ut : gf(jt), ut = new Vt(vt, ze + "leave", Pt, v, lt), ut.target = na, ut.relatedTarget = Ve, vt = null, Ms(lt) === Ye && (Vt = new Vt($e, ze + "enter", jt, v, lt), Vt.target = Ve, Vt.relatedTarget = na, vt = Vt), na = vt, Pt && jt) t: {
|
|
4439
|
+
for (Vt = Pt, $e = jt, ze = 0, Ve = Vt; Ve; Ve = ac(Ve)) ze++;
|
|
4435
4440
|
for (Ve = 0, vt = $e; vt; vt = ac(vt)) Ve++;
|
|
4436
|
-
for (; 0 < ze - Ve; )
|
|
4441
|
+
for (; 0 < ze - Ve; ) Vt = ac(Vt), ze--;
|
|
4437
4442
|
for (; 0 < Ve - ze; ) $e = ac($e), Ve--;
|
|
4438
4443
|
for (; ze--; ) {
|
|
4439
|
-
if (
|
|
4440
|
-
|
|
4444
|
+
if (Vt === $e || $e !== null && Vt === $e.alternate) break t;
|
|
4445
|
+
Vt = ac(Vt), $e = ac($e);
|
|
4441
4446
|
}
|
|
4442
|
-
|
|
4447
|
+
Vt = null;
|
|
4443
4448
|
}
|
|
4444
|
-
else
|
|
4445
|
-
Pt !== null && Bm(dt, ut, Pt,
|
|
4449
|
+
else Vt = null;
|
|
4450
|
+
Pt !== null && Bm(dt, ut, Pt, Vt, !1), jt !== null && na !== null && Bm(dt, na, jt, Vt, !0);
|
|
4446
4451
|
}
|
|
4447
4452
|
}
|
|
4448
4453
|
e: {
|
|
@@ -4931,7 +4936,7 @@ function QG() {
|
|
|
4931
4936
|
return f($e, hu);
|
|
4932
4937
|
}), Rr && is($e, pn), Jt;
|
|
4933
4938
|
}
|
|
4934
|
-
function
|
|
4939
|
+
function Vt($e, ze, Ve, vt) {
|
|
4935
4940
|
var Jt = Q(Ve);
|
|
4936
4941
|
if (typeof Jt != "function") throw Error(t(150));
|
|
4937
4942
|
if (Ve = Jt.call(Ve), Ve == null) throw Error(t(151));
|
|
@@ -5001,7 +5006,7 @@ function QG() {
|
|
|
5001
5006
|
return fn = Ve._init, na($e, ze, fn(Ve._payload), vt);
|
|
5002
5007
|
}
|
|
5003
5008
|
if (oe(Ve)) return jt($e, ze, Ve, vt);
|
|
5004
|
-
if (Q(Ve)) return
|
|
5009
|
+
if (Q(Ve)) return Vt($e, ze, Ve, vt);
|
|
5005
5010
|
Eo($e, Ve);
|
|
5006
5011
|
}
|
|
5007
5012
|
return typeof Ve == "string" && Ve !== "" || typeof Ve == "number" ? (Ve = "" + Ve, ze !== null && ze.tag === 6 ? (v($e, ze.sibling), ze = I(ze, Ve), ze.return = $e, $e = ze) : (v($e, ze), ze = z0(Ve, $e.mode, vt), ze.return = $e, $e = ze), le($e)) : v($e, ze);
|
|
@@ -5115,10 +5120,10 @@ function QG() {
|
|
|
5115
5120
|
next: null
|
|
5116
5121
|
});
|
|
5117
5122
|
e: {
|
|
5118
|
-
var jt = l,
|
|
5119
|
-
switch (ut = f, Pt = v,
|
|
5123
|
+
var jt = l, Vt = Ae;
|
|
5124
|
+
switch (ut = f, Pt = v, Vt.tag) {
|
|
5120
5125
|
case 1:
|
|
5121
|
-
if (jt =
|
|
5126
|
+
if (jt = Vt.payload, typeof jt == "function") {
|
|
5122
5127
|
dt = jt.call(Pt, dt, ut);
|
|
5123
5128
|
break e;
|
|
5124
5129
|
}
|
|
@@ -5127,7 +5132,7 @@ function QG() {
|
|
|
5127
5132
|
case 3:
|
|
5128
5133
|
jt.flags = jt.flags & -65537 | 128;
|
|
5129
5134
|
case 0:
|
|
5130
|
-
if (jt =
|
|
5135
|
+
if (jt = Vt.payload, ut = typeof jt == "function" ? jt.call(Pt, dt, ut) : jt, ut == null) break e;
|
|
5131
5136
|
dt = ae({}, dt, ut);
|
|
5132
5137
|
break e;
|
|
5133
5138
|
case 2:
|
|
@@ -6345,7 +6350,7 @@ Error generating stack: ` + V.message + `
|
|
|
6345
6350
|
break;
|
|
6346
6351
|
case 1:
|
|
6347
6352
|
if (jt !== null) {
|
|
6348
|
-
var
|
|
6353
|
+
var Vt = jt.memoizedProps, na = jt.memoizedState, $e = f.stateNode, ze = $e.getSnapshotBeforeUpdate(f.elementType === f.type ? Vt : Bi(f.type, Vt), na);
|
|
6349
6354
|
$e.__reactInternalSnapshotBeforeUpdate = ze;
|
|
6350
6355
|
}
|
|
6351
6356
|
break;
|
|
@@ -6545,13 +6550,13 @@ Error generating stack: ` + V.message + `
|
|
|
6545
6550
|
if (Pa(f, l), ko(l), E & 4) {
|
|
6546
6551
|
try {
|
|
6547
6552
|
Df(3, l, l.return), M0(3, l);
|
|
6548
|
-
} catch (
|
|
6549
|
-
Yr(l, l.return,
|
|
6553
|
+
} catch (Vt) {
|
|
6554
|
+
Yr(l, l.return, Vt);
|
|
6550
6555
|
}
|
|
6551
6556
|
try {
|
|
6552
6557
|
Df(5, l, l.return);
|
|
6553
|
-
} catch (
|
|
6554
|
-
Yr(l, l.return,
|
|
6558
|
+
} catch (Vt) {
|
|
6559
|
+
Yr(l, l.return, Vt);
|
|
6555
6560
|
}
|
|
6556
6561
|
}
|
|
6557
6562
|
break;
|
|
@@ -6563,8 +6568,8 @@ Error generating stack: ` + V.message + `
|
|
|
6563
6568
|
var I = l.stateNode;
|
|
6564
6569
|
try {
|
|
6565
6570
|
ge(I, "");
|
|
6566
|
-
} catch (
|
|
6567
|
-
Yr(l, l.return,
|
|
6571
|
+
} catch (Vt) {
|
|
6572
|
+
Yr(l, l.return, Vt);
|
|
6568
6573
|
}
|
|
6569
6574
|
}
|
|
6570
6575
|
if (E & 4 && (I = l.stateNode, I != null)) {
|
|
@@ -6595,8 +6600,8 @@ Error generating stack: ` + V.message + `
|
|
|
6595
6600
|
) : Ee(I, !!V.multiple, V.multiple ? [] : "", !1));
|
|
6596
6601
|
}
|
|
6597
6602
|
I[oc] = V;
|
|
6598
|
-
} catch (
|
|
6599
|
-
Yr(l, l.return,
|
|
6603
|
+
} catch (Vt) {
|
|
6604
|
+
Yr(l, l.return, Vt);
|
|
6600
6605
|
}
|
|
6601
6606
|
}
|
|
6602
6607
|
break;
|
|
@@ -6606,16 +6611,16 @@ Error generating stack: ` + V.message + `
|
|
|
6606
6611
|
I = l.stateNode, V = l.memoizedProps;
|
|
6607
6612
|
try {
|
|
6608
6613
|
I.nodeValue = V;
|
|
6609
|
-
} catch (
|
|
6610
|
-
Yr(l, l.return,
|
|
6614
|
+
} catch (Vt) {
|
|
6615
|
+
Yr(l, l.return, Vt);
|
|
6611
6616
|
}
|
|
6612
6617
|
}
|
|
6613
6618
|
break;
|
|
6614
6619
|
case 3:
|
|
6615
6620
|
if (Pa(f, l), ko(l), E & 4 && v !== null && v.memoizedState.isDehydrated) try {
|
|
6616
6621
|
Gu(f.containerInfo);
|
|
6617
|
-
} catch (
|
|
6618
|
-
Yr(l, l.return,
|
|
6622
|
+
} catch (Vt) {
|
|
6623
|
+
Yr(l, l.return, Vt);
|
|
6619
6624
|
}
|
|
6620
6625
|
break;
|
|
6621
6626
|
case 4:
|
|
@@ -6642,8 +6647,8 @@ Error generating stack: ` + V.message + `
|
|
|
6642
6647
|
E = ut, v = ut.return;
|
|
6643
6648
|
try {
|
|
6644
6649
|
f = E, jt.props = f.memoizedProps, jt.state = f.memoizedState, jt.componentWillUnmount();
|
|
6645
|
-
} catch (
|
|
6646
|
-
Yr(E, v,
|
|
6650
|
+
} catch (Vt) {
|
|
6651
|
+
Yr(E, v, Vt);
|
|
6647
6652
|
}
|
|
6648
6653
|
}
|
|
6649
6654
|
break;
|
|
@@ -6666,15 +6671,15 @@ Error generating stack: ` + V.message + `
|
|
|
6666
6671
|
lt = dt;
|
|
6667
6672
|
try {
|
|
6668
6673
|
I = dt.stateNode, Ye ? (V = I.style, typeof V.setProperty == "function" ? V.setProperty("display", "none", "important") : V.display = "none") : (Ae = dt.stateNode, De = dt.memoizedProps.style, le = De != null && De.hasOwnProperty("display") ? De.display : null, Ae.style.display = Be("display", le));
|
|
6669
|
-
} catch (
|
|
6670
|
-
Yr(l, l.return,
|
|
6674
|
+
} catch (Vt) {
|
|
6675
|
+
Yr(l, l.return, Vt);
|
|
6671
6676
|
}
|
|
6672
6677
|
}
|
|
6673
6678
|
} else if (dt.tag === 6) {
|
|
6674
6679
|
if (lt === null) try {
|
|
6675
6680
|
dt.stateNode.nodeValue = Ye ? "" : dt.memoizedProps;
|
|
6676
|
-
} catch (
|
|
6677
|
-
Yr(l, l.return,
|
|
6681
|
+
} catch (Vt) {
|
|
6682
|
+
Yr(l, l.return, Vt);
|
|
6678
6683
|
}
|
|
6679
6684
|
} else if ((dt.tag !== 22 && dt.tag !== 23 || dt.memoizedState === null || dt === l) && dt.child !== null) {
|
|
6680
6685
|
dt.child.return = dt, dt = dt.child;
|
|
@@ -7185,8 +7190,8 @@ Error generating stack: ` + V.message + `
|
|
|
7185
7190
|
Pt.flags &= -257, ug(Pt, le, Ae, V, f), Pt.mode & 1 && hp(V, Ye, f), f = Pt, De = Ye;
|
|
7186
7191
|
var jt = f.updateQueue;
|
|
7187
7192
|
if (jt === null) {
|
|
7188
|
-
var
|
|
7189
|
-
|
|
7193
|
+
var Vt = /* @__PURE__ */ new Set();
|
|
7194
|
+
Vt.add(De), f.updateQueue = Vt;
|
|
7190
7195
|
} else jt.add(De);
|
|
7191
7196
|
break e;
|
|
7192
7197
|
} else {
|
|
@@ -7366,13 +7371,13 @@ Error generating stack: ` + V.message + `
|
|
|
7366
7371
|
}
|
|
7367
7372
|
var jt = V.alternate;
|
|
7368
7373
|
if (jt !== null) {
|
|
7369
|
-
var
|
|
7370
|
-
if (
|
|
7374
|
+
var Vt = jt.child;
|
|
7375
|
+
if (Vt !== null) {
|
|
7371
7376
|
jt.child = null;
|
|
7372
7377
|
do {
|
|
7373
|
-
var na =
|
|
7374
|
-
|
|
7375
|
-
} while (
|
|
7378
|
+
var na = Vt.sibling;
|
|
7379
|
+
Vt.sibling = null, Vt = na;
|
|
7380
|
+
} while (Vt !== null);
|
|
7376
7381
|
}
|
|
7377
7382
|
}
|
|
7378
7383
|
zt = V;
|
|
@@ -12154,7 +12159,7 @@ Check the render method of \`` + a + "`." : "";
|
|
|
12154
12159
|
if (a === "selectionchange" || a === "keyup" || a === "keydown")
|
|
12155
12160
|
return Ae(E);
|
|
12156
12161
|
}
|
|
12157
|
-
function
|
|
12162
|
+
function Vt(a) {
|
|
12158
12163
|
var s = a.nodeName;
|
|
12159
12164
|
return s && s.toLowerCase() === "input" && (a.type === "checkbox" || a.type === "radio");
|
|
12160
12165
|
}
|
|
@@ -12172,7 +12177,7 @@ Check the render method of \`` + a + "`." : "";
|
|
|
12172
12177
|
}
|
|
12173
12178
|
function Ve(a, s, d, y, _, M, B) {
|
|
12174
12179
|
var K = d ? Q0(d) : window, X, he;
|
|
12175
|
-
if (I(K) ? X = De : hw(K) ? Ye ? X = $e : (X = jt, he = Pt) :
|
|
12180
|
+
if (I(K) ? X = De : hw(K) ? Ye ? X = $e : (X = jt, he = Pt) : Vt(K) && (X = na), X) {
|
|
12176
12181
|
var we = X(s, d);
|
|
12177
12182
|
if (we) {
|
|
12178
12183
|
f(a, we, y, _);
|
|
@@ -33459,7 +33464,7 @@ var nZ = {
|
|
|
33459
33464
|
fromWords: tZ
|
|
33460
33465
|
};
|
|
33461
33466
|
const e9 = /* @__PURE__ */ gh(nZ), ns = "providers/5.7.2", Nv = new Pe(ns);
|
|
33462
|
-
class
|
|
33467
|
+
class Gt {
|
|
33463
33468
|
constructor() {
|
|
33464
33469
|
this.formats = this.getDefaultFormats();
|
|
33465
33470
|
}
|
|
@@ -33468,93 +33473,93 @@ class Vt {
|
|
|
33468
33473
|
return e.transaction = {
|
|
33469
33474
|
hash: u,
|
|
33470
33475
|
type: h,
|
|
33471
|
-
accessList:
|
|
33472
|
-
blockHash:
|
|
33473
|
-
blockNumber:
|
|
33474
|
-
transactionIndex:
|
|
33475
|
-
confirmations:
|
|
33476
|
+
accessList: Gt.allowNull(this.accessList.bind(this), null),
|
|
33477
|
+
blockHash: Gt.allowNull(u, null),
|
|
33478
|
+
blockNumber: Gt.allowNull(p, null),
|
|
33479
|
+
transactionIndex: Gt.allowNull(p, null),
|
|
33480
|
+
confirmations: Gt.allowNull(p, null),
|
|
33476
33481
|
from: t,
|
|
33477
33482
|
// either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas)
|
|
33478
33483
|
// must be set
|
|
33479
|
-
gasPrice:
|
|
33480
|
-
maxPriorityFeePerGas:
|
|
33481
|
-
maxFeePerGas:
|
|
33484
|
+
gasPrice: Gt.allowNull(r),
|
|
33485
|
+
maxPriorityFeePerGas: Gt.allowNull(r),
|
|
33486
|
+
maxFeePerGas: Gt.allowNull(r),
|
|
33482
33487
|
gasLimit: r,
|
|
33483
|
-
to:
|
|
33488
|
+
to: Gt.allowNull(t, null),
|
|
33484
33489
|
value: r,
|
|
33485
33490
|
nonce: p,
|
|
33486
33491
|
data: o,
|
|
33487
|
-
r:
|
|
33488
|
-
s:
|
|
33489
|
-
v:
|
|
33490
|
-
creates:
|
|
33491
|
-
raw:
|
|
33492
|
+
r: Gt.allowNull(this.uint256),
|
|
33493
|
+
s: Gt.allowNull(this.uint256),
|
|
33494
|
+
v: Gt.allowNull(p),
|
|
33495
|
+
creates: Gt.allowNull(t, null),
|
|
33496
|
+
raw: Gt.allowNull(o)
|
|
33492
33497
|
}, e.transactionRequest = {
|
|
33493
|
-
from:
|
|
33494
|
-
nonce:
|
|
33495
|
-
gasLimit:
|
|
33496
|
-
gasPrice:
|
|
33497
|
-
maxPriorityFeePerGas:
|
|
33498
|
-
maxFeePerGas:
|
|
33499
|
-
to:
|
|
33500
|
-
value:
|
|
33501
|
-
data:
|
|
33502
|
-
type:
|
|
33503
|
-
accessList:
|
|
33498
|
+
from: Gt.allowNull(t),
|
|
33499
|
+
nonce: Gt.allowNull(p),
|
|
33500
|
+
gasLimit: Gt.allowNull(r),
|
|
33501
|
+
gasPrice: Gt.allowNull(r),
|
|
33502
|
+
maxPriorityFeePerGas: Gt.allowNull(r),
|
|
33503
|
+
maxFeePerGas: Gt.allowNull(r),
|
|
33504
|
+
to: Gt.allowNull(t),
|
|
33505
|
+
value: Gt.allowNull(r),
|
|
33506
|
+
data: Gt.allowNull(m),
|
|
33507
|
+
type: Gt.allowNull(p),
|
|
33508
|
+
accessList: Gt.allowNull(this.accessList.bind(this), null)
|
|
33504
33509
|
}, e.receiptLog = {
|
|
33505
33510
|
transactionIndex: p,
|
|
33506
33511
|
blockNumber: p,
|
|
33507
33512
|
transactionHash: u,
|
|
33508
33513
|
address: t,
|
|
33509
|
-
topics:
|
|
33514
|
+
topics: Gt.arrayOf(u),
|
|
33510
33515
|
data: o,
|
|
33511
33516
|
logIndex: p,
|
|
33512
33517
|
blockHash: u
|
|
33513
33518
|
}, e.receipt = {
|
|
33514
|
-
to:
|
|
33515
|
-
from:
|
|
33516
|
-
contractAddress:
|
|
33519
|
+
to: Gt.allowNull(this.address, null),
|
|
33520
|
+
from: Gt.allowNull(this.address, null),
|
|
33521
|
+
contractAddress: Gt.allowNull(t, null),
|
|
33517
33522
|
transactionIndex: p,
|
|
33518
33523
|
// should be allowNull(hash), but broken-EIP-658 support is handled in receipt
|
|
33519
|
-
root:
|
|
33524
|
+
root: Gt.allowNull(c),
|
|
33520
33525
|
gasUsed: r,
|
|
33521
|
-
logsBloom:
|
|
33526
|
+
logsBloom: Gt.allowNull(o),
|
|
33522
33527
|
blockHash: u,
|
|
33523
33528
|
transactionHash: u,
|
|
33524
|
-
logs:
|
|
33529
|
+
logs: Gt.arrayOf(this.receiptLog.bind(this)),
|
|
33525
33530
|
blockNumber: p,
|
|
33526
|
-
confirmations:
|
|
33531
|
+
confirmations: Gt.allowNull(p, null),
|
|
33527
33532
|
cumulativeGasUsed: r,
|
|
33528
|
-
effectiveGasPrice:
|
|
33529
|
-
status:
|
|
33533
|
+
effectiveGasPrice: Gt.allowNull(r),
|
|
33534
|
+
status: Gt.allowNull(p),
|
|
33530
33535
|
type: h
|
|
33531
33536
|
}, e.block = {
|
|
33532
|
-
hash:
|
|
33537
|
+
hash: Gt.allowNull(u),
|
|
33533
33538
|
parentHash: u,
|
|
33534
33539
|
number: p,
|
|
33535
33540
|
timestamp: p,
|
|
33536
|
-
nonce:
|
|
33541
|
+
nonce: Gt.allowNull(c),
|
|
33537
33542
|
difficulty: this.difficulty.bind(this),
|
|
33538
33543
|
gasLimit: r,
|
|
33539
33544
|
gasUsed: r,
|
|
33540
|
-
miner:
|
|
33545
|
+
miner: Gt.allowNull(t),
|
|
33541
33546
|
extraData: o,
|
|
33542
|
-
transactions:
|
|
33543
|
-
baseFeePerGas:
|
|
33544
|
-
}, e.blockWithTransactions = Fr(e.block), e.blockWithTransactions.transactions =
|
|
33545
|
-
fromBlock:
|
|
33546
|
-
toBlock:
|
|
33547
|
-
blockHash:
|
|
33548
|
-
address:
|
|
33549
|
-
topics:
|
|
33547
|
+
transactions: Gt.allowNull(Gt.arrayOf(u)),
|
|
33548
|
+
baseFeePerGas: Gt.allowNull(r)
|
|
33549
|
+
}, e.blockWithTransactions = Fr(e.block), e.blockWithTransactions.transactions = Gt.allowNull(Gt.arrayOf(this.transactionResponse.bind(this))), e.filter = {
|
|
33550
|
+
fromBlock: Gt.allowNull(i, void 0),
|
|
33551
|
+
toBlock: Gt.allowNull(i, void 0),
|
|
33552
|
+
blockHash: Gt.allowNull(u, void 0),
|
|
33553
|
+
address: Gt.allowNull(t, void 0),
|
|
33554
|
+
topics: Gt.allowNull(this.topics.bind(this), void 0)
|
|
33550
33555
|
}, e.filterLog = {
|
|
33551
|
-
blockNumber:
|
|
33552
|
-
blockHash:
|
|
33556
|
+
blockNumber: Gt.allowNull(p),
|
|
33557
|
+
blockHash: Gt.allowNull(u),
|
|
33553
33558
|
transactionIndex: p,
|
|
33554
|
-
removed:
|
|
33559
|
+
removed: Gt.allowNull(this.boolean.bind(this)),
|
|
33555
33560
|
address: t,
|
|
33556
|
-
data:
|
|
33557
|
-
topics:
|
|
33561
|
+
data: Gt.allowFalsish(o, "0x"),
|
|
33562
|
+
topics: Gt.arrayOf(u),
|
|
33558
33563
|
transactionHash: u,
|
|
33559
33564
|
logIndex: p
|
|
33560
33565
|
}, e;
|
|
@@ -33651,7 +33656,7 @@ class Vt {
|
|
|
33651
33656
|
}
|
|
33652
33657
|
_block(e, t) {
|
|
33653
33658
|
e.author != null && e.miner == null && (e.miner = e.author);
|
|
33654
|
-
const r = e._difficulty != null ? e._difficulty : e.difficulty, i =
|
|
33659
|
+
const r = e._difficulty != null ? e._difficulty : e.difficulty, i = Gt.check(t, e);
|
|
33655
33660
|
return i._difficulty = r == null ? null : xt.from(r), i;
|
|
33656
33661
|
}
|
|
33657
33662
|
block(e) {
|
|
@@ -33662,11 +33667,11 @@ class Vt {
|
|
|
33662
33667
|
}
|
|
33663
33668
|
// Strict! Used on input.
|
|
33664
33669
|
transactionRequest(e) {
|
|
33665
|
-
return
|
|
33670
|
+
return Gt.check(this.formats.transactionRequest, e);
|
|
33666
33671
|
}
|
|
33667
33672
|
transactionResponse(e) {
|
|
33668
33673
|
e.gas != null && e.gasLimit == null && (e.gasLimit = e.gas), e.to && xt.from(e.to).isZero() && (e.to = "0x0000000000000000000000000000000000000000"), e.input != null && e.data == null && (e.data = e.input), e.to == null && e.creates == null && (e.creates = this.contractAddress(e)), (e.type === 1 || e.type === 2) && e.accessList == null && (e.accessList = []);
|
|
33669
|
-
const t =
|
|
33674
|
+
const t = Gt.check(this.formats.transaction, e);
|
|
33670
33675
|
if (e.chainId != null) {
|
|
33671
33676
|
let r = e.chainId;
|
|
33672
33677
|
Rn(r) && (r = xt.from(r).toNumber()), t.chainId = r;
|
|
@@ -33680,10 +33685,10 @@ class Vt {
|
|
|
33680
33685
|
return fD(e);
|
|
33681
33686
|
}
|
|
33682
33687
|
receiptLog(e) {
|
|
33683
|
-
return
|
|
33688
|
+
return Gt.check(this.formats.receiptLog, e);
|
|
33684
33689
|
}
|
|
33685
33690
|
receipt(e) {
|
|
33686
|
-
const t =
|
|
33691
|
+
const t = Gt.check(this.formats.receipt, e);
|
|
33687
33692
|
if (t.root != null)
|
|
33688
33693
|
if (t.root.length <= 4) {
|
|
33689
33694
|
const r = xt.from(t.root).toNumber();
|
|
@@ -33695,10 +33700,10 @@ class Vt {
|
|
|
33695
33700
|
return Array.isArray(e) ? e.map((t) => this.topics(t)) : e != null ? this.hash(e, !0) : null;
|
|
33696
33701
|
}
|
|
33697
33702
|
filter(e) {
|
|
33698
|
-
return
|
|
33703
|
+
return Gt.check(this.formats.filter, e);
|
|
33699
33704
|
}
|
|
33700
33705
|
filterLog(e) {
|
|
33701
|
-
return
|
|
33706
|
+
return Gt.check(this.formats.filterLog, e);
|
|
33702
33707
|
}
|
|
33703
33708
|
static check(e, t) {
|
|
33704
33709
|
const r = {};
|
|
@@ -34173,7 +34178,7 @@ class x2 extends _h {
|
|
|
34173
34178
|
}
|
|
34174
34179
|
// @TODO: Remove this and just create a singleton formatter
|
|
34175
34180
|
static getFormatter() {
|
|
34176
|
-
return eE == null && (eE = new
|
|
34181
|
+
return eE == null && (eE = new Gt()), eE;
|
|
34177
34182
|
}
|
|
34178
34183
|
// @TODO: Remove this and just use getNetwork
|
|
34179
34184
|
static getNetwork(e) {
|
|
@@ -34794,7 +34799,7 @@ class x2 extends _h {
|
|
|
34794
34799
|
const t = yield ya({ filter: this._getFilter(e) }), r = yield this.perform("getLogs", t);
|
|
34795
34800
|
return r.forEach((i) => {
|
|
34796
34801
|
i.removed == null && (i.removed = !1);
|
|
34797
|
-
}),
|
|
34802
|
+
}), Gt.arrayOf(this.formatter.filterLog.bind(this.formatter))(r);
|
|
34798
34803
|
});
|
|
34799
34804
|
}
|
|
34800
34805
|
getEtherPrice() {
|
|
@@ -36795,7 +36800,7 @@ const WD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36795
36800
|
CloudflareProvider: BD,
|
|
36796
36801
|
EtherscanProvider: zD,
|
|
36797
36802
|
FallbackProvider: jD,
|
|
36798
|
-
Formatter:
|
|
36803
|
+
Formatter: Gt,
|
|
36799
36804
|
InfuraProvider: w5,
|
|
36800
36805
|
InfuraWebSocketProvider: HD,
|
|
36801
36806
|
IpcProvider: $D,
|
|
@@ -49296,7 +49301,7 @@ const ii = {
|
|
|
49296
49301
|
ElvCrypto: async () => {
|
|
49297
49302
|
try {
|
|
49298
49303
|
if (!ii.elvCrypto) {
|
|
49299
|
-
const n = (await import("./index-
|
|
49304
|
+
const n = (await import("./index-BbdUj9ed.mjs")).default;
|
|
49300
49305
|
ii.elvCrypto = await new n().init();
|
|
49301
49306
|
}
|
|
49302
49307
|
return ii.elvCrypto;
|
|
@@ -65586,7 +65591,7 @@ class i2 {
|
|
|
65586
65591
|
constructor({ target: e, video: t, parameters: r, SetErrorMessage: i }) {
|
|
65587
65592
|
this.loading = !0, this.target = e, this.video = t, this.SetErrorMessage = i, this.controls = new pme({ player: this }), this.__settingsListeners = [], this.__listenerDisposers = [], this.__showPlayerProfileForm = !1, this.playbackStarted = !1, this.reloads = 0, this.canPlay = !1;
|
|
65588
65593
|
try {
|
|
65589
|
-
r.playerOptions.hlsjsOptions && Object.keys(r.playerOptions.hlsjsOptions).length > 0 && (this.customHLSOptions = r.playerOptions.hlsjsOptions, r.playerOptions.playerProfile =
|
|
65594
|
+
r.playerOptions.hlsjsOptions && Object.keys(r.playerOptions.hlsjsOptions).length > 0 && (this.customHLSOptions = r.playerOptions.hlsjsOptions, r.playerOptions.playerProfile = qt.playerProfile.CUSTOM);
|
|
65590
65595
|
} catch (o) {
|
|
65591
65596
|
this.Log(o, !0);
|
|
65592
65597
|
}
|
|
@@ -65701,9 +65706,9 @@ class i2 {
|
|
|
65701
65706
|
}
|
|
65702
65707
|
async __Initialize(e, t) {
|
|
65703
65708
|
if (!this.__destroyed) {
|
|
65704
|
-
this.__Reset(), this.loading = !0, this.initTime = Date.now(), this.__SettingsUpdate(), e && (this.originalParameters = Oz(e), this.clientOptions = e.clientOptions, this.sourceOptions = e.sourceOptions, this.playerOptions = e.playerOptions), this.isLive = e.sourceOptions.contentInfo.type ===
|
|
65709
|
+
this.__Reset(), this.loading = !0, this.initTime = Date.now(), this.__SettingsUpdate(), e && (this.originalParameters = Oz(e), this.clientOptions = e.clientOptions, this.sourceOptions = e.sourceOptions, this.playerOptions = e.playerOptions), this.isLive = e.sourceOptions.contentInfo.type === qt.type.LIVE, this.errors = 0, this.__Client();
|
|
65705
65710
|
try {
|
|
65706
|
-
t && (this.video.volume = t.volume, this.video.muted = t.muted, t.playing && (this.playerOptions.autoplay =
|
|
65711
|
+
t && (this.video.volume = t.volume, this.video.muted = t.muted, t.playing && (this.playerOptions.autoplay = qt.autoplay.ON), t.currentTime && this.__RegisterVideoEventListener(
|
|
65707
65712
|
"loadedmetadata",
|
|
65708
65713
|
() => this.video.currentTime = t.currentTime
|
|
65709
65714
|
)), this.__RegisterVideoEventListener("play", () => {
|
|
@@ -65713,7 +65718,7 @@ class i2 {
|
|
|
65713
65718
|
this.canPlay && (isFinite(this.video.duration) ? this.video.duration && this.videoDuration > 0 && this.video.duration - this.videoDuration > 1 && (this.isLive = !0) : this.isLive = !0);
|
|
65714
65719
|
};
|
|
65715
65720
|
this.__RegisterVideoEventListener("canplay", () => {
|
|
65716
|
-
this.initTime && !this.initTimeLogged && (this.Log(`Player initialization: ${((Date.now() - this.initTime) / 1e3).toFixed(2)} seconds`), this.initTimeLogged = !0, this.canPlay = !0, r(), this.playerOptions.autoplay ===
|
|
65721
|
+
this.initTime && !this.initTimeLogged && (this.Log(`Player initialization: ${((Date.now() - this.initTime) / 1e3).toFixed(2)} seconds`), this.initTimeLogged = !0, this.canPlay = !0, r(), this.playerOptions.autoplay === qt.autoplay.ON && this.controls.Play());
|
|
65717
65722
|
}), this.__RegisterVideoEventListener("durationchange", () => {
|
|
65718
65723
|
r(), this.videoDuration = this.video.duration;
|
|
65719
65724
|
}), await this.__LoadCollection(), this.collectionInfo && this.collectionInfo.isPlaylist && this.collectionInfo.mediaIndex < this.collectionInfo.mediaLength - 1 && this.__RegisterVideoEventListener("ended", () => this.controls && this.controls.CollectionPlayNext({ autoplay: !0 }));
|
|
@@ -65722,12 +65727,12 @@ class i2 {
|
|
|
65722
65727
|
const m = this.sourceOptions.playoutParameters.authorizationToken || o.searchParams.get("authorization");
|
|
65723
65728
|
if (this.__destroyed)
|
|
65724
65729
|
return;
|
|
65725
|
-
u === "hls" ? await this.__InitializeHLS({ playoutUrl: o, authorizationToken: m, drm: c, drms: p, multiviewOptions: h }) : await this.__InitializeDash({ playoutUrl: o, authorizationToken: m, drm: c, drms: p, multiviewOptions: h }), this.playerOptions.collectVideoAnalytics && import("./Analytics-
|
|
65730
|
+
u === "hls" ? await this.__InitializeHLS({ playoutUrl: o, authorizationToken: m, drm: c, drms: p, multiviewOptions: h }) : await this.__InitializeDash({ playoutUrl: o, authorizationToken: m, drm: c, drms: p, multiviewOptions: h }), this.playerOptions.collectVideoAnalytics && import("./Analytics-C2aNIlgB.mjs").then(({ InitializeMuxMonitoring: w }) => w({
|
|
65726
65731
|
appName: this.playerOptions.appName || "elv-player-js",
|
|
65727
65732
|
elvPlayer: this,
|
|
65728
65733
|
playoutUrl: o,
|
|
65729
65734
|
authorizationToken: m,
|
|
65730
|
-
disableCookies: this.playerOptions.collectVideoAnalytics ===
|
|
65735
|
+
disableCookies: this.playerOptions.collectVideoAnalytics === qt.collectVideoAnalytics.DISABLE_COOKIES
|
|
65731
65736
|
})), this.playerOptions.verifyContent && setTimeout(() => {
|
|
65732
65737
|
this.__VerifyContent();
|
|
65733
65738
|
}, 1e3), this.playerOptions.playerCallback && this.playerOptions.playerCallback({
|
|
@@ -65757,8 +65762,8 @@ class i2 {
|
|
|
65757
65762
|
}
|
|
65758
65763
|
}
|
|
65759
65764
|
async __InitializeHLS({ playoutUrl: e, authorizationToken: t, drm: r, drms: i, multiviewOptions: o }) {
|
|
65760
|
-
if (this.HLS = (await import("./hls-DHFAkcd1.mjs")).default, [
|
|
65761
|
-
if (this.nativeHLS = !0, r ===
|
|
65765
|
+
if (this.HLS = (await import("./hls-DHFAkcd1.mjs")).default, [qt.drms.FAIRPLAY, qt.drms.SAMPLE_AES].includes(r) || !this.HLS.isSupported()) {
|
|
65766
|
+
if (this.nativeHLS = !0, r === qt.drms.FAIRPLAY ? uW({ playoutOptions: this.sourceOptions.playoutOptions, video: this.video }) : this.video.src = e.toString(), o.enabled) {
|
|
65762
65767
|
const u = o.SwitchView;
|
|
65763
65768
|
o.SwitchView = async (c) => {
|
|
65764
65769
|
await u(c);
|
|
@@ -65767,22 +65772,22 @@ class i2 {
|
|
|
65767
65772
|
} else {
|
|
65768
65773
|
e.searchParams.delete("authorization");
|
|
65769
65774
|
let u = {};
|
|
65770
|
-
(r ===
|
|
65775
|
+
(r === qt.drms.PLAYREADY || r === qt.drms.WIDEVINE) && (u = {
|
|
65771
65776
|
drmSystems: {},
|
|
65772
65777
|
emeEnabled: !0,
|
|
65773
65778
|
licenseXhrSetup: (m, w) => {
|
|
65774
65779
|
m.open("POST", w, !0), m.setRequestHeader("Authorization", `Bearer ${t}`);
|
|
65775
65780
|
}
|
|
65776
|
-
}, r ===
|
|
65781
|
+
}, r === qt.drms.PLAYREADY ? u.drmSystems = {
|
|
65777
65782
|
"com.microsoft.playready": {
|
|
65778
65783
|
licenseUrl: i[r].licenseServers[0]
|
|
65779
65784
|
}
|
|
65780
|
-
} : r ===
|
|
65785
|
+
} : r === qt.drms.WIDEVINE && (u.drmSystems = {
|
|
65781
65786
|
"com.widevine.alpha": {
|
|
65782
65787
|
licenseUrl: i[r].licenseServers[0]
|
|
65783
65788
|
}
|
|
65784
65789
|
}));
|
|
65785
|
-
const c = (yme[this.playerOptions.playerProfile] || {}).hlsSettings || {}, p = this.playerOptions.playerProfile ===
|
|
65790
|
+
const c = (yme[this.playerOptions.playerProfile] || {}).hlsSettings || {}, p = this.playerOptions.playerProfile === qt.playerProfile.CUSTOM ? this.customHLSOptions : {};
|
|
65786
65791
|
this.hlsOptions = {
|
|
65787
65792
|
capLevelToPlayerSize: this.playerOptions.capLevelToPlayerSize,
|
|
65788
65793
|
xhrSetup: (m) => (m.setRequestHeader("Authorization", `Bearer ${t}`), (this.playerOptions.hlsjsOptions || {}).xhrSetup && this.playerOptions.hlsjsOptions.xhrSetup(m), m),
|
|
@@ -65826,7 +65831,7 @@ class i2 {
|
|
|
65826
65831
|
}
|
|
65827
65832
|
}
|
|
65828
65833
|
async __InitializeDash({ playoutUrl: e, authorizationToken: t, drm: r, drms: i }) {
|
|
65829
|
-
this.Dash = (await import("./dash.all.min-
|
|
65834
|
+
this.Dash = (await import("./dash.all.min-4KPdfQy9.mjs").then((c) => c.d)).default;
|
|
65830
65835
|
const o = this.Dash.MediaPlayer().create(), u = this.playerOptions.dashjsOptions || {};
|
|
65831
65836
|
if (o.updateSettings({
|
|
65832
65837
|
...u,
|
|
@@ -65859,7 +65864,7 @@ class i2 {
|
|
|
65859
65864
|
modifyRequestHeader: (c) => (c.setRequestHeader("Authorization", `Bearer ${t}`), c),
|
|
65860
65865
|
modifyRequestURL: (c) => c
|
|
65861
65866
|
};
|
|
65862
|
-
}), r ===
|
|
65867
|
+
}), r === qt.drms.WIDEVINE) {
|
|
65863
65868
|
const c = i.widevine.licenseServers[0];
|
|
65864
65869
|
o.setProtectionData({
|
|
65865
65870
|
"com.widevine.alpha": {
|
|
@@ -65870,7 +65875,7 @@ class i2 {
|
|
|
65870
65875
|
o.initialize(
|
|
65871
65876
|
this.video,
|
|
65872
65877
|
e.toString(),
|
|
65873
|
-
this.playerOptions.autoplay ===
|
|
65878
|
+
this.playerOptions.autoplay === qt.autoplay.ON
|
|
65874
65879
|
), [
|
|
65875
65880
|
this.Dash.MediaPlayer.events.TRACK_CHANGE_RENDERED,
|
|
65876
65881
|
this.Dash.MediaPlayer.events.QUALITY_CHANGE_RENDERED,
|
|
@@ -65887,7 +65892,7 @@ class i2 {
|
|
|
65887
65892
|
try {
|
|
65888
65893
|
return await this.video.play(), !0;
|
|
65889
65894
|
} catch (e) {
|
|
65890
|
-
if (this.Log("Unable to autoplay", !0), this.Log(e, !0), this.playbackStarted = !1, this.playerOptions.muted ===
|
|
65895
|
+
if (this.Log("Unable to autoplay", !0), this.Log(e, !0), this.playbackStarted = !1, this.playerOptions.muted === qt.muted.OFF_IF_POSSIBLE && this.video.paused && !this.video.muted) {
|
|
65891
65896
|
await new Promise((t) => setTimeout(t, 250)), this.Log("Attempting to autoplay muted"), this.video.muted = !0;
|
|
65892
65897
|
try {
|
|
65893
65898
|
return await this.video.play(), !0;
|
|
@@ -66035,7 +66040,7 @@ class i2 {
|
|
|
66035
66040
|
t ? console.error("ELUVIO PLAYER:", e) : this.playerOptions.debugLogging && console.warn("ELUVIO PLAYER:", e);
|
|
66036
66041
|
}
|
|
66037
66042
|
}
|
|
66038
|
-
i2.EluvioPlayerParameters =
|
|
66043
|
+
i2.EluvioPlayerParameters = qt;
|
|
66039
66044
|
i2.EluvioPlayer = i2;
|
|
66040
66045
|
var Lz = function() {
|
|
66041
66046
|
if (typeof Map < "u")
|
|
@@ -66395,7 +66400,7 @@ const l3 = ({ element: n, Hide: e }) => {
|
|
|
66395
66400
|
const u = new Nme(o);
|
|
66396
66401
|
return u.observe(n), () => u.disconnect();
|
|
66397
66402
|
}, Dme = ({ player: n }) => {
|
|
66398
|
-
const e = n.video, t = n.playerOptions.autoplay ===
|
|
66403
|
+
const e = n.video, t = n.playerOptions.autoplay === qt.autoplay.WHEN_VISIBLE, r = n.playerOptions.muted === qt.muted.WHEN_NOT_VISIBLE;
|
|
66399
66404
|
if (!t && !r)
|
|
66400
66405
|
return;
|
|
66401
66406
|
let i, o;
|
|
@@ -66430,9 +66435,9 @@ const l3 = ({ element: n, Hide: e }) => {
|
|
|
66430
66435
|
u.map((p) => n.video.removeEventListener(p, o)), c.map((p) => n.target.removeEventListener(p, o));
|
|
66431
66436
|
};
|
|
66432
66437
|
}, Fme = ({ player: n, setRecentUserAction: e }) => {
|
|
66433
|
-
if (n.playerOptions.keyboardControls ===
|
|
66438
|
+
if (n.playerOptions.keyboardControls === qt.keyboardControls.OFF)
|
|
66434
66439
|
return;
|
|
66435
|
-
const t = n.playerOptions.keyboardControls ===
|
|
66440
|
+
const t = n.playerOptions.keyboardControls === qt.keyboardControls.ARROW_KEYS_DISABLED, r = Tz(n, e)(), i = (o) => {
|
|
66436
66441
|
if (
|
|
66437
66442
|
// Keyboard controls should only fire if the player is in focus
|
|
66438
66443
|
!(n.target === o.target || n.target.contains(o.target)) || // Ignore keyboard controls if actively focused on a button or input
|
|
@@ -67169,7 +67174,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67169
67174
|
const [e, t] = Ct.useState(void 0), { title: r, subtitle: i, description: o, image: u, headers: c } = n.controls.GetContentInfo() || {};
|
|
67170
67175
|
return Ct.useEffect(() => {
|
|
67171
67176
|
t(void 0), u && fk({ player: n, pathOrUrl: u, width: 200 }).then((p) => t(p));
|
|
67172
|
-
}, [u]), !r || n.playerOptions.title ===
|
|
67177
|
+
}, [u]), !r || n.playerOptions.title === qt.title.FULLSCREEN_ONLY && !n.controls.IsFullscreen() || n.playerOptions.title === qt.title.OFF ? null : /* @__PURE__ */ Ne.jsxs("div", { className: zn["info-container"], children: [
|
|
67173
67178
|
e ? /* @__PURE__ */ Ne.jsx("div", { className: zn["info-image-container"], children: /* @__PURE__ */ Ne.jsx("img", { src: e, alt: "Image", className: zn["info-image"] }) }) : null,
|
|
67174
67179
|
/* @__PURE__ */ Ne.jsxs("div", { className: zn["info-text"], children: [
|
|
67175
67180
|
c.length === 0 ? null : /* @__PURE__ */ Ne.jsx("div", { className: zn["info-headers"], children: c.map(
|
|
@@ -67210,7 +67215,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67210
67215
|
};
|
|
67211
67216
|
}, []), !u)
|
|
67212
67217
|
return null;
|
|
67213
|
-
const b = n.controls.GetCollectionInfo(), g = r || !e || m, S = !g && n.playerOptions.controls ===
|
|
67218
|
+
const b = n.controls.GetCollectionInfo(), g = r || !e || m, S = !g && n.playerOptions.controls === qt.controls.AUTO_HIDE;
|
|
67214
67219
|
return n.__SetControlsVisibility(!S), /* @__PURE__ */ Ne.jsxs(
|
|
67215
67220
|
"div",
|
|
67216
67221
|
{
|
|
@@ -67219,16 +67224,16 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67219
67224
|
o,
|
|
67220
67225
|
zn.container,
|
|
67221
67226
|
g ? "" : zn.autohide,
|
|
67222
|
-
n.playerOptions.controls !==
|
|
67227
|
+
n.playerOptions.controls !== qt.controls.DEFAULT ? "" : zn["container--default-controls"],
|
|
67223
67228
|
n.controls.IsMenuVisible() ? "menu-active" : ""
|
|
67224
67229
|
].join(" "),
|
|
67225
67230
|
children: [
|
|
67226
67231
|
/* @__PURE__ */ Ne.jsx(wge, { player: n }, `content-info-${b && b.mediaIndex}`),
|
|
67227
67232
|
// Main bottom control bar
|
|
67228
67233
|
[
|
|
67229
|
-
|
|
67230
|
-
|
|
67231
|
-
|
|
67234
|
+
qt.controls.DEFAULT,
|
|
67235
|
+
qt.controls.OFF,
|
|
67236
|
+
qt.controls.OFF_WITH_VOLUME_TOGGLE
|
|
67232
67237
|
].includes(n.playerOptions.controls) ? null : /* @__PURE__ */ Ne.jsxs(Ne.Fragment, { children: [
|
|
67233
67238
|
/* @__PURE__ */ Ne.jsx(
|
|
67234
67239
|
qc,
|
|
@@ -67300,7 +67305,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67300
67305
|
] })
|
|
67301
67306
|
] }),
|
|
67302
67307
|
// Floating volume control for 'off with volume toggle' setting
|
|
67303
|
-
n.playerOptions.controls !==
|
|
67308
|
+
n.playerOptions.controls !== qt.controls.OFF_WITH_VOLUME_TOGGLE ? null : /* @__PURE__ */ Ne.jsx("div", { className: zn["floating-volume-toggle"], children: /* @__PURE__ */ Ne.jsx(
|
|
67304
67309
|
qc,
|
|
67305
67310
|
{
|
|
67306
67311
|
"aria-label": u.muted ? "Unmute" : "Mute",
|
|
@@ -67311,7 +67316,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67311
67316
|
"mute-button"
|
|
67312
67317
|
) }),
|
|
67313
67318
|
// Watermark
|
|
67314
|
-
n.playerOptions.watermark ===
|
|
67319
|
+
n.playerOptions.watermark === qt.watermark.OFF ? null : /* @__PURE__ */ Ne.jsx("div", { className: zn.watermark, children: /* @__PURE__ */ Ne.jsx("img", { src: qz, alt: "Eluvio" }) })
|
|
67315
67320
|
]
|
|
67316
67321
|
}
|
|
67317
67322
|
);
|
|
@@ -67633,7 +67638,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67633
67638
|
return () => T && T();
|
|
67634
67639
|
}, []), !u)
|
|
67635
67640
|
return null;
|
|
67636
|
-
const { title: b } = n.controls.GetContentInfo() || {}, g = n.controls.GetCollectionInfo(), S = r || !e || n.controls.IsMenuVisible(), A = !S && n.playerOptions.controls ===
|
|
67641
|
+
const { title: b } = n.controls.GetContentInfo() || {}, g = n.controls.GetCollectionInfo(), S = r || !e || n.controls.IsMenuVisible(), A = !S && n.playerOptions.controls === qt.controls.AUTO_HIDE;
|
|
67637
67642
|
return n.__SetControlsVisibility(!A), /* @__PURE__ */ Ne.jsxs(
|
|
67638
67643
|
"div",
|
|
67639
67644
|
{
|
|
@@ -67642,7 +67647,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67642
67647
|
o,
|
|
67643
67648
|
dn.container,
|
|
67644
67649
|
S ? "" : dn.autohide,
|
|
67645
|
-
n.playerOptions.controls !==
|
|
67650
|
+
n.playerOptions.controls !== qt.controls.DEFAULT ? "" : dn["container--default-controls"],
|
|
67646
67651
|
n.controls.IsMenuVisible() ? "menu-active" : ""
|
|
67647
67652
|
].join(" "),
|
|
67648
67653
|
children: [
|
|
@@ -67661,7 +67666,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67661
67666
|
m ? /* @__PURE__ */ Ne.jsx(zge, { player: n, Hide: () => w(!1) }) : /* @__PURE__ */ Ne.jsxs("div", { className: `${dn["bottom-controls-container"]} ${A ? dn["bottom-controls-container--autohide"] : ""}`, children: [
|
|
67662
67667
|
/* @__PURE__ */ Ne.jsx("div", { className: dn["bottom-controls-gradient"] }),
|
|
67663
67668
|
/* @__PURE__ */ Ne.jsxs("div", { className: dn["title-container"], children: [
|
|
67664
|
-
/* @__PURE__ */ Ne.jsx("div", { className: dn.title, children: n.playerOptions.title ===
|
|
67669
|
+
/* @__PURE__ */ Ne.jsx("div", { className: dn.title, children: n.playerOptions.title === qt.title.OFF || n.playerOptions.title === qt.title.FULLSCREEN_ONLY && !n.controls.IsFullscreen() ? "" : b || "" }),
|
|
67665
67670
|
/* @__PURE__ */ Ne.jsx("div", { className: dn.spacer }),
|
|
67666
67671
|
n.isLive ? /* @__PURE__ */ Ne.jsx("div", { className: dn["live-indicator"], children: "Live" }) : null,
|
|
67667
67672
|
g ? /* @__PURE__ */ Ne.jsx(
|
|
@@ -67677,7 +67682,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67677
67682
|
/* @__PURE__ */ Ne.jsx(Vz, { player: n, videoState: u, setRecentUserAction: i }),
|
|
67678
67683
|
/* @__PURE__ */ Ne.jsx(Fge, { player: n, videoState: u }),
|
|
67679
67684
|
/* @__PURE__ */ Ne.jsxs("div", { className: dn["bottom-controls"], children: [
|
|
67680
|
-
/* @__PURE__ */ Ne.jsx("div", { className: dn["bottom-left-controls"], children: !b || n.playerOptions.title ===
|
|
67685
|
+
/* @__PURE__ */ Ne.jsx("div", { className: dn["bottom-left-controls"], children: !b || n.playerOptions.title === qt.title.OFF ? null : /* @__PURE__ */ Ne.jsx("button", { className: dn["text-button"], onClick: () => w(!0), children: "Info" }) }),
|
|
67681
67686
|
/* @__PURE__ */ Ne.jsx(Bge, { player: n, videoState: u }),
|
|
67682
67687
|
/* @__PURE__ */ Ne.jsxs("div", { className: dn["bottom-right-controls"], children: [
|
|
67683
67688
|
/* @__PURE__ */ Ne.jsx(jge, { player: n }),
|
|
@@ -67695,7 +67700,7 @@ const qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
|
|
|
67695
67700
|
] })
|
|
67696
67701
|
] }),
|
|
67697
67702
|
// Watermark
|
|
67698
|
-
n.playerOptions.watermark ===
|
|
67703
|
+
n.playerOptions.watermark === qt.watermark.OFF ? null : /* @__PURE__ */ Ne.jsx("div", { className: dn.watermark, children: /* @__PURE__ */ Ne.jsx("img", { src: qz, alt: "Eluvio" }) })
|
|
67699
67704
|
]
|
|
67700
67705
|
},
|
|
67701
67706
|
"controls"
|
|
@@ -67883,7 +67888,7 @@ const tve = ({ target: n, parameters: e, InitCallback: t, ErrorCallback: r, Unmo
|
|
|
67883
67888
|
onComplete: (k) => h(k)
|
|
67884
67889
|
}
|
|
67885
67890
|
);
|
|
67886
|
-
const N = e.playerOptions.ui ===
|
|
67891
|
+
const N = e.playerOptions.ui === qt.ui.WEB && u && u.controls.IsRotatable() && z;
|
|
67887
67892
|
return /* @__PURE__ */ Ne.jsxs(
|
|
67888
67893
|
"div",
|
|
67889
67894
|
{
|
|
@@ -67904,16 +67909,16 @@ const tve = ({ target: n, parameters: e, InitCallback: t, ErrorCallback: r, Unmo
|
|
|
67904
67909
|
playsInline: !0,
|
|
67905
67910
|
disablePictureInPicture: !0,
|
|
67906
67911
|
ref: j,
|
|
67907
|
-
muted: [
|
|
67908
|
-
controls: e.playerOptions.controls ===
|
|
67909
|
-
loop: e.playerOptions.loop ===
|
|
67912
|
+
muted: [qt.muted.ON, qt.muted.WHEN_NOT_VISIBLE].includes(e.playerOptions.muted),
|
|
67913
|
+
controls: e.playerOptions.controls === qt.controls.DEFAULT,
|
|
67914
|
+
loop: e.playerOptions.loop === qt.loop.ON,
|
|
67910
67915
|
className: Al.video
|
|
67911
67916
|
}
|
|
67912
67917
|
),
|
|
67913
67918
|
!u || q || !de ? null : /* @__PURE__ */ Ne.jsx(Xge, { player: u }),
|
|
67914
|
-
L || T ? null : /* @__PURE__ */ Ne.jsx("div", { className: Al["spinner-container"], children: /* @__PURE__ */ Ne.jsx(Ob, { className: Al.spinner }) }),
|
|
67919
|
+
L || T || !e.playerOptions.showLoader ? null : /* @__PURE__ */ Ne.jsx("div", { className: Al["spinner-container"], children: /* @__PURE__ */ Ne.jsx(Ob, { className: Al.spinner }) }),
|
|
67915
67920
|
T ? /* @__PURE__ */ Ne.jsx("div", { className: Al["error-message"], children: T }) : null,
|
|
67916
|
-
u ? e.playerOptions.ui ===
|
|
67921
|
+
u ? e.playerOptions.ui === qt.ui.WEB ? /* @__PURE__ */ Ne.jsx(
|
|
67917
67922
|
xge,
|
|
67918
67923
|
{
|
|
67919
67924
|
player: u,
|
|
@@ -67977,7 +67982,7 @@ const tve = ({ target: n, parameters: e, InitCallback: t, ErrorCallback: r, Unmo
|
|
|
67977
67982
|
}));
|
|
67978
67983
|
export {
|
|
67979
67984
|
mve as I,
|
|
67980
|
-
|
|
67985
|
+
qt as P,
|
|
67981
67986
|
V4 as a,
|
|
67982
67987
|
Za as b,
|
|
67983
67988
|
dW as c,
|