@webitel/ui-sdk 25.12.26 → 25.12.28
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/{install-CrrAB4P5.js → install-Bqlm16sb.js} +14793 -15617
- package/dist/{plyr-C3Uj3y6H.js → plyr-Br33nnwi.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +949 -950
- package/dist/{vidstack-Bq6c3Bam-qlp5tBOT.js → vidstack-Bq6c3Bam-CxzFv3Ko.js} +17 -17
- package/dist/{vidstack-D2pY00kU-CgOqqLnl.js → vidstack-D2pY00kU-DcpelJcf.js} +22 -22
- package/dist/{vidstack-DDXt6fpN-BqBO9dqI.js → vidstack-DDXt6fpN-Cg0bEHId.js} +4 -4
- package/dist/{vidstack-D_-9AA6_-B_AxbMpy.js → vidstack-D_-9AA6_-bnYaKyO1.js} +1 -1
- package/dist/vidstack-DqAw8m9J-DdJYKLyM.js +29 -0
- package/dist/{vidstack-audio-BcC_A5EM.js → vidstack-audio-DduGjEcQ.js} +2 -2
- package/dist/{vidstack-dash-BIJxAfqI.js → vidstack-dash-CKzRjcLs.js} +3 -3
- package/dist/{vidstack-google-cast-DHfvKys1.js → vidstack-google-cast-BiPwnnpT.js} +10 -10
- package/dist/{vidstack-hls--7YShOeE.js → vidstack-hls-OkFNv20L.js} +32 -32
- package/dist/{vidstack-video-DS-N7qQ5.js → vidstack-video-CB59bElo.js} +8 -8
- package/dist/{vidstack-vimeo-BZB0pZh_.js → vidstack-vimeo-NoVxwrcD.js} +22 -22
- package/dist/{vidstack-youtube-1XqeoBGJ.js → vidstack-youtube-C1voQhH8.js} +29 -29
- package/dist/vuex.esm-bundler-C04hKLcf.js +950 -0
- package/package.json +2 -2
- package/src/components/wt-button/wt-button.vue +28 -4
- package/src/components/wt-vidstack-player/components/{panels/media-control-panel/components/buttons → buttons}/fullscreen-button.vue +1 -1
- package/src/components/wt-vidstack-player/components/{panels/media-control-panel/media-control-panel.vue → controls-group/controls-group.vue} +15 -12
- package/src/components/wt-vidstack-player/components/index.ts +6 -0
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +11 -36
- package/src/components/wt-vidstack-player/components/panels/media-controls-panel/components/buttons/fullscreen-button.vue +40 -0
- package/src/components/wt-vidstack-player/components/panels/media-controls-panel/components/buttons/play-button.vue +42 -0
- package/src/components/wt-vidstack-player/components/panels/{media-control-panel → media-controls-panel}/components/sliders/time-slider.vue +1 -1
- package/src/components/wt-vidstack-player/components/panels/media-controls-panel/media-controls-panel.vue +20 -0
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +89 -0
- package/src/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue +134 -0
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +1 -1
- package/src/components/wt-vidstack-player/components/recording-indicator/recording-indicator.vue +64 -0
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +23 -40
- package/src/modules/CallSession/index.ts +4 -0
- package/src/modules/CallSession/modules/ScreenSharing/screen-sharing.vue +85 -0
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +165 -0
- package/src/modules/CallSession/types/ScreenSharingSession.ts +7 -0
- package/src/modules/CallSession/types/index.ts +4 -0
- package/src/plugins/primevue/theme/extend/player/player.js +2 -3
- package/types/components/wt-vidstack-player/components/controls-group/controls-group.vue.d.ts +12 -0
- package/types/components/wt-vidstack-player/components/index.d.ts +6 -0
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +17 -11
- package/types/components/wt-vidstack-player/components/panels/media-controls-panel/components/buttons/fullscreen-button.vue.d.ts +6 -0
- package/types/components/wt-vidstack-player/components/panels/media-controls-panel/media-controls-panel.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/{screen-sharing-control-panel/screen-sharing-control-panel.vue.d.ts → screen-sharing-controls-panel/screen-sharing-controls-panel.vue.d.ts} +2 -3
- package/types/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue.d.ts +18 -0
- package/types/components/wt-vidstack-player/components/recording-indicator/recording-indicator.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +19 -15
- package/types/modules/CallSession/index.d.ts +3 -0
- package/types/modules/CallSession/modules/ScreenSharing/screen-sharing.vue.d.ts +16 -0
- package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +20 -0
- package/types/modules/CallSession/types/ScreenSharingSession.d.ts +7 -0
- package/types/modules/CallSession/types/index.d.ts +3 -0
- package/dist/vidstack-DqAw8m9J-DyYO78jE.js +0 -29
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue +0 -195
- /package/src/components/wt-vidstack-player/components/{panels/media-control-panel/components/buttons → buttons}/play-button.vue +0 -0
- /package/src/components/wt-vidstack-player/components/panels/{media-control-panel → media-controls-panel}/components/time-group.vue +0 -0
- /package/src/{components/wt-vidstack-player → modules/CallSession}/types/ScreenshotStatus.ts +0 -0
- /package/types/components/wt-vidstack-player/components/{panels/media-control-panel/components/buttons → buttons}/fullscreen-button.vue.d.ts +0 -0
- /package/types/components/wt-vidstack-player/components/{panels/media-control-panel/components/buttons → buttons}/play-button.vue.d.ts +0 -0
- /package/types/components/wt-vidstack-player/components/panels/{media-control-panel/components/sliders/time-slider.vue.d.ts → media-controls-panel/components/buttons/play-button.vue.d.ts} +0 -0
- /package/types/components/wt-vidstack-player/components/panels/{media-control-panel/components/time-group.vue.d.ts → media-controls-panel/components/sliders/time-slider.vue.d.ts} +0 -0
- /package/types/components/wt-vidstack-player/components/panels/{media-control-panel/media-control-panel.vue.d.ts → media-controls-panel/components/time-group.vue.d.ts} +0 -0
- /package/types/{components/wt-vidstack-player → modules/CallSession}/types/ScreenshotStatus.d.ts +0 -0
|
@@ -5,9 +5,9 @@ var N = (r) => {
|
|
|
5
5
|
var de = (r, c, e) => c in r ? ue(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e;
|
|
6
6
|
var b = (r, c, e) => de(r, typeof c != "symbol" ? c + "" : c, e), S = (r, c, e) => c.has(r) || N("Cannot " + e);
|
|
7
7
|
var t = (r, c, e) => (S(r, c, "read from private field"), e ? e.call(r) : c.get(r)), f = (r, c, e) => c.has(r) ? N("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(r) : c.set(r, e), u = (r, c, e, i) => (S(r, c, "write to private field"), i ? i.call(r, e) : c.set(r, e), e), o = (r, c, e) => (S(r, c, "access private method"), e);
|
|
8
|
-
import {
|
|
9
|
-
import { R as me } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { E as we } from "./vidstack-DDXt6fpN-
|
|
8
|
+
import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-Bqlm16sb.js";
|
|
9
|
+
import { R as me } from "./vidstack-DqAw8m9J-DdJYKLyM.js";
|
|
10
|
+
import { E as we } from "./vidstack-DDXt6fpN-Cg0bEHId.js";
|
|
11
11
|
import { resolveVimeoVideoId as Pe, getVimeoVideoInfo as Te } from "./vidstack-krOAtKMi-B4IZWKdc.js";
|
|
12
12
|
const Ce = [
|
|
13
13
|
"bufferend",
|
|
@@ -53,7 +53,7 @@ const Ce = [
|
|
|
53
53
|
// 'livestreamoffline',
|
|
54
54
|
// 'livestreamonline',
|
|
55
55
|
];
|
|
56
|
-
var a, y, k, w, g, V, v, $,
|
|
56
|
+
var a, y, k, w, g, V, v, $, A, P, m, E, s, Y, z, G, H, T, J, K, X, L, Z, ee, te, se, ie, x, ne, ae, oe, O, he, F, re, D, ce, le, l, j, B;
|
|
57
57
|
class Re extends we {
|
|
58
58
|
constructor(e, i) {
|
|
59
59
|
super(e);
|
|
@@ -68,8 +68,8 @@ class Re extends we {
|
|
|
68
68
|
f(this, g, null);
|
|
69
69
|
f(this, V, !1);
|
|
70
70
|
f(this, v, new C(0, 0));
|
|
71
|
-
f(this, $, new me(o(this, s,
|
|
72
|
-
f(this,
|
|
71
|
+
f(this, $, new me(o(this, s, H).bind(this)));
|
|
72
|
+
f(this, A, null);
|
|
73
73
|
f(this, P, null);
|
|
74
74
|
f(this, m, /* @__PURE__ */ new Map());
|
|
75
75
|
f(this, E, null);
|
|
@@ -116,7 +116,7 @@ class Re extends we {
|
|
|
116
116
|
pe(this.getOrigin());
|
|
117
117
|
}
|
|
118
118
|
setup() {
|
|
119
|
-
super.setup(), q(o(this, s,
|
|
119
|
+
super.setup(), q(o(this, s, Y).bind(this)), q(o(this, s, z).bind(this)), q(o(this, s, G).bind(this)), t(this, a).notify("provider-setup", this);
|
|
120
120
|
}
|
|
121
121
|
destroy() {
|
|
122
122
|
o(this, s, j).call(this), this.fullscreen = void 0;
|
|
@@ -175,7 +175,7 @@ class Re extends we {
|
|
|
175
175
|
onLoad() {
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g = new WeakMap(), V = new WeakMap(), v = new WeakMap(), $ = new WeakMap(),
|
|
178
|
+
a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g = new WeakMap(), V = new WeakMap(), v = new WeakMap(), $ = new WeakMap(), A = new WeakMap(), P = new WeakMap(), m = new WeakMap(), E = new WeakMap(), s = new WeakSet(), Y = function() {
|
|
179
179
|
o(this, s, j).call(this);
|
|
180
180
|
const e = t(this, y).call(this);
|
|
181
181
|
if (!e) {
|
|
@@ -183,7 +183,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
|
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
this.src.set(`${this.getOrigin()}/video/${e}`), t(this, a).notify("load-start");
|
|
186
|
-
},
|
|
186
|
+
}, z = function() {
|
|
187
187
|
const e = t(this, y).call(this);
|
|
188
188
|
if (!e) return;
|
|
189
189
|
const i = _(), n = new AbortController();
|
|
@@ -194,7 +194,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
|
|
|
194
194
|
}), () => {
|
|
195
195
|
i.reject(), n.abort();
|
|
196
196
|
};
|
|
197
|
-
},
|
|
197
|
+
}, G = function() {
|
|
198
198
|
const e = t(this, k).call(this), { $state: i, qualities: n } = t(this, a);
|
|
199
199
|
if (i.canSetPlaybackRate.set(e), n[R.setReadonly](!e), e)
|
|
200
200
|
return be(n, "change", () => {
|
|
@@ -203,25 +203,25 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
|
|
|
203
203
|
const h = (d = n.selected) == null ? void 0 : d.id;
|
|
204
204
|
h && o(this, s, l).call(this, "setQuality", h);
|
|
205
205
|
});
|
|
206
|
-
},
|
|
206
|
+
}, H = function() {
|
|
207
207
|
o(this, s, l).call(this, "getCurrentTime");
|
|
208
|
-
}, T = new WeakMap(),
|
|
208
|
+
}, T = new WeakMap(), J = function(e, i) {
|
|
209
209
|
if (t(this, T) && e === 0) return;
|
|
210
210
|
const { realCurrentTime: n, paused: h, bufferedEnd: d, seekableEnd: p, live: I } = t(this, a).$state;
|
|
211
211
|
if (n() === e) return;
|
|
212
|
-
const
|
|
213
|
-
t(this, a).notify("time-change", e, i), Math.abs(
|
|
212
|
+
const M = n();
|
|
213
|
+
t(this, a).notify("time-change", e, i), Math.abs(M - e) > 1.5 && (t(this, a).notify("seeking", e, i), !h() && d() < e && t(this, a).notify("waiting", void 0, i)), !I() && p() - e < 0.01 && (t(this, a).notify("end", void 0, i), u(this, T, !0), setTimeout(() => {
|
|
214
214
|
u(this, T, !1);
|
|
215
215
|
}, 500));
|
|
216
|
-
},
|
|
216
|
+
}, K = function(e, i) {
|
|
217
217
|
t(this, a).notify("seeked", e, i);
|
|
218
218
|
}, X = function(e) {
|
|
219
219
|
var n;
|
|
220
220
|
const i = t(this, y).call(this);
|
|
221
221
|
(n = t(this, E)) == null || n.promise.then((h) => {
|
|
222
222
|
if (!h) return;
|
|
223
|
-
const { title: d, poster: p, duration: I, pro:
|
|
224
|
-
t(this, k).set(
|
|
223
|
+
const { title: d, poster: p, duration: I, pro: M } = h;
|
|
224
|
+
t(this, k).set(M), t(this, a).notify("title-change", d, e), t(this, a).notify("poster-change", p, e), t(this, a).notify("duration-change", I, e), o(this, s, L).call(this, I, e);
|
|
225
225
|
}).catch(() => {
|
|
226
226
|
i === t(this, y).call(this) && (o(this, s, l).call(this, "getVideoTitle"), o(this, s, l).call(this, "getDuration"));
|
|
227
227
|
});
|
|
@@ -246,7 +246,7 @@ a = new WeakMap(), y = new WeakMap(), k = new WeakMap(), w = new WeakMap(), g =
|
|
|
246
246
|
t(this, a).$state.canPlay() ? t(this, a).notify("duration-change", p, n) : o(this, s, L).call(this, p, n);
|
|
247
247
|
break;
|
|
248
248
|
case "getCurrentTime":
|
|
249
|
-
o(this, s,
|
|
249
|
+
o(this, s, J).call(this, i, n);
|
|
250
250
|
break;
|
|
251
251
|
case "getBuffered":
|
|
252
252
|
ke(i) && i.length && o(this, s, x).call(this, i[i.length - 1][1], n);
|
|
@@ -335,7 +335,7 @@ he = function(e) {
|
|
|
335
335
|
}, F = function() {
|
|
336
336
|
t(this, P) && (t(this, a).textTracks.remove(t(this, P)), u(this, P, null));
|
|
337
337
|
}, re = function(e, i) {
|
|
338
|
-
t(this, a).qualities[
|
|
338
|
+
t(this, a).qualities[W.enableAuto] = e.some((n) => n.id === "auto") ? () => o(this, s, l).call(this, "setQuality", "auto") : void 0;
|
|
339
339
|
for (const n of e) {
|
|
340
340
|
if (n.id === "auto") continue;
|
|
341
341
|
const h = +n.id.slice(0, -1);
|
|
@@ -354,7 +354,7 @@ he = function(e) {
|
|
|
354
354
|
}, D = function({ id: e } = {}, i) {
|
|
355
355
|
if (!e) return;
|
|
356
356
|
const n = e === "auto", h = t(this, a).qualities.getById(e);
|
|
357
|
-
n ? (t(this, a).qualities[
|
|
357
|
+
n ? (t(this, a).qualities[W.setAuto](n, i), t(this, a).qualities[R.select](void 0, !0, i)) : t(this, a).qualities[R.select](h ?? void 0, !0, i);
|
|
358
358
|
}, ce = function(e, i, n) {
|
|
359
359
|
switch (e) {
|
|
360
360
|
case "ready":
|
|
@@ -413,7 +413,7 @@ he = function(e) {
|
|
|
413
413
|
break;
|
|
414
414
|
case "seek":
|
|
415
415
|
case "seeked":
|
|
416
|
-
o(this, s,
|
|
416
|
+
o(this, s, K).call(this, i.seconds, n);
|
|
417
417
|
break;
|
|
418
418
|
}
|
|
419
419
|
}, le = function(e, i) {
|
|
@@ -427,7 +427,7 @@ he = function(e) {
|
|
|
427
427
|
value: i
|
|
428
428
|
}), n.promise;
|
|
429
429
|
}, j = function() {
|
|
430
|
-
t(this, $).stop(), u(this, v, new C(0, 0)), u(this, E, null), u(this,
|
|
430
|
+
t(this, $).stop(), u(this, v, new C(0, 0)), u(this, E, null), u(this, A, null), t(this, k).set(!1), o(this, s, F).call(this);
|
|
431
431
|
}, B = function(e) {
|
|
432
432
|
var i;
|
|
433
433
|
return (i = t(this, m).get(e)) == null ? void 0 : i.shift();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var B = (r) => {
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var T = (r, n, e) =>
|
|
7
|
-
var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ?
|
|
8
|
-
import {
|
|
9
|
-
import { E as Z } from "./vidstack-DDXt6fpN-
|
|
5
|
+
var q = (r, n, e) => n in r ? A(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
|
|
6
|
+
var T = (r, n, e) => q(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || B("Cannot " + e);
|
|
7
|
+
var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
|
|
8
|
+
import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-Bqlm16sb.js";
|
|
9
|
+
import { E as Z } from "./vidstack-DDXt6fpN-Cg0bEHId.js";
|
|
10
10
|
import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
|
|
11
11
|
const b = {
|
|
12
12
|
Ended: 0,
|
|
@@ -15,16 +15,16 @@ const b = {
|
|
|
15
15
|
Buffering: 3,
|
|
16
16
|
Cued: 5
|
|
17
17
|
};
|
|
18
|
-
var a,
|
|
18
|
+
var a, v, k, S, P, m, y, i, te, se, D, f, j, Y, F, I, R, x, L, O, V, U;
|
|
19
19
|
class ne extends Z {
|
|
20
20
|
constructor(e, t) {
|
|
21
21
|
super(e);
|
|
22
22
|
p(this, i);
|
|
23
23
|
T(this, "$$PROVIDER_TYPE", "YOUTUBE");
|
|
24
|
-
T(this, "scope",
|
|
24
|
+
T(this, "scope", z());
|
|
25
25
|
p(this, a);
|
|
26
|
-
p(this,
|
|
27
|
-
p(this,
|
|
26
|
+
p(this, v, G(""));
|
|
27
|
+
p(this, k, -1);
|
|
28
28
|
p(this, S, null);
|
|
29
29
|
p(this, P, -1);
|
|
30
30
|
p(this, m, !1);
|
|
@@ -58,16 +58,16 @@ class ne extends Z {
|
|
|
58
58
|
return "youtube";
|
|
59
59
|
}
|
|
60
60
|
get videoId() {
|
|
61
|
-
return s(this,
|
|
61
|
+
return s(this, v).call(this);
|
|
62
62
|
}
|
|
63
63
|
preconnect() {
|
|
64
|
-
|
|
64
|
+
H(this.getOrigin());
|
|
65
65
|
}
|
|
66
66
|
setup() {
|
|
67
|
-
super.setup(),
|
|
67
|
+
super.setup(), J(o(this, i, D).bind(this)), s(this, a).notify("provider-setup", this);
|
|
68
68
|
}
|
|
69
69
|
destroy() {
|
|
70
|
-
o(this, i,
|
|
70
|
+
o(this, i, O).call(this);
|
|
71
71
|
const e = "provider destroyed";
|
|
72
72
|
for (const t of s(this, y).values())
|
|
73
73
|
for (const { reject: d } of t) d(e);
|
|
@@ -92,12 +92,12 @@ class ne extends Z {
|
|
|
92
92
|
o(this, i, f).call(this, "setPlaybackRate", e);
|
|
93
93
|
}
|
|
94
94
|
async loadSource(e) {
|
|
95
|
-
if (!
|
|
96
|
-
l(this, S, null), s(this,
|
|
95
|
+
if (!K(e.src)) {
|
|
96
|
+
l(this, S, null), s(this, v).set("");
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
const t = ee(e.src);
|
|
100
|
-
s(this,
|
|
100
|
+
s(this, v).set(t ?? ""), l(this, S, e);
|
|
101
101
|
}
|
|
102
102
|
getOrigin() {
|
|
103
103
|
return this.cookies ? "https://www.youtube.com" : "https://www.youtube-nocookie.com";
|
|
@@ -135,8 +135,8 @@ class ne extends Z {
|
|
|
135
135
|
s(this, a).notify("duration-change", e.duration, t);
|
|
136
136
|
}
|
|
137
137
|
if ($(e.playbackRate) && e.playbackRate !== h() && s(this, a).notify("rate-change", e.playbackRate, t), e.progressState) {
|
|
138
|
-
const { current: g, seekableStart: w, seekableEnd: E, loaded: N, duration:
|
|
139
|
-
o(this, i, F).call(this, g, t), o(this, i, I).call(this, N, new C(w, E), t),
|
|
138
|
+
const { current: g, seekableStart: w, seekableEnd: E, loaded: N, duration: _ } = e.progressState;
|
|
139
|
+
o(this, i, F).call(this, g, t), o(this, i, I).call(this, N, new C(w, E), t), _ !== u() && s(this, a).notify("duration-change", _, t);
|
|
140
140
|
}
|
|
141
141
|
if ($(e.volume) && X(e.muted) && !s(this, m)) {
|
|
142
142
|
const g = {
|
|
@@ -145,18 +145,18 @@ class ne extends Z {
|
|
|
145
145
|
};
|
|
146
146
|
s(this, a).notify("volume-change", g, t);
|
|
147
147
|
}
|
|
148
|
-
$(e.playerState) && e.playerState !== s(this,
|
|
148
|
+
$(e.playerState) && e.playerState !== s(this, k) && o(this, i, L).call(this, e.playerState, t);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
a = new WeakMap(),
|
|
151
|
+
a = new WeakMap(), v = new WeakMap(), k = new WeakMap(), S = new WeakMap(), P = new WeakMap(), m = new WeakMap(), y = new WeakMap(), i = new WeakSet(), te = function(e) {
|
|
152
152
|
var t;
|
|
153
153
|
(t = o(this, i, V).call(this, "playVideo")) == null || t.reject(e);
|
|
154
154
|
}, se = function(e) {
|
|
155
155
|
var t;
|
|
156
156
|
(t = o(this, i, V).call(this, "pauseVideo")) == null || t.reject(e);
|
|
157
|
-
},
|
|
158
|
-
o(this, i,
|
|
159
|
-
const e = s(this,
|
|
157
|
+
}, D = function() {
|
|
158
|
+
o(this, i, O).call(this);
|
|
159
|
+
const e = s(this, v).call(this);
|
|
160
160
|
if (!e) {
|
|
161
161
|
this.src.set("");
|
|
162
162
|
return;
|
|
@@ -175,7 +175,7 @@ a = new WeakMap(), k = new WeakMap(), v = new WeakMap(), S = new WeakMap(), P =
|
|
|
175
175
|
var t;
|
|
176
176
|
(t = o(this, i, V).call(this, "pauseVideo")) == null || t.resolve(), s(this, a).notify("pause", void 0, e);
|
|
177
177
|
}, F = function(e, t) {
|
|
178
|
-
const { duration: d, realCurrentTime: u } = s(this, a).$state, h = s(this,
|
|
178
|
+
const { duration: d, realCurrentTime: u } = s(this, a).$state, h = s(this, k) === b.Ended, c = h ? d() : e;
|
|
179
179
|
s(this, a).notify("time-change", c, t), !h && Math.abs(c - u()) > 1 && s(this, a).notify("seeking", c, t);
|
|
180
180
|
}, I = function(e, t, d) {
|
|
181
181
|
const u = {
|
|
@@ -221,9 +221,9 @@ a = new WeakMap(), k = new WeakMap(), v = new WeakMap(), S = new WeakMap(), P =
|
|
|
221
221
|
o(this, i, x).call(this, t);
|
|
222
222
|
break;
|
|
223
223
|
}
|
|
224
|
-
l(this,
|
|
225
|
-
},
|
|
226
|
-
l(this,
|
|
224
|
+
l(this, k, e);
|
|
225
|
+
}, O = function() {
|
|
226
|
+
l(this, k, -1), l(this, P, -1), l(this, m, !1);
|
|
227
227
|
}, V = function(e) {
|
|
228
228
|
var t;
|
|
229
229
|
return (t = s(this, y).get(e)) == null ? void 0 : t.shift();
|