@vindral/web-sdk 4.5.1-7-gaca7ab1e0 → 4.5.1-8-g4635d6fd8

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.
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as d, o as te, p as ne, r as re, s as ie, t as ae, u as oe, v as se, y as ce } from "./173ugSB7.js";
3
- import { M as le } from "./C01DcfYu.js";
2
+ import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as d, o as te, p as ne, r as re, s as ie, t as ae, u as oe, v as se, y as ce } from "./DNren1CH.js";
3
+ import { P as le } from "./CQo-WbvS.js";
4
4
  import { a as f, i as p, n as m, r as h, t as g } from "./B7hT-BKr.js";
5
5
  import { c as ue, n as de, t as fe } from "./DeYmk5AL.js";
6
6
  import { t as pe } from "./FYiEDBC4.js";
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { M as n, v as r } from "./C01DcfYu.js";
2
+ import { P as n, b as r } from "./CQo-WbvS.js";
3
3
  import { t as i } from "./DrWNJwZx.js";
4
4
  import { t as a } from "./RxoWWyzp.js";
5
5
  //#region ../../libs/wasm-decoders/src/opus/wasm/opus.js
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./BsfwXDui.js";
2
2
  import { t } from "./RxoWWyzp.js";
3
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 {
4
+ var n = () => {}, r = "connection_failed", i = "connection_failed_will_not_attempt_again", a = "authentication_error", o = "authentication_expired", s = "channel_not_found", c = "channel_not_live", l = "no_incoming_data_error", u = "connection_inactivity", d = "missing_init_segment", f = "no_track_context", p = "invalid_track_context_state", m = "disconnected_by_edge", h = "decoder_error", g = "audio_player_error", _ = "unsupported_audio_codec", v = "media_source_error", y = "webgl_context_lost_error", b = "access_forbidden", x = "channel_switch_failed", S = "drm_error", C = class extends Error {
5
5
  constructor(n, r, i = {}) {
6
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
7
  var e;
@@ -19,100 +19,105 @@ var n = () => {}, r = "connection_failed", i = "connection_failed_will_not_attem
19
19
  });
20
20
  }), this.props = r, this.extra = i, Object.setPrototypeOf(this, new.target.prototype);
21
21
  }
22
- }, C = (e, t) => new S("MediaElement Error", {
22
+ }, w = (e, t) => new C("MediaElement Error", {
23
23
  isFatal: e,
24
24
  code: "media_element_error",
25
25
  source: t
26
- }, { mediaErrorCode: t.code }), w = (e, t) => new S("Decoder Error", {
26
+ }, { mediaErrorCode: t.code }), T = (e, t) => new C("Decoder Error", {
27
27
  isFatal: e,
28
- code: m,
28
+ code: h,
29
29
  source: t,
30
30
  type: "internal"
31
- }), T = (e, t, n) => new S(`No decoder available for audio codec "${e}" in non-MSE playback. ${t}`, {
31
+ }), E = (e, t, n) => new C(`No decoder available for audio codec "${e}" in non-MSE playback. ${t}`, {
32
32
  isFatal: !0,
33
- code: g,
33
+ code: _,
34
34
  source: n,
35
35
  type: "external"
36
36
  }, {
37
37
  codec: e,
38
38
  reason: t
39
- }), E = (e, t) => new S("Audio Player Error", {
39
+ }), D = (e, t) => new C("Audio Player Error", {
40
40
  isFatal: e,
41
- code: h,
41
+ code: g,
42
42
  source: t,
43
43
  type: "internal"
44
- }), D = (e, t) => new S(`No init segment for rendition id ${e} for channel ${t}`, {
44
+ }), O = (e, t) => new C(`No init segment for rendition id ${e} for channel ${t}`, {
45
45
  isFatal: !1,
46
- code: u,
46
+ code: d,
47
47
  type: "internal"
48
- }), O = (e, t, n, r) => new S("MediaSource Error", {
48
+ }), k = (e, t, n, r) => new C("MediaSource Error", {
49
49
  isFatal: e,
50
- code: _,
50
+ code: v,
51
51
  source: t,
52
52
  type: "internal"
53
53
  }, {
54
54
  type: r,
55
55
  consecutiveErrorsCount: n
56
- }), k = (e, t) => new S(`No track context for ${e}${t ? `, rendition id ${t}` : ""}`, {
56
+ }), A = (e, t) => new C(`No track context for ${e}${t ? `, rendition id ${t}` : ""}`, {
57
57
  isFatal: !1,
58
- code: d,
58
+ code: f,
59
59
  type: "internal"
60
- }), A = (e, t) => new S(`Track context is in an invalid state for ${e}${t ? `, rendition id ${t}` : ""}`, {
60
+ }), j = (e, t) => new C(`Track context is in an invalid state for ${e}${t ? `, rendition id ${t}` : ""}`, {
61
61
  isFatal: !1,
62
- code: f,
62
+ code: p,
63
63
  type: "internal"
64
- }), j = () => new S("Web Audio Context resume timeout", {
64
+ }), M = () => new C("Web Audio Context resume timeout", {
65
65
  isFatal: !1,
66
66
  code: "web_audio_context_resume_timeout"
67
- }), M = (e) => new S("Disconnected From Edge Server", {
67
+ }), N = (e) => new C("Disconnected From Edge Server", {
68
68
  type: "external",
69
69
  source: e,
70
70
  isFatal: !1,
71
- code: p
72
- }), N = (e) => new S("Authentication Failed", {
71
+ code: m
72
+ }), P = (e) => new C("Authentication Failed", {
73
73
  isFatal: !0,
74
74
  code: a,
75
75
  source: e
76
- }), P = (e) => new S("Authentication Expired", {
76
+ }), F = (e) => new C("Authentication Expired", {
77
77
  isFatal: !0,
78
78
  code: o,
79
79
  source: e
80
- }), F = (e, t) => new S("Connection closed due to inactivity", {
80
+ }), I = (e, t) => new C("Connection closed due to inactivity", {
81
81
  isFatal: !1,
82
- code: l,
82
+ code: u,
83
83
  source: t,
84
84
  type: e
85
- }), I = (e, t) => new S("Channel not found", {
85
+ }), L = (e, t) => new C("Channel not found", {
86
86
  isFatal: !1,
87
87
  code: s,
88
88
  source: t,
89
89
  type: e
90
- }), L = (e) => new S("No Incoming Data", {
90
+ }), R = (e) => new C("Waiting for channel to go live", {
91
91
  isFatal: !1,
92
92
  code: c,
93
+ source: e,
94
+ type: "external"
95
+ }), z = (e) => new C("No Incoming Data", {
96
+ isFatal: !1,
97
+ code: l,
93
98
  source: e
94
- }), R = (e) => new S("Connection attempt failed", {
99
+ }), B = (e) => new C("Connection attempt failed", {
95
100
  isFatal: !1,
96
101
  code: r,
97
102
  source: e
98
- }), z = () => new S("Connection failed - no more reconnect attempts", {
103
+ }), V = () => new C("Connection failed - no more reconnect attempts", {
99
104
  isFatal: !0,
100
105
  code: i
101
- }), B = (e) => new S("WebGL Context Lost", {
106
+ }), H = (e) => new C("WebGL Context Lost", {
102
107
  isFatal: !1,
103
- code: v,
108
+ code: y,
104
109
  source: e,
105
110
  type: "internal"
106
- }), V = (e) => new S(e, {
111
+ }), U = (e) => new C(e, {
107
112
  isFatal: !0,
108
- code: y
109
- }), H = (e) => new S(`Channel switch to '${e}' failed`, {
110
- isFatal: !1,
111
113
  code: b
112
- }), U = (e, t = !1, n) => new S(e, {
114
+ }), W = (e) => new C(`Channel switch to '${e}' failed`, {
115
+ isFatal: !1,
116
+ code: x
117
+ }), G = (e, t = !1, n) => new C(e, {
113
118
  isFatal: t,
114
- code: x,
119
+ code: S,
115
120
  source: n
116
121
  });
117
122
  //#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 };
123
+ export { V as A, I as C, O as D, k as E, E as M, H as N, z as O, n as P, G as S, w as T, L as _, c as a, T as b, m as c, C as d, U as f, F as g, P as h, s as i, B as j, A as k, u as l, D as m, o as n, i as o, M as p, a as r, r as s, b as t, l as u, R as v, j as w, N as x, W as y };