@vindral/web-sdk 4.2.0-5-g7d2f2421 → 4.2.0-7-g7d6ca07f

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/react.js CHANGED
@@ -1 +0,0 @@
1
-
@@ -1,2 +1,5 @@
1
- import { registerComponents as o } from "./player.js";
2
- o();
1
+ import "./D4BVrOMF.js";
2
+ import { t as e } from "./CnCQ_flD.js";
3
+ //#region src/vindral-player-component.ts
4
+ e();
5
+ //#endregion
package/zjSBNbgC.js ADDED
@@ -0,0 +1,118 @@
1
+ import { n as e } from "./DTteQSVE.js";
2
+ import { t } from "./Dexfb10F.js";
3
+ //#region ../../libs/utils/src/noop.ts
4
+ var n = () => {}, r = "connection_failed", i = "connection_failed_will_not_attempt_again", a = "authentication_error", o = "authentication_expired", s = "channel_not_found", c = "no_incoming_data_error", l = "connection_inactivity", u = "missing_init_segment", d = "no_track_context", f = "invalid_track_context_state", p = "disconnected_by_edge", m = "decoder_error", h = "audio_player_error", g = "unsupported_audio_codec", _ = "media_source_error", v = "webgl_context_lost_error", y = "access_forbidden", b = "channel_switch_failed", x = "drm_error", S = class extends Error {
5
+ constructor(n, r, i = {}) {
6
+ super(n), e(this, "props", void 0), e(this, "extra", {}), e(this, "code", () => this.props.code), e(this, "isFatal", () => this.props.isFatal), e(this, "source", () => this.props.source), e(this, "type", () => {
7
+ var e;
8
+ return (e = this.props.type) == null ? "external" : e;
9
+ }), e(this, "toStringifiable", () => {
10
+ var e;
11
+ let n = this.source(), r = n instanceof Error ? n.stack : this.stack;
12
+ return t(t({}, this.extra), {}, {
13
+ code: this.props.code,
14
+ isFatal: this.props.isFatal,
15
+ type: this.props.type,
16
+ message: this.message,
17
+ sourceMessage: (e = this.source()) == null ? void 0 : e.message,
18
+ stack: r
19
+ });
20
+ }), this.props = r, this.extra = i, Object.setPrototypeOf(this, new.target.prototype);
21
+ }
22
+ }, C = (e, t) => new S("MediaElement Error", {
23
+ isFatal: e,
24
+ code: "media_element_error",
25
+ source: t
26
+ }, { mediaErrorCode: t.code }), w = (e, t) => new S("Decoder Error", {
27
+ isFatal: e,
28
+ code: m,
29
+ source: t,
30
+ type: "internal"
31
+ }), T = (e, t, n) => new S(`No decoder available for audio codec "${e}" in non-MSE playback. ${t}`, {
32
+ isFatal: !0,
33
+ code: g,
34
+ source: n,
35
+ type: "external"
36
+ }, {
37
+ codec: e,
38
+ reason: t
39
+ }), E = (e, t) => new S("Audio Player Error", {
40
+ isFatal: e,
41
+ code: h,
42
+ source: t,
43
+ type: "internal"
44
+ }), D = (e, t) => new S(`No init segment for rendition id ${e} for channel ${t}`, {
45
+ isFatal: !1,
46
+ code: u,
47
+ type: "internal"
48
+ }), O = (e, t, n, r) => new S("MediaSource Error", {
49
+ isFatal: e,
50
+ code: _,
51
+ source: t,
52
+ type: "internal"
53
+ }, {
54
+ type: r,
55
+ consecutiveErrorsCount: n
56
+ }), k = (e, t) => new S(`No track context for ${e}${t ? `, rendition id ${t}` : ""}`, {
57
+ isFatal: !1,
58
+ code: d,
59
+ type: "internal"
60
+ }), A = (e, t) => new S(`Track context is in an invalid state for ${e}${t ? `, rendition id ${t}` : ""}`, {
61
+ isFatal: !1,
62
+ code: f,
63
+ type: "internal"
64
+ }), j = () => new S("Web Audio Context resume timeout", {
65
+ isFatal: !1,
66
+ code: "web_audio_context_resume_timeout"
67
+ }), M = (e) => new S("Disconnected From Edge Server", {
68
+ type: "external",
69
+ source: e,
70
+ isFatal: !1,
71
+ code: p
72
+ }), N = (e) => new S("Authentication Failed", {
73
+ isFatal: !0,
74
+ code: a,
75
+ source: e
76
+ }), P = (e) => new S("Authentication Expired", {
77
+ isFatal: !0,
78
+ code: o,
79
+ source: e
80
+ }), F = (e, t) => new S("Connection closed due to inactivity", {
81
+ isFatal: !1,
82
+ code: l,
83
+ source: t,
84
+ type: e
85
+ }), I = (e, t) => new S("Channel not found", {
86
+ isFatal: !1,
87
+ code: s,
88
+ source: t,
89
+ type: e
90
+ }), L = (e) => new S("No Incoming Data", {
91
+ isFatal: !1,
92
+ code: c,
93
+ source: e
94
+ }), R = (e) => new S("Connection attempt failed", {
95
+ isFatal: !1,
96
+ code: r,
97
+ source: e
98
+ }), z = () => new S("Connection failed - no more reconnect attempts", {
99
+ isFatal: !0,
100
+ code: i
101
+ }), B = (e) => new S("WebGL Context Lost", {
102
+ isFatal: !1,
103
+ code: v,
104
+ source: e,
105
+ type: "internal"
106
+ }), V = (e) => new S(e, {
107
+ isFatal: !0,
108
+ code: y
109
+ }), H = (e) => new S(`Channel switch to '${e}' failed`, {
110
+ isFatal: !1,
111
+ code: b
112
+ }), U = (e, t = !1, n) => new S(e, {
113
+ isFatal: t,
114
+ code: x,
115
+ source: n
116
+ });
117
+ //#endregion
118
+ export { T as A, C, k as D, L as E, n as M, z as O, A as S, D as T, H as _, i as a, U as b, l as c, V as d, j as f, I as g, P as h, s as i, B as j, R as k, c as l, N as m, o as n, r as o, E as p, a as r, p as s, y as t, S as u, w as v, O as w, F as x, M as y };