@webitel/ui-sdk 26.2.70 → 26.2.72
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/{errors-DCJKAXTz.js → errors-CTL-RV3B.js} +1 -1
- package/dist/{index-B71drQtj.js → index-DWA4o3XJ.js} +4 -4
- package/dist/{index-cVwBpL1P.js → index-pMfSnCae.js} +1 -1
- package/dist/{install-BEn6vjFW.js → install-UIKG1ERr.js} +9496 -8874
- package/dist/{isObject-DB0eH0MA.js → isObject-B3V85Sws.js} +1 -1
- package/dist/prod-BoQuiIB3.js +973 -0
- package/dist/srt-parser-CsN7bp5E.js +26 -0
- package/dist/ssa-parser-BJOOPeQF.js +200 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +464 -482
- package/dist/vidstack-Bq6c3Bam-pb8Xltql.js +425 -0
- package/dist/vidstack-D2pY00kU-DiDeMWBZ.js +135 -0
- package/dist/vidstack-DDXt6fpN-BJpO5v6W.js +50 -0
- package/dist/vidstack-D_-9AA6_-D9IZ6RtF.js +20 -0
- package/dist/{vidstack-Dm1xEU9Q-qSXq3AI-.js → vidstack-Dm1xEU9Q-CXHNvShT.js} +10 -11
- package/dist/vidstack-DqAw8m9J-R8izgrMK.js +22 -0
- package/dist/vidstack-audio-RReC5vyt.js +28 -0
- package/dist/vidstack-dash-DW7Ue8Mf.js +392 -0
- package/dist/vidstack-google-cast-C0U2wzqB.js +382 -0
- package/dist/vidstack-hls-BZgfDsGk.js +309 -0
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +28 -0
- package/dist/vidstack-video-CI2rq89j.js +163 -0
- package/dist/vidstack-vimeo-CgwZpCSk.js +451 -0
- package/dist/vidstack-youtube-BYXk8CK9.js +232 -0
- package/dist/{wt-action-bar-ColV1kXE.js → wt-action-bar-DR8FqGoN.js} +1 -1
- package/dist/{wt-button-select-CfoSEYMj.js → wt-button-select-DZ_mMZr7.js} +1 -1
- package/dist/{wt-chat-emoji-Bgv9Viz-.js → wt-chat-emoji-Bx7YenHF.js} +6 -11
- package/dist/{wt-confirm-dialog-bVhuyR-Q.js → wt-confirm-dialog-Bmt7hVhO.js} +1 -1
- package/dist/{wt-context-menu-Cd8pgBRV.js → wt-context-menu-DEonPBI7.js} +1 -1
- package/dist/{wt-copy-action-jjp1mO2h.js → wt-copy-action-DQZ5qUUm.js} +1 -1
- package/dist/wt-datepicker-DRUiK--W.js +5660 -0
- package/dist/wt-display-chip-items-x25aFJxY.js +46 -0
- package/dist/{wt-dual-panel-DJsiR6RF.js → wt-dual-panel-0fDOCrlS.js} +1 -1
- package/dist/{wt-dummy-O94iGdZS.js → wt-dummy-CFcLvVwn.js} +1 -1
- package/dist/{wt-error-page-xgSWJ65z.js → wt-error-page-CebFt3Gg.js} +1 -1
- package/dist/{wt-expansion-panel-vzG02b62.js → wt-expansion-panel-cJWQaqAc.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-h-UaAMuF.js → wt-filters-panel-wrapper-4-k7czbS.js} +1 -1
- package/dist/wt-galleria-Ds-HZvJq.js +322 -0
- package/dist/{wt-navigation-menu-Cu5Y9kua.js → wt-navigation-menu-DqnvQB3G.js} +2 -5
- package/dist/wt-notifications-bar-Bmww4vJb.js +79 -0
- package/dist/{wt-page-header-DlRrRzG7.js → wt-page-header-6lJKDnEs.js} +1 -1
- package/dist/{wt-pagination-CW46I4u2.js → wt-pagination-D7BhUkrI.js} +1 -1
- package/dist/{wt-player-3qh_Jzm2.js → wt-player-Bx_9-9R6.js} +1 -1
- package/dist/{wt-popover-BTG5bUP0.js → wt-popover-U7JE0uoX.js} +19 -22
- package/dist/{wt-search-bar-CTsNf7bp.js → wt-search-bar-BfHsofcU.js} +25 -28
- package/dist/{wt-selection-popup-DvaUvY4O.js → wt-selection-popup-B5Wt1WQk.js} +1 -1
- package/dist/{wt-start-page-CcN7JC_u.js → wt-start-page-8ywFCoUJ.js} +7 -7
- package/dist/{wt-status-select-C8t0cgTg.js → wt-status-select-CFdNgbIP.js} +1 -1
- package/dist/{wt-stepper-BLb42q2I.js → wt-stepper-59a_rP7o.js} +1 -1
- package/dist/{wt-table-9gmsV0Y9.js → wt-table-DuxjiiFi.js} +111 -114
- package/dist/{wt-table-actions-BB7AH7sR.js → wt-table-actions-CsrvF6d8.js} +1 -1
- package/dist/{wt-table-column-select-B3lrCEaV.js → wt-table-column-select-Zga4Zyfd.js} +28 -31
- package/dist/{wt-tabs-CCHi_E1a.js → wt-tabs-CMMlNgqE.js} +1 -1
- package/dist/{wt-tags-input-DLicKjv3.js → wt-tags-input-O1wer3-w.js} +56 -57
- package/dist/{wt-timepicker-B9ONDzNQ.js → wt-timepicker-BscP21YM.js} +1 -1
- package/dist/{wt-tree-cQlvJmh5.js → wt-tree-BRPd5QbE.js} +4 -5
- package/dist/{wt-tree-table-B89YKiMf.js → wt-tree-table-CZQ7xmja.js} +5 -5
- package/dist/{wt-type-extension-value-input-Da8FXLDs.js → wt-type-extension-value-input-DZqeSLGx.js} +214 -218
- package/dist/wt-vidstack-player-CA18U-L9.js +10229 -0
- package/package.json +5 -5
- package/src/components/wt-button/wt-button.vue +9 -13
- package/src/install.ts +0 -1
- package/src/locale/i18n.js +1 -1
- package/src/modules/Notifications/store/NotificationsStoreModule.js +1 -1
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +36 -3
- package/src/modules/Userinfo/scripts/utils.ts +2 -22
- package/src/modules/Userinfo/stores/accessStore.ts +20 -5
- package/src/modules/Userinfo/types/UserAccess.d.ts +11 -3
- package/types/locale/i18n.d.ts +1 -1
- package/types/modules/Notifications/store/NotificationsStoreModule.d.ts +1 -1
- package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +34 -243
- package/types/modules/Userinfo/scripts/utils.d.ts +1 -2
- package/types/modules/Userinfo/stores/accessStore.d.ts +1 -1
- package/types/modules/Userinfo/stores/userinfoStore.d.ts +21 -9
- package/dist/prod-DTLJXtPo.js +0 -994
- package/dist/srt-parser-CWqahKwO.js +0 -27
- package/dist/ssa-parser-BqjjKy4M.js +0 -209
- package/dist/vidstack-Bq6c3Bam-w5y-QQDX.js +0 -413
- package/dist/vidstack-D2pY00kU-BI5rYx7p.js +0 -138
- package/dist/vidstack-DDXt6fpN-QZPrP2dy.js +0 -60
- package/dist/vidstack-D_-9AA6_-Bo1xPN-G.js +0 -20
- package/dist/vidstack-DqAw8m9J-DL7LzrFt.js +0 -29
- package/dist/vidstack-audio-lX1O0fza.js +0 -32
- package/dist/vidstack-dash-BQkRGWe_.js +0 -403
- package/dist/vidstack-google-cast-C39n-PU1.js +0 -377
- package/dist/vidstack-hls-BCLhCuNJ.js +0 -324
- package/dist/vidstack-krOAtKMi-B4IZWKdc.js +0 -29
- package/dist/vidstack-video-BgayrEIC.js +0 -181
- package/dist/vidstack-vimeo-Lpe7iySs.js +0 -437
- package/dist/vidstack-youtube-Dmcz0xVm.js +0 -236
- package/dist/vuex.esm-bundler-tZVctzTj.js +0 -950
- package/dist/wt-datepicker-Cs3xDzVq.js +0 -5789
- package/dist/wt-display-chip-items-IqNMxa_X.js +0 -52
- package/dist/wt-galleria-cDjsiOcp.js +0 -324
- package/dist/wt-notifications-bar-KNH47kZ7.js +0 -80
- package/dist/wt-vidstack-player-BzFbIwCa.js +0 -10250
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
var _ = Object.defineProperty;
|
|
2
|
-
var w = (t) => {
|
|
3
|
-
throw TypeError(t);
|
|
4
|
-
};
|
|
5
|
-
var A = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
6
|
-
var u = (t, e, a) => A(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
|
|
7
|
-
var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), h = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
|
|
8
|
-
import { l as P, A as b, S as O, h as D, p as R, C as M } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
9
|
-
function G() {
|
|
10
|
-
return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
|
|
11
|
-
}
|
|
12
|
-
function L() {
|
|
13
|
-
var t;
|
|
14
|
-
return !!((t = window.cast) != null && t.framework);
|
|
15
|
-
}
|
|
16
|
-
function N() {
|
|
17
|
-
var t, e;
|
|
18
|
-
return !!((e = (t = window.chrome) == null ? void 0 : t.cast) != null && e.isAvailable);
|
|
19
|
-
}
|
|
20
|
-
function v() {
|
|
21
|
-
return g().getCastState() === cast.framework.CastState.CONNECTED;
|
|
22
|
-
}
|
|
23
|
-
function g() {
|
|
24
|
-
return window.cast.framework.CastContext.getInstance();
|
|
25
|
-
}
|
|
26
|
-
function E() {
|
|
27
|
-
return g().getCurrentSession();
|
|
28
|
-
}
|
|
29
|
-
function T() {
|
|
30
|
-
var t;
|
|
31
|
-
return (t = E()) == null ? void 0 : t.getSessionObj().media[0];
|
|
32
|
-
}
|
|
33
|
-
function J(t) {
|
|
34
|
-
var a;
|
|
35
|
-
return ((a = T()) == null ? void 0 : a.media.contentId) === (t == null ? void 0 : t.src);
|
|
36
|
-
}
|
|
37
|
-
function U() {
|
|
38
|
-
return {
|
|
39
|
-
language: "en-US",
|
|
40
|
-
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
|
|
41
|
-
receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,
|
|
42
|
-
resumeSavedSession: !0,
|
|
43
|
-
androidReceiverCompatible: !0
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function j(t) {
|
|
47
|
-
return `Google Cast Error Code: ${t}`;
|
|
48
|
-
}
|
|
49
|
-
function V(t, e) {
|
|
50
|
-
return P(g(), t, e);
|
|
51
|
-
}
|
|
52
|
-
var n, r, S, k, I, l, d;
|
|
53
|
-
class F {
|
|
54
|
-
constructor() {
|
|
55
|
-
h(this, r);
|
|
56
|
-
u(this, "name", "google-cast");
|
|
57
|
-
u(this, "target");
|
|
58
|
-
h(this, n);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link https://developers.google.com/cast/docs/reference/web_sender/cast.framework.CastContext}
|
|
62
|
-
*/
|
|
63
|
-
get cast() {
|
|
64
|
-
return g();
|
|
65
|
-
}
|
|
66
|
-
mediaType() {
|
|
67
|
-
return "video";
|
|
68
|
-
}
|
|
69
|
-
canPlay(e) {
|
|
70
|
-
return b && !D && O(e);
|
|
71
|
-
}
|
|
72
|
-
async prompt(e) {
|
|
73
|
-
var m;
|
|
74
|
-
let a, o, i;
|
|
75
|
-
try {
|
|
76
|
-
a = await s(this, r, S).call(this, e), c(this, n) || (y(this, n, new cast.framework.RemotePlayer()), new cast.framework.RemotePlayerController(c(this, n))), o = e.player.createEvent("google-cast-prompt-open", {
|
|
77
|
-
trigger: a
|
|
78
|
-
}), e.player.dispatchEvent(o), s(this, r, l).call(this, e, "connecting", o), await s(this, r, k).call(this, R(e.$props.googleCast)), e.$state.remotePlaybackInfo.set({
|
|
79
|
-
deviceName: (m = E()) == null ? void 0 : m.getCastDevice().friendlyName
|
|
80
|
-
}), v() && s(this, r, l).call(this, e, "connected", o);
|
|
81
|
-
} catch (p) {
|
|
82
|
-
const f = p instanceof Error ? p : s(this, r, d).call(this, (p + "").toUpperCase(), "Prompt failed.");
|
|
83
|
-
throw i = e.player.createEvent("google-cast-prompt-error", {
|
|
84
|
-
detail: f,
|
|
85
|
-
trigger: o ?? a,
|
|
86
|
-
cancelable: !0
|
|
87
|
-
}), e.player.dispatch(i), s(this, r, l).call(this, e, v() ? "connected" : "disconnected", i), f;
|
|
88
|
-
} finally {
|
|
89
|
-
e.player.dispatch("google-cast-prompt-close", {
|
|
90
|
-
trigger: i ?? o ?? a
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
async load(e) {
|
|
95
|
-
if (!c(this, n))
|
|
96
|
-
throw Error("[vidstack] google cast player was not initialized");
|
|
97
|
-
return new (await import("./vidstack-google-cast-C39n-PU1.js")).GoogleCastProvider(c(this, n), e);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
n = new WeakMap(), r = new WeakSet(), S = async function(e) {
|
|
101
|
-
if (L()) return;
|
|
102
|
-
const a = e.player.createEvent("google-cast-load-start");
|
|
103
|
-
e.player.dispatch(a), await M(G()), await customElements.whenDefined("google-cast-launcher");
|
|
104
|
-
const o = e.player.createEvent("google-cast-loaded", { trigger: a });
|
|
105
|
-
if (e.player.dispatch(o), !N())
|
|
106
|
-
throw s(this, r, d).call(this, "CAST_NOT_AVAILABLE", "Google Cast not available on this platform.");
|
|
107
|
-
return o;
|
|
108
|
-
}, k = async function(e) {
|
|
109
|
-
s(this, r, I).call(this, e);
|
|
110
|
-
const a = await this.cast.requestSession();
|
|
111
|
-
if (a)
|
|
112
|
-
throw s(this, r, d).call(this, a.toUpperCase(), j(a));
|
|
113
|
-
}, I = function(e) {
|
|
114
|
-
var a;
|
|
115
|
-
(a = this.cast) == null || a.setOptions({
|
|
116
|
-
...U(),
|
|
117
|
-
...e
|
|
118
|
-
});
|
|
119
|
-
}, l = function(e, a, o) {
|
|
120
|
-
const i = { type: "google-cast", state: a };
|
|
121
|
-
e.notify("remote-playback-change", i, o);
|
|
122
|
-
}, d = function(e, a) {
|
|
123
|
-
const o = Error(a);
|
|
124
|
-
return o.code = e, o;
|
|
125
|
-
};
|
|
126
|
-
const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
127
|
-
__proto__: null,
|
|
128
|
-
GoogleCastLoader: F
|
|
129
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
130
|
-
export {
|
|
131
|
-
E as a,
|
|
132
|
-
T as b,
|
|
133
|
-
j as c,
|
|
134
|
-
g,
|
|
135
|
-
J as h,
|
|
136
|
-
V as l,
|
|
137
|
-
q as v
|
|
138
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
var y = Object.defineProperty;
|
|
2
|
-
var g = (s) => {
|
|
3
|
-
throw TypeError(s);
|
|
4
|
-
};
|
|
5
|
-
var w = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
6
|
-
var c = (s, t, i) => w(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
|
|
7
|
-
var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
|
|
8
|
-
import { n as M, l as f, e as A, p as O, O as P, f as S } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
9
|
-
var r, o, b, m;
|
|
10
|
-
class J {
|
|
11
|
-
constructor(t) {
|
|
12
|
-
l(this, o);
|
|
13
|
-
l(this, r);
|
|
14
|
-
c(this, "src", M(""));
|
|
15
|
-
/**
|
|
16
|
-
* Defines which referrer is sent when fetching the resource.
|
|
17
|
-
*
|
|
18
|
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy}
|
|
19
|
-
*/
|
|
20
|
-
c(this, "referrerPolicy", null);
|
|
21
|
-
p(this, r, t), t.setAttribute("frameBorder", "0"), t.setAttribute("aria-hidden", "true"), t.setAttribute(
|
|
22
|
-
"allow",
|
|
23
|
-
"autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"
|
|
24
|
-
), this.referrerPolicy !== null && t.setAttribute("referrerpolicy", this.referrerPolicy);
|
|
25
|
-
}
|
|
26
|
-
get iframe() {
|
|
27
|
-
return e(this, r);
|
|
28
|
-
}
|
|
29
|
-
setup() {
|
|
30
|
-
f(window, "message", u(this, o, m).bind(this)), f(e(this, r), "load", this.onLoad.bind(this)), A(u(this, o, b).bind(this));
|
|
31
|
-
}
|
|
32
|
-
postMessage(t, i) {
|
|
33
|
-
var a;
|
|
34
|
-
(a = e(this, r).contentWindow) == null || a.postMessage(JSON.stringify(t), i ?? "*");
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
r = new WeakMap(), o = new WeakSet(), b = function() {
|
|
38
|
-
const t = this.src();
|
|
39
|
-
if (!t.length) {
|
|
40
|
-
e(this, r).setAttribute("src", "");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const i = O(() => this.buildParams());
|
|
44
|
-
e(this, r).setAttribute("src", P(t, i));
|
|
45
|
-
}, m = function(t) {
|
|
46
|
-
var d;
|
|
47
|
-
const i = this.getOrigin();
|
|
48
|
-
if ((t.source === null || t.source === ((d = e(this, r)) == null ? void 0 : d.contentWindow)) && (!S(i) || i === t.origin)) {
|
|
49
|
-
try {
|
|
50
|
-
const n = JSON.parse(t.data);
|
|
51
|
-
n && this.onMessage(n, t);
|
|
52
|
-
return;
|
|
53
|
-
} catch {
|
|
54
|
-
}
|
|
55
|
-
t.data && this.onMessage(t.data, t);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
J as E
|
|
60
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { c as d, a as i, I as l, e as m } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
2
|
-
const p = /* @__PURE__ */ i(
|
|
3
|
-
'<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
|
|
4
|
-
);
|
|
5
|
-
function v(a, s) {
|
|
6
|
-
const o = d(p);
|
|
7
|
-
o.innerHTML = l, a.append(o);
|
|
8
|
-
const e = document.createElement("span");
|
|
9
|
-
e.classList.add("vds-google-cast-info"), a.append(e);
|
|
10
|
-
const n = document.createElement("span");
|
|
11
|
-
n.classList.add("vds-google-cast-device-name"), m(() => {
|
|
12
|
-
const { remotePlaybackInfo: c } = s, t = c();
|
|
13
|
-
return t != null && t.deviceName && (n.textContent = t.deviceName, e.append("Google Cast on ", n)), () => {
|
|
14
|
-
e.textContent = "";
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
v as insertContent
|
|
20
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var l = (i) => {
|
|
2
|
-
throw TypeError(i);
|
|
3
|
-
};
|
|
4
|
-
var c = (i, t, s) => t.has(i) || l("Cannot " + s);
|
|
5
|
-
var r = (i, t, s) => (c(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, f) => (c(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), m = (i, t, s) => (c(i, t, "access private method"), s);
|
|
6
|
-
import { q as p, r as u } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
7
|
-
var o, a, n, d;
|
|
8
|
-
class F {
|
|
9
|
-
constructor(t) {
|
|
10
|
-
e(this, n);
|
|
11
|
-
e(this, o);
|
|
12
|
-
e(this, a);
|
|
13
|
-
h(this, a, t);
|
|
14
|
-
}
|
|
15
|
-
start() {
|
|
16
|
-
p(r(this, o)) && m(this, n, d).call(this);
|
|
17
|
-
}
|
|
18
|
-
stop() {
|
|
19
|
-
u(r(this, o)) && window.cancelAnimationFrame(r(this, o)), h(this, o, void 0);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
o = new WeakMap(), a = new WeakMap(), n = new WeakSet(), d = function() {
|
|
23
|
-
h(this, o, window.requestAnimationFrame(() => {
|
|
24
|
-
p(r(this, o)) || (r(this, a).call(this), m(this, n, d).call(this));
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
F as R
|
|
29
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var a = Object.defineProperty;
|
|
2
|
-
var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { s as p } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
5
|
-
import { H as d, a as u } from "./vidstack-Bq6c3Bam-w5y-QQDX.js";
|
|
6
|
-
class n extends d {
|
|
7
|
-
constructor(t, s) {
|
|
8
|
-
super(t, s);
|
|
9
|
-
r(this, "$$PROVIDER_TYPE", "AUDIO");
|
|
10
|
-
r(this, "airPlay");
|
|
11
|
-
p(() => {
|
|
12
|
-
this.airPlay = new u(this.media, s);
|
|
13
|
-
}, this.scope);
|
|
14
|
-
}
|
|
15
|
-
get type() {
|
|
16
|
-
return "audio";
|
|
17
|
-
}
|
|
18
|
-
setup() {
|
|
19
|
-
super.setup(), this.type === "audio" && this.ctx.notify("provider-setup", this);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The native HTML `<audio>` element.
|
|
23
|
-
*
|
|
24
|
-
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement}
|
|
25
|
-
*/
|
|
26
|
-
get audio() {
|
|
27
|
-
return this.media;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
n as AudioProvider
|
|
32
|
-
};
|
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
var wt = Object.defineProperty;
|
|
2
|
-
var z = (n) => {
|
|
3
|
-
throw TypeError(n);
|
|
4
|
-
};
|
|
5
|
-
var vt = (n, t, e) => t in n ? wt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
6
|
-
var j = (n, t, e) => vt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || z("Cannot " + e);
|
|
7
|
-
var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? z("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
|
|
8
|
-
import { G as Et, f as _, y as Lt, p as At, Q as J, l as Y, e as Dt, D as N, z as xt, w as O, T as Mt, L as q, H as Ct, J as Nt, r as Ft, A as Rt, q as Z, B as Pt, C as qt, F as _t } from "./wt-vidstack-player-BzFbIwCa.js";
|
|
9
|
-
import { VideoProvider as $t } from "./vidstack-video-BgayrEIC.js";
|
|
10
|
-
import { R as Ht } from "./vidstack-DqAw8m9J-DL7LzrFt.js";
|
|
11
|
-
function W(n) {
|
|
12
|
-
try {
|
|
13
|
-
return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
|
|
14
|
-
} catch {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const It = (n) => `dash-${xt(n)}`;
|
|
19
|
-
var L, d, o, F, R, s, x, k, tt, it, v, P, et, st, nt, rt, ot, at, ht, dt, A, ut, Q, G, ct, V, lt, pt, B;
|
|
20
|
-
class jt {
|
|
21
|
-
constructor(t, e) {
|
|
22
|
-
f(this, s);
|
|
23
|
-
f(this, L);
|
|
24
|
-
f(this, d);
|
|
25
|
-
f(this, o, null);
|
|
26
|
-
f(this, F, /* @__PURE__ */ new Set());
|
|
27
|
-
f(this, R, null);
|
|
28
|
-
j(this, "config", {});
|
|
29
|
-
f(this, v, null);
|
|
30
|
-
f(this, P, {});
|
|
31
|
-
f(this, A, -1);
|
|
32
|
-
p(this, L, t), p(this, d, e);
|
|
33
|
-
}
|
|
34
|
-
get instance() {
|
|
35
|
-
return i(this, o);
|
|
36
|
-
}
|
|
37
|
-
setup(t) {
|
|
38
|
-
p(this, o, t().create());
|
|
39
|
-
const e = h(this, s, it).bind(this);
|
|
40
|
-
for (const r of Object.values(t.events)) i(this, o).on(r, e);
|
|
41
|
-
i(this, o).on(t.events.ERROR, h(this, s, at).bind(this));
|
|
42
|
-
for (const r of i(this, F)) r(i(this, o));
|
|
43
|
-
i(this, d).player.dispatch("dash-instance", {
|
|
44
|
-
detail: i(this, o)
|
|
45
|
-
}), i(this, o).initialize(i(this, L), void 0, !1), i(this, o).updateSettings({
|
|
46
|
-
streaming: {
|
|
47
|
-
text: {
|
|
48
|
-
// Disabling text rendering by dash.
|
|
49
|
-
defaultEnabled: !1,
|
|
50
|
-
dispatchForManualRendering: !0
|
|
51
|
-
},
|
|
52
|
-
buffer: {
|
|
53
|
-
/// Enables buffer replacement when switching bitrates for faster switching.
|
|
54
|
-
fastSwitchEnabled: !0
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
...this.config
|
|
58
|
-
}), i(this, o).on(t.events.FRAGMENT_LOADING_STARTED, h(this, s, ht).bind(this)), i(this, o).on(
|
|
59
|
-
t.events.FRAGMENT_LOADING_COMPLETED,
|
|
60
|
-
h(this, s, dt).bind(this)
|
|
61
|
-
), i(this, o).on(t.events.MANIFEST_LOADED, h(this, s, ot).bind(this)), i(this, o).on(t.events.QUALITY_CHANGE_RENDERED, h(this, s, rt).bind(this)), i(this, o).on(t.events.TEXT_TRACKS_ADDED, h(this, s, st).bind(this)), i(this, o).on(t.events.TRACK_CHANGE_RENDERED, h(this, s, nt).bind(this)), i(this, d).qualities[J.enableAuto] = h(this, s, ct).bind(this), Y(i(this, d).qualities, "change", h(this, s, lt).bind(this)), Y(i(this, d).audioTracks, "change", h(this, s, pt).bind(this)), p(this, R, Dt(h(this, s, k).bind(this)));
|
|
62
|
-
}
|
|
63
|
-
onInstance(t) {
|
|
64
|
-
return i(this, F).add(t), () => i(this, F).delete(t);
|
|
65
|
-
}
|
|
66
|
-
loadSource(t) {
|
|
67
|
-
var e;
|
|
68
|
-
h(this, s, B).call(this), _(t.src) && ((e = i(this, o)) == null || e.attachSource(t.src));
|
|
69
|
-
}
|
|
70
|
-
destroy() {
|
|
71
|
-
var t, e;
|
|
72
|
-
h(this, s, B).call(this), (t = i(this, o)) == null || t.destroy(), p(this, o, null), (e = i(this, R)) == null || e.call(this), p(this, R, null);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
L = new WeakMap(), d = new WeakMap(), o = new WeakMap(), F = new WeakMap(), R = new WeakMap(), s = new WeakSet(), x = function(t) {
|
|
76
|
-
return new N(It(t.type), { detail: t });
|
|
77
|
-
}, k = function() {
|
|
78
|
-
if (!i(this, d).$state.live()) return;
|
|
79
|
-
const t = new Ht(h(this, s, tt).bind(this));
|
|
80
|
-
return t.start(), t.stop.bind(t);
|
|
81
|
-
}, tt = function() {
|
|
82
|
-
if (!i(this, o)) return;
|
|
83
|
-
const t = i(this, o).duration() - i(this, o).time();
|
|
84
|
-
i(this, d).$state.liveSyncPosition.set(isNaN(t) ? 1 / 0 : t);
|
|
85
|
-
}, it = function(t) {
|
|
86
|
-
var e;
|
|
87
|
-
(e = i(this, d).player) == null || e.dispatch(h(this, s, x).call(this, t));
|
|
88
|
-
}, v = new WeakMap(), P = new WeakMap(), et = function(t) {
|
|
89
|
-
var u;
|
|
90
|
-
const e = (u = i(this, v)) == null ? void 0 : u[O.native], r = (e == null ? void 0 : e.track).cues;
|
|
91
|
-
if (!e || !r) return;
|
|
92
|
-
const l = i(this, v).id, g = i(this, P)[l] ?? 0, y = h(this, s, x).call(this, t);
|
|
93
|
-
for (let m = g; m < r.length; m++) {
|
|
94
|
-
const c = r[m];
|
|
95
|
-
c.positionAlign || (c.positionAlign = "auto"), i(this, v).addCue(c, y);
|
|
96
|
-
}
|
|
97
|
-
i(this, P)[l] = r.length;
|
|
98
|
-
}, st = function(t) {
|
|
99
|
-
var g;
|
|
100
|
-
if (!i(this, o)) return;
|
|
101
|
-
const e = t.tracks, r = [...i(this, L).textTracks].filter((y) => "manualMode" in y), l = h(this, s, x).call(this, t);
|
|
102
|
-
for (let y = 0; y < r.length; y++) {
|
|
103
|
-
const u = e[y], m = r[y], c = `dash-${u.kind}-${y}`, E = new Mt({
|
|
104
|
-
id: c,
|
|
105
|
-
label: (u == null ? void 0 : u.label) ?? ((g = u.labels.find((a) => a.text)) == null ? void 0 : g.text) ?? ((u == null ? void 0 : u.lang) && W(u.lang)) ?? (u == null ? void 0 : u.lang) ?? void 0,
|
|
106
|
-
language: u.lang ?? void 0,
|
|
107
|
-
kind: u.kind,
|
|
108
|
-
default: u.defaultTrack
|
|
109
|
-
});
|
|
110
|
-
E[O.native] = {
|
|
111
|
-
managed: !0,
|
|
112
|
-
track: m
|
|
113
|
-
}, E[O.readyState] = 2, E[O.onModeChange] = () => {
|
|
114
|
-
i(this, o) && (E.mode === "showing" ? (i(this, o).setTextTrack(y), p(this, v, E)) : (i(this, o).setTextTrack(-1), p(this, v, null)));
|
|
115
|
-
}, i(this, d).textTracks.add(E, l);
|
|
116
|
-
}
|
|
117
|
-
}, nt = function(t) {
|
|
118
|
-
const { mediaType: e, newMediaInfo: r } = t;
|
|
119
|
-
if (e === "audio") {
|
|
120
|
-
const l = i(this, d).audioTracks.getById(`dash-audio-${r.index}`);
|
|
121
|
-
if (l) {
|
|
122
|
-
const g = h(this, s, x).call(this, t);
|
|
123
|
-
i(this, d).audioTracks[q.select](l, !0, g);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}, rt = function(t) {
|
|
127
|
-
if (t.mediaType !== "video") return;
|
|
128
|
-
const e = i(this, d).qualities[t.newQuality];
|
|
129
|
-
if (e) {
|
|
130
|
-
const r = h(this, s, x).call(this, t);
|
|
131
|
-
i(this, d).qualities[q.select](e, !0, r);
|
|
132
|
-
}
|
|
133
|
-
}, ot = function(t) {
|
|
134
|
-
if (i(this, d).$state.canPlay() || !i(this, o)) return;
|
|
135
|
-
const { type: e, mediaPresentationDuration: r } = t.data, l = h(this, s, x).call(this, t);
|
|
136
|
-
i(this, d).notify("stream-type-change", e !== "static" ? "live" : "on-demand", l), i(this, d).notify("duration-change", r, l), i(this, d).qualities[J.setAuto](!0, l);
|
|
137
|
-
const g = i(this, o).getVideoElement(), y = i(this, o).getTracksForTypeFromManifest(
|
|
138
|
-
"video",
|
|
139
|
-
t.data
|
|
140
|
-
), u = [...new Set(y.map((a) => a.mimeType))].find(
|
|
141
|
-
(a) => a && Ct(g, a)
|
|
142
|
-
), m = y.filter(
|
|
143
|
-
(a) => u === a.mimeType
|
|
144
|
-
)[0];
|
|
145
|
-
let c = i(this, o).getTracksForTypeFromManifest(
|
|
146
|
-
"audio",
|
|
147
|
-
t.data
|
|
148
|
-
);
|
|
149
|
-
const E = [...new Set(c.map((a) => a.mimeType))].find(
|
|
150
|
-
(a) => a && Nt(g, a)
|
|
151
|
-
);
|
|
152
|
-
if (c = c.filter((a) => E === a.mimeType), m.bitrateList.forEach((a, I) => {
|
|
153
|
-
var C;
|
|
154
|
-
const U = {
|
|
155
|
-
id: ((C = a.id) == null ? void 0 : C.toString()) ?? `dash-bitrate-${I}`,
|
|
156
|
-
width: a.width ?? 0,
|
|
157
|
-
height: a.height ?? 0,
|
|
158
|
-
bitrate: a.bandwidth ?? 0,
|
|
159
|
-
codec: m.codec,
|
|
160
|
-
index: I
|
|
161
|
-
};
|
|
162
|
-
i(this, d).qualities[q.add](U, l);
|
|
163
|
-
}), Ft(m.index)) {
|
|
164
|
-
const a = i(this, d).qualities[m.index];
|
|
165
|
-
a && i(this, d).qualities[q.select](a, !0, l);
|
|
166
|
-
}
|
|
167
|
-
c.forEach((a, I) => {
|
|
168
|
-
const C = a.labels.find((K) => navigator.languages.some((St) => K.lang && St.toLowerCase().startsWith(K.lang.toLowerCase()))) || a.labels[0], Tt = {
|
|
169
|
-
id: `dash-audio-${a == null ? void 0 : a.index}`,
|
|
170
|
-
label: (C == null ? void 0 : C.text) ?? (a.lang && W(a.lang)) ?? a.lang ?? "",
|
|
171
|
-
language: a.lang ?? "",
|
|
172
|
-
kind: "main",
|
|
173
|
-
mimeType: a.mimeType,
|
|
174
|
-
codec: a.codec,
|
|
175
|
-
index: I
|
|
176
|
-
};
|
|
177
|
-
i(this, d).audioTracks[q.add](Tt, l);
|
|
178
|
-
}), g.dispatchEvent(new N("canplay", { trigger: l }));
|
|
179
|
-
}, at = function(t) {
|
|
180
|
-
const { type: e, error: r } = t;
|
|
181
|
-
switch (r.code) {
|
|
182
|
-
case 27:
|
|
183
|
-
h(this, s, ut).call(this, r);
|
|
184
|
-
break;
|
|
185
|
-
default:
|
|
186
|
-
h(this, s, G).call(this, r);
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
}, ht = function() {
|
|
190
|
-
i(this, A) >= 0 && h(this, s, Q).call(this);
|
|
191
|
-
}, dt = function(t) {
|
|
192
|
-
t.mediaType === "text" && requestAnimationFrame(h(this, s, et).bind(this, t));
|
|
193
|
-
}, A = new WeakMap(), ut = function(t) {
|
|
194
|
-
var e;
|
|
195
|
-
h(this, s, Q).call(this), (e = i(this, o)) == null || e.play(), p(this, A, window.setTimeout(() => {
|
|
196
|
-
p(this, A, -1), h(this, s, G).call(this, t);
|
|
197
|
-
}, 5e3));
|
|
198
|
-
}, Q = function() {
|
|
199
|
-
clearTimeout(i(this, A)), p(this, A, -1);
|
|
200
|
-
}, G = function(t) {
|
|
201
|
-
i(this, d).notify("error", {
|
|
202
|
-
message: t.message ?? "",
|
|
203
|
-
code: 1,
|
|
204
|
-
error: t
|
|
205
|
-
});
|
|
206
|
-
}, ct = function() {
|
|
207
|
-
var e;
|
|
208
|
-
h(this, s, V).call(this, "video", !0);
|
|
209
|
-
const { qualities: t } = i(this, d);
|
|
210
|
-
(e = i(this, o)) == null || e.setQualityFor("video", t.selectedIndex, !0);
|
|
211
|
-
}, V = function(t, e) {
|
|
212
|
-
var r;
|
|
213
|
-
(r = i(this, o)) == null || r.updateSettings({
|
|
214
|
-
streaming: { abr: { autoSwitchBitrate: { [t]: e } } }
|
|
215
|
-
});
|
|
216
|
-
}, lt = function() {
|
|
217
|
-
const { qualities: t } = i(this, d);
|
|
218
|
-
!i(this, o) || t.auto || !t.selected || (h(this, s, V).call(this, "video", !1), i(this, o).setQualityFor("video", t.selectedIndex, t.switch === "current"), Rt && (i(this, L).currentTime = i(this, L).currentTime));
|
|
219
|
-
}, pt = function() {
|
|
220
|
-
if (!i(this, o)) return;
|
|
221
|
-
const { audioTracks: t } = i(this, d), e = i(this, o).getTracksFor("audio").find(
|
|
222
|
-
(r) => t.selected && t.selected.id === `dash-audio-${r.index}`
|
|
223
|
-
);
|
|
224
|
-
e && i(this, o).setCurrentTrack(e);
|
|
225
|
-
}, B = function() {
|
|
226
|
-
h(this, s, Q).call(this), p(this, v, null), p(this, P, {});
|
|
227
|
-
};
|
|
228
|
-
var M, S, $, w, gt, ft, yt, mt;
|
|
229
|
-
class Ot {
|
|
230
|
-
constructor(t, e, r) {
|
|
231
|
-
f(this, w);
|
|
232
|
-
f(this, M);
|
|
233
|
-
f(this, S);
|
|
234
|
-
f(this, $);
|
|
235
|
-
p(this, M, t), p(this, S, e), p(this, $, r), h(this, w, gt).call(this);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
M = new WeakMap(), S = new WeakMap(), $ = new WeakMap(), w = new WeakSet(), gt = async function() {
|
|
239
|
-
const t = {
|
|
240
|
-
onLoadStart: h(this, w, ft).bind(this),
|
|
241
|
-
onLoaded: h(this, w, yt).bind(this),
|
|
242
|
-
onLoadError: h(this, w, mt).bind(this)
|
|
243
|
-
};
|
|
244
|
-
let e = await bt(i(this, M), t);
|
|
245
|
-
if (Z(e) && !_(i(this, M)) && (e = await Qt(i(this, M), t)), !e) return null;
|
|
246
|
-
if (!window.dashjs.supportsMediaSource()) {
|
|
247
|
-
const r = "[vidstack] `dash.js` is not supported in this environment";
|
|
248
|
-
return i(this, S).player.dispatch(new N("dash-unsupported")), i(this, S).notify("error", { message: r, code: 4 }), null;
|
|
249
|
-
}
|
|
250
|
-
return e;
|
|
251
|
-
}, ft = function() {
|
|
252
|
-
i(this, S).player.dispatch(new N("dash-lib-load-start"));
|
|
253
|
-
}, yt = function(t) {
|
|
254
|
-
i(this, S).player.dispatch(
|
|
255
|
-
new N("dash-lib-loaded", {
|
|
256
|
-
detail: t
|
|
257
|
-
})
|
|
258
|
-
), i(this, $).call(this, t);
|
|
259
|
-
}, mt = function(t) {
|
|
260
|
-
const e = Pt(t);
|
|
261
|
-
i(this, S).player.dispatch(
|
|
262
|
-
new N("dash-lib-load-error", {
|
|
263
|
-
detail: e
|
|
264
|
-
})
|
|
265
|
-
), i(this, S).notify("error", {
|
|
266
|
-
message: e.message,
|
|
267
|
-
code: 4,
|
|
268
|
-
error: e
|
|
269
|
-
});
|
|
270
|
-
};
|
|
271
|
-
async function Qt(n, t = {}) {
|
|
272
|
-
var e, r, l, g, y, u, m;
|
|
273
|
-
if (!Z(n)) {
|
|
274
|
-
if ((e = t.onLoadStart) == null || e.call(t), Gt(n))
|
|
275
|
-
return (r = t.onLoaded) == null || r.call(t, n), n;
|
|
276
|
-
if (X(n)) {
|
|
277
|
-
const c = n.MediaPlayer;
|
|
278
|
-
return (l = t.onLoaded) == null || l.call(t, c), c;
|
|
279
|
-
}
|
|
280
|
-
try {
|
|
281
|
-
const c = (g = await n()) == null ? void 0 : g.default;
|
|
282
|
-
if (X(c))
|
|
283
|
-
return (y = t.onLoaded) == null || y.call(t, c.MediaPlayer), c.MediaPlayer;
|
|
284
|
-
if (c)
|
|
285
|
-
(u = t.onLoaded) == null || u.call(t, c);
|
|
286
|
-
else
|
|
287
|
-
throw Error(
|
|
288
|
-
""
|
|
289
|
-
);
|
|
290
|
-
return c;
|
|
291
|
-
} catch (c) {
|
|
292
|
-
(m = t.onLoadError) == null || m.call(t, c);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
async function bt(n, t = {}) {
|
|
297
|
-
var e, r, l;
|
|
298
|
-
if (_(n)) {
|
|
299
|
-
(e = t.onLoadStart) == null || e.call(t);
|
|
300
|
-
try {
|
|
301
|
-
if (await qt(n), !_t(window.dashjs.MediaPlayer))
|
|
302
|
-
throw Error(
|
|
303
|
-
""
|
|
304
|
-
);
|
|
305
|
-
const g = window.dashjs.MediaPlayer;
|
|
306
|
-
return (r = t.onLoaded) == null || r.call(t, g), g;
|
|
307
|
-
} catch (g) {
|
|
308
|
-
(l = t.onLoadError) == null || l.call(t, g);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
function Gt(n) {
|
|
313
|
-
return n && n.prototype && n.prototype !== Function;
|
|
314
|
-
}
|
|
315
|
-
function X(n) {
|
|
316
|
-
return n && "MediaPlayer" in n;
|
|
317
|
-
}
|
|
318
|
-
const Vt = "https://cdn.jsdelivr.net";
|
|
319
|
-
var H, T, D;
|
|
320
|
-
class Bt extends $t {
|
|
321
|
-
constructor() {
|
|
322
|
-
super(...arguments);
|
|
323
|
-
j(this, "$$PROVIDER_TYPE", "DASH");
|
|
324
|
-
f(this, H, null);
|
|
325
|
-
f(this, T, new jt(this.video, this.ctx));
|
|
326
|
-
f(this, D, `${Vt}/npm/dashjs@4.7.4/dist/dash.all.min.js`);
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* The `dash.js` constructor.
|
|
330
|
-
*/
|
|
331
|
-
get ctor() {
|
|
332
|
-
return i(this, H);
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* The current `dash.js` instance.
|
|
336
|
-
*/
|
|
337
|
-
get instance() {
|
|
338
|
-
return i(this, T).instance;
|
|
339
|
-
}
|
|
340
|
-
get type() {
|
|
341
|
-
return "dash";
|
|
342
|
-
}
|
|
343
|
-
get canLiveSync() {
|
|
344
|
-
return !0;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* The `dash.js` configuration object.
|
|
348
|
-
*
|
|
349
|
-
* @see {@link https://cdn.dashjs.org/latest/jsdoc/module-Settings.html}
|
|
350
|
-
*/
|
|
351
|
-
get config() {
|
|
352
|
-
return i(this, T).config;
|
|
353
|
-
}
|
|
354
|
-
set config(e) {
|
|
355
|
-
i(this, T).config = e;
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* The `dash.js` constructor (supports dynamic imports) or a URL of where it can be found.
|
|
359
|
-
*
|
|
360
|
-
* @defaultValue `https://cdn.jsdelivr.net/npm/dashjs@4.7.4/dist/dash.all.min.js`
|
|
361
|
-
*/
|
|
362
|
-
get library() {
|
|
363
|
-
return i(this, D);
|
|
364
|
-
}
|
|
365
|
-
set library(e) {
|
|
366
|
-
p(this, D, e);
|
|
367
|
-
}
|
|
368
|
-
preconnect() {
|
|
369
|
-
_(i(this, D)) && Lt(i(this, D));
|
|
370
|
-
}
|
|
371
|
-
setup() {
|
|
372
|
-
super.setup(), new Ot(i(this, D), this.ctx, (e) => {
|
|
373
|
-
p(this, H, e), i(this, T).setup(e), this.ctx.notify("provider-setup", this);
|
|
374
|
-
const r = At(this.ctx.$state.source);
|
|
375
|
-
r && this.loadSource(r);
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
async loadSource(e, r) {
|
|
379
|
-
if (!_(e.src)) {
|
|
380
|
-
this.removeSource();
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
this.media.preload = r || "", this.appendSource(e, "application/x-mpegurl"), i(this, T).loadSource(e), this.currentSrc = e;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* The given callback is invoked when a new `dash.js` instance is created and right before it's
|
|
387
|
-
* attached to media.
|
|
388
|
-
*/
|
|
389
|
-
onInstance(e) {
|
|
390
|
-
const r = i(this, T).instance;
|
|
391
|
-
return r && e(r), i(this, T).onInstance(e);
|
|
392
|
-
}
|
|
393
|
-
destroy() {
|
|
394
|
-
i(this, T).destroy();
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
H = new WeakMap(), T = new WeakMap(), D = new WeakMap(), /**
|
|
398
|
-
* Whether `dash.js` is supported in this environment.
|
|
399
|
-
*/
|
|
400
|
-
j(Bt, "supported", Et());
|
|
401
|
-
export {
|
|
402
|
-
Bt as DASHProvider
|
|
403
|
-
};
|