vue-streaming 2.0.0 → 2.0.1

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,5 +1,5 @@
1
1
  import { defineComponent as T, ref as H, watch as L, computed as O, onMounted as U, createElementBlock as b, openBlock as w, createElementVNode as _, createCommentVNode as E, normalizeClass as G, unref as t, toDisplayString as x, Fragment as J, renderList as Q, onUnmounted as Z, normalizeStyle as ee, renderSlot as M, toRefs as I } from "vue";
2
- import { a as te, g as ne, u as oe, b as se, c as re, d as ae, f as ie, e as le, h as ce } from "./useWebSocket-CrE6QkTW.js";
2
+ import { a as te, g as ne, u as oe, b as se, c as re, d as ae, f as ie, e as le, h as ce } from "./useWebSocket-D1Rqm0H7.js";
3
3
  const ue = { class: "hls-player" }, de = { class: "hls-player__video-container" }, pe = ["controls", "muted", "loop", "poster"], me = {
4
4
  key: 0,
5
5
  class: "hls-player__overlay"
@@ -47,13 +47,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
47
47
  }
48
48
  }, {
49
49
  state: i,
50
- isPlaying: u,
50
+ isPlaying: d,
51
51
  isBuffering: f,
52
52
  levels: r,
53
53
  currentLevel: l,
54
- autoLevelEnabled: d,
54
+ autoLevelEnabled: c,
55
55
  currentTime: p,
56
- duration: c,
56
+ duration: u,
57
57
  buffered: n,
58
58
  volume: s,
59
59
  muted: a,
@@ -143,7 +143,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
143
143
  _("div", be, [
144
144
  V.value ? (w(), b("span", we, x(V.value.width) + "x" + x(V.value.height), 1)) : E("", !0),
145
145
  _("span", null, x(Math.round(t(B).bandwidth / 1e6 * 10) / 10) + " Mbps", 1),
146
- _("span", null, x(N(t(p))) + " / " + x(N(t(c))), 1)
146
+ _("span", null, x(N(t(p))) + " / " + x(N(t(u))), 1)
147
147
  ])
148
148
  ])) : E("", !0)
149
149
  ]));
@@ -177,23 +177,23 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
177
177
  emits: ["ready", "click", "error"],
178
178
  setup(C, { expose: R, emit: S }) {
179
179
  const e = C, o = S, v = H(null), y = H(!0), g = H(null);
180
- let i = null, u = null, f = null, r = null, l = null, d = null, p = null;
181
- async function c() {
180
+ let i = null, d = null, f = null, r = null, l = null, c = null, p = null;
181
+ async function u() {
182
182
  if (v.value)
183
183
  try {
184
184
  i = await import("three");
185
185
  const { OrbitControls: m } = await import("three/examples/jsm/controls/OrbitControls.js"), h = v.value, A = h.clientWidth, j = h.clientHeight;
186
- if (u = new i.Scene(), u.background = new i.Color(e.backgroundColor), f = new i.PerspectiveCamera(75, A / j, 0.1, 1e3), f.position.set(
186
+ if (d = new i.Scene(), d.background = new i.Color(e.backgroundColor), f = new i.PerspectiveCamera(75, A / j, 0.1, 1e3), f.position.set(
187
187
  e.cameraPosition.x,
188
188
  e.cameraPosition.y,
189
189
  e.cameraPosition.z
190
190
  ), r = new i.WebGLRenderer({ antialias: !0 }), r.setSize(A, j), r.setPixelRatio(window.devicePixelRatio), h.appendChild(r.domElement), l = new m(f, r.domElement), l.autoRotate = e.autoRotate, l.autoRotateSpeed = e.autoRotateSpeed, e.showGrid) {
191
191
  const $ = new i.GridHelper(10, 10, 4473924, 3355443);
192
- u.add($);
192
+ d.add($);
193
193
  }
194
194
  if (e.showAxes) {
195
195
  const $ = new i.AxesHelper(5);
196
- u.add($);
196
+ d.add($);
197
197
  }
198
198
  new ResizeObserver(() => {
199
199
  if (!f || !r || !v.value) return;
@@ -206,7 +206,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
206
206
  }
207
207
  }
208
208
  function n() {
209
- if (!i || !u || (d && (u.remove(d), d.geometry.dispose(), d.material.dispose(), d = null), e.points.length === 0)) return;
209
+ if (!i || !d || (c && (d.remove(c), c.geometry.dispose(), c.material.dispose(), c = null), e.points.length === 0)) return;
210
210
  const m = new i.BufferGeometry(), h = new Float32Array(e.points.length * 3), A = new Float32Array(e.points.length * 3);
211
211
  for (let P = 0; P < e.points.length; P++) {
212
212
  const $ = e.points[P];
@@ -223,7 +223,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
223
223
  vertexColors: !0,
224
224
  sizeAttenuation: !0
225
225
  });
226
- if (d = new i.Points(m, j), u.add(d), e.bounds && f) {
226
+ if (c = new i.Points(m, j), d.add(c), e.bounds && f) {
227
227
  const P = {
228
228
  x: (e.bounds.min.x + e.bounds.max.x) / 2,
229
229
  y: (e.bounds.min.y + e.bounds.max.y) / 2,
@@ -241,10 +241,10 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
241
241
  }
242
242
  }
243
243
  function s() {
244
- p = requestAnimationFrame(s), l && l.update(), r && u && f && r.render(u, f);
244
+ p = requestAnimationFrame(s), l && l.update(), r && d && f && r.render(d, f);
245
245
  }
246
246
  function a() {
247
- p && (cancelAnimationFrame(p), p = null), d && u && (u.remove(d), d.geometry.dispose(), d.material.dispose()), l && l.dispose(), r && (r.dispose(), v.value && r.domElement.parentNode && v.value.removeChild(r.domElement)), u = null, f = null, r = null, l = null, d = null;
247
+ p && (cancelAnimationFrame(p), p = null), c && d && (d.remove(c), c.geometry.dispose(), c.material.dispose()), l && l.dispose(), r && (r.dispose(), v.value && r.domElement.parentNode && v.value.removeChild(r.domElement)), d = null, f = null, r = null, l = null, c = null;
248
248
  }
249
249
  L(() => e.points, n, { deep: !0 }), L(
250
250
  [() => e.pointSize, () => e.pointColor, () => e.usePointColors],
@@ -260,7 +260,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
260
260
  l && (l.autoRotateSpeed = m);
261
261
  }
262
262
  ), U(() => {
263
- c();
263
+ u();
264
264
  }), Z(() => {
265
265
  a();
266
266
  });
@@ -320,7 +320,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
320
320
  return e.formatter(n);
321
321
  if (n == null)
322
322
  return String(n);
323
- switch (e.type === "auto" ? u(n) : e.type) {
323
+ switch (e.type === "auto" ? d(n) : e.type) {
324
324
  case "json":
325
325
  try {
326
326
  return JSON.stringify(n, null, 2);
@@ -333,7 +333,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
333
333
  return String(n);
334
334
  }
335
335
  }
336
- function u(n) {
336
+ function d(n) {
337
337
  return n instanceof ArrayBuffer || n instanceof Uint8Array ? "binary" : typeof n == "object" ? "json" : "text";
338
338
  }
339
339
  function f(n, s = "data") {
@@ -354,7 +354,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
354
354
  function l() {
355
355
  v.value = [], o("clear");
356
356
  }
357
- function d() {
357
+ function c() {
358
358
  o("pause", !e.paused);
359
359
  }
360
360
  function p(n) {
@@ -372,7 +372,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
372
372
  n !== void 0 && f(n);
373
373
  }
374
374
  );
375
- const c = O(() => ({
375
+ const u = O(() => ({
376
376
  total: v.value.length,
377
377
  errors: v.value.filter((n) => n.type === "error").length
378
378
  }));
@@ -380,16 +380,16 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
380
380
  addLog: f,
381
381
  clear: l,
382
382
  logs: v,
383
- stats: c
383
+ stats: u
384
384
  }), (n, s) => (w(), b("div", $e, [
385
385
  _("div", Ae, [
386
386
  _("div", Ee, [
387
- _("span", null, "Lines: " + x(c.value.total), 1),
388
- c.value.errors > 0 ? (w(), b("span", Le, " Errors: " + x(c.value.errors), 1)) : E("", !0)
387
+ _("span", null, "Lines: " + x(u.value.total), 1),
388
+ u.value.errors > 0 ? (w(), b("span", Le, " Errors: " + x(u.value.errors), 1)) : E("", !0)
389
389
  ]),
390
390
  _("div", Te, [
391
391
  _("button", {
392
- onClick: d,
392
+ onClick: c,
393
393
  class: G(["stream-viewer__btn", { "stream-viewer__btn--active": n.paused }])
394
394
  }, x(n.paused ? "▶ Resume" : "⏸ Pause"), 3),
395
395
  _("button", {
@@ -475,13 +475,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
475
475
  }
476
476
  }, {
477
477
  isRunning: i,
478
- connectionState: u,
478
+ connectionState: d,
479
479
  dataChannels: f,
480
480
  lastPointCloudFrame: r,
481
481
  lastDetectionFrame: l,
482
- lastBoundingBoxes: d,
482
+ lastBoundingBoxes: c,
483
483
  error: p,
484
- start: c,
484
+ start: u,
485
485
  stop: n,
486
486
  sendControl: s
487
487
  } = ne(y, g), a = O(() => {
@@ -490,10 +490,10 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
490
490
  channels: f.value.size,
491
491
  pointCount: ((m = r.value) == null ? void 0 : m.points.length) ?? 0,
492
492
  detectionCount: ((h = l.value) == null ? void 0 : h.detections.length) ?? 0,
493
- bboxCount: d.value.length
493
+ bboxCount: c.value.length
494
494
  };
495
495
  }), B = O(() => {
496
- switch (u.value) {
496
+ switch (d.value) {
497
497
  case "connected":
498
498
  return "#4caf50";
499
499
  case "connecting":
@@ -507,21 +507,21 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
507
507
  }
508
508
  });
509
509
  return U(() => {
510
- e.autoConnect && c();
510
+ e.autoConnect && u();
511
511
  }), L(
512
512
  () => e.signalingUrl,
513
513
  () => {
514
- i.value && (n(), y.signalingUrl = e.signalingUrl, c());
514
+ i.value && (n(), y.signalingUrl = e.signalingUrl, u());
515
515
  }
516
516
  ), R({
517
517
  isRunning: i,
518
- connectionState: u,
519
- start: c,
518
+ connectionState: d,
519
+ start: u,
520
520
  stop: n,
521
521
  sendControl: s,
522
522
  lastPointCloudFrame: r,
523
523
  lastDetectionFrame: l,
524
- lastBoundingBoxes: d,
524
+ lastBoundingBoxes: c,
525
525
  stats: a
526
526
  }), (m, h) => (w(), b("div", He, [
527
527
  m.showStatus ? (w(), b("div", Ie, [
@@ -530,7 +530,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
530
530
  class: "webrtc-viewer__indicator",
531
531
  style: ee({ backgroundColor: B.value })
532
532
  }, null, 4),
533
- _("span", null, x(t(u)), 1)
533
+ _("span", null, x(t(d)), 1)
534
534
  ]),
535
535
  _("div", Oe, [
536
536
  t(i) ? (w(), b("button", {
@@ -541,7 +541,7 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
541
541
  }, " ⏹ Disconnect ")) : (w(), b("button", {
542
542
  key: 0,
543
543
  onClick: h[0] || (h[0] = //@ts-ignore
544
- (...A) => t(c) && t(c)(...A)),
544
+ (...A) => t(u) && t(u)(...A)),
545
545
  class: "webrtc-viewer__btn webrtc-viewer__btn--connect"
546
546
  }, " ▶ Connect "))
547
547
  ])
@@ -549,17 +549,17 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
549
549
  _("div", Ue, [
550
550
  M(m.$slots, "default", {
551
551
  isRunning: t(i),
552
- connectionState: t(u),
552
+ connectionState: t(d),
553
553
  pointCloudFrame: t(r),
554
554
  detectionFrame: t(l),
555
- boundingBoxes: t(d),
555
+ boundingBoxes: t(c),
556
556
  error: t(p),
557
- start: t(c),
557
+ start: t(u),
558
558
  stop: t(n),
559
559
  sendControl: t(s)
560
560
  }, () => [
561
561
  _("div", We, [
562
- t(i) ? t(u) === "connecting" ? (w(), b("div", Ge, [
562
+ t(i) ? t(d) === "connecting" ? (w(), b("div", Ge, [
563
563
  h[3] || (h[3] = _("div", { class: "webrtc-viewer__spinner" }, null, -1)),
564
564
  _("span", null, x(v.value), 1)
565
565
  ])) : t(p) ? (w(), b("div", qe, [
@@ -593,13 +593,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
593
593
  data: y,
594
594
  buffer: g,
595
595
  bufferSize: i,
596
- isStreaming: u,
596
+ isStreaming: d,
597
597
  itemsPerSecond: f,
598
598
  totalItems: r,
599
599
  error: l,
600
- start: d,
600
+ start: c,
601
601
  stop: p,
602
- push: c,
602
+ push: u,
603
603
  clear: n,
604
604
  getBuffer: s,
605
605
  subscribe: a
@@ -608,23 +608,25 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
608
608
  onBatch: (B) => o("batch", B),
609
609
  onError: (B) => o("error", B)
610
610
  });
611
- return L(
611
+ return U(() => {
612
+ e.autoStart && c();
613
+ }), L(
612
614
  v,
613
615
  () => {
614
- p(), d();
616
+ p(), c();
615
617
  },
616
618
  { deep: !0 }
617
619
  ), R({
618
620
  data: y,
619
621
  buffer: g,
620
622
  bufferSize: i,
621
- isStreaming: u,
623
+ isStreaming: d,
622
624
  itemsPerSecond: f,
623
625
  totalItems: r,
624
626
  error: l,
625
- start: d,
627
+ start: c,
626
628
  stop: p,
627
- push: c,
629
+ push: u,
628
630
  clear: n,
629
631
  getBuffer: s,
630
632
  subscribe: a
@@ -632,13 +634,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
632
634
  data: t(y),
633
635
  buffer: t(g),
634
636
  bufferSize: t(i),
635
- isStreaming: t(u),
637
+ isStreaming: t(d),
636
638
  itemsPerSecond: t(f),
637
639
  totalItems: t(r),
638
640
  error: t(l),
639
- start: t(d),
641
+ start: t(c),
640
642
  stop: t(p),
641
- push: t(c),
643
+ push: t(u),
642
644
  clear: t(n)
643
645
  });
644
646
  }
@@ -662,13 +664,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
662
664
  isConnected: y,
663
665
  isStreaming: g,
664
666
  connectionState: i,
665
- lastChunk: u,
667
+ lastChunk: d,
666
668
  chunks: f,
667
669
  bytesReceived: r,
668
670
  error: l,
669
- reconnectAttempts: d,
671
+ reconnectAttempts: c,
670
672
  connect: p,
671
- disconnect: c,
673
+ disconnect: u,
672
674
  clearChunks: n
673
675
  } = se(
674
676
  {
@@ -695,30 +697,30 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
695
697
  }
696
698
  );
697
699
  return L(v, () => {
698
- c(), p();
700
+ u(), p();
699
701
  }), R({
700
702
  isConnected: y,
701
703
  isStreaming: g,
702
704
  connectionState: i,
703
- lastChunk: u,
705
+ lastChunk: d,
704
706
  chunks: f,
705
707
  bytesReceived: r,
706
708
  error: l,
707
- reconnectAttempts: d,
709
+ reconnectAttempts: c,
708
710
  connect: p,
709
- disconnect: c,
711
+ disconnect: u,
710
712
  clearChunks: n
711
713
  }), (s, a) => M(s.$slots, "default", {
712
714
  isConnected: t(y),
713
715
  isStreaming: t(g),
714
716
  connectionState: t(i),
715
- lastChunk: t(u),
717
+ lastChunk: t(d),
716
718
  chunks: t(f),
717
719
  bytesReceived: t(r),
718
720
  error: t(l),
719
- reconnectAttempts: t(d),
721
+ reconnectAttempts: t(c),
720
722
  connect: t(p),
721
- disconnect: t(c),
723
+ disconnect: t(u),
722
724
  clearChunks: t(n)
723
725
  });
724
726
  }
@@ -737,20 +739,20 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
737
739
  isConnected: y,
738
740
  channels: g,
739
741
  channel: i,
740
- privateChannel: u,
742
+ privateChannel: d,
741
743
  presenceChannel: f,
742
744
  leave: r,
743
745
  leaveAll: l,
744
- connect: d
746
+ connect: c
745
747
  } = re(e.config, {
746
748
  onConnected: (n) => o("connected", n),
747
749
  onError: (n) => o("error", n)
748
750
  });
749
751
  let p = null;
750
- function c() {
752
+ function u() {
751
753
  if (e.channel) {
752
754
  if (e.channelType === "private")
753
- p = u(e.channel);
755
+ p = d(e.channel);
754
756
  else if (e.channelType === "presence") {
755
757
  const n = f(e.channel);
756
758
  p = n, n.here((s) => o("here", s)), n.joining((s) => o("joining", s)), n.leaving((s) => o("leaving", s));
@@ -764,23 +766,23 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
764
766
  }
765
767
  }
766
768
  return U(async () => {
767
- await d(), e.autoSubscribe && e.channel && c();
769
+ await c(), e.autoSubscribe && e.channel && u();
768
770
  }), L(v, (n, s) => {
769
- s && (r(s), o("unsubscribed", s)), n && e.autoSubscribe && c();
771
+ s && (r(s), o("unsubscribed", s)), n && e.autoSubscribe && u();
770
772
  }), R({
771
773
  isConnected: y,
772
774
  channels: g,
773
775
  subscribePublic: i,
774
- privateChannel: u,
776
+ privateChannel: d,
775
777
  presenceChannel: f,
776
778
  leave: r,
777
779
  leaveAll: l,
778
- connect: d
780
+ connect: c
779
781
  }), (n, s) => M(n.$slots, "default", {
780
782
  isConnected: t(y),
781
783
  channels: t(g),
782
784
  subscribePublic: t(i),
783
- privateChannel: t(u),
785
+ privateChannel: t(d),
784
786
  presenceChannel: t(f),
785
787
  leave: t(r),
786
788
  leaveAll: t(l)
@@ -809,13 +811,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
809
811
  isPolling: y,
810
812
  connectionState: g,
811
813
  lastData: i,
812
- dataHistory: u,
814
+ dataHistory: d,
813
815
  requestCount: f,
814
816
  error: r,
815
817
  restartAttempts: l,
816
- start: d,
818
+ start: c,
817
819
  stop: p,
818
- poll: c,
820
+ poll: u,
819
821
  clearHistory: n
820
822
  } = ae(
821
823
  {
@@ -844,30 +846,30 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
844
846
  }
845
847
  );
846
848
  return L(v, () => {
847
- p(), d();
849
+ p(), c();
848
850
  }), R({
849
851
  isPolling: y,
850
852
  connectionState: g,
851
853
  lastData: i,
852
- dataHistory: u,
854
+ dataHistory: d,
853
855
  requestCount: f,
854
856
  error: r,
855
857
  restartAttempts: l,
856
- start: d,
858
+ start: c,
857
859
  stop: p,
858
- poll: c,
860
+ poll: u,
859
861
  clearHistory: n
860
862
  }), (s, a) => M(s.$slots, "default", {
861
863
  isPolling: t(y),
862
864
  connectionState: t(g),
863
865
  lastData: t(i),
864
- dataHistory: t(u),
866
+ dataHistory: t(d),
865
867
  requestCount: t(f),
866
868
  error: t(r),
867
869
  restartAttempts: t(l),
868
- start: t(d),
870
+ start: t(c),
869
871
  stop: t(p),
870
- poll: t(c),
872
+ poll: t(u),
871
873
  clearHistory: t(n)
872
874
  });
873
875
  }
@@ -884,13 +886,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
884
886
  isConnected: y,
885
887
  connectionState: g,
886
888
  socketId: i,
887
- rooms: u,
889
+ rooms: d,
888
890
  error: f,
889
891
  connect: r,
890
892
  disconnect: l,
891
- emit: d,
893
+ emit: c,
892
894
  on: p,
893
- off: c,
895
+ off: u,
894
896
  join: n,
895
897
  leave: s
896
898
  } = ie(e.config, {
@@ -913,26 +915,26 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
913
915
  isConnected: y,
914
916
  connectionState: g,
915
917
  socketId: i,
916
- rooms: u,
918
+ rooms: d,
917
919
  error: f,
918
920
  connect: r,
919
921
  disconnect: l,
920
- emit: d,
922
+ emit: c,
921
923
  on: p,
922
- off: c,
924
+ off: u,
923
925
  join: n,
924
926
  leave: s
925
927
  }), (a, B) => M(a.$slots, "default", {
926
928
  isConnected: t(y),
927
929
  connectionState: t(g),
928
930
  socketId: t(i),
929
- rooms: t(u),
931
+ rooms: t(d),
930
932
  error: t(f),
931
933
  connect: t(r),
932
934
  disconnect: t(l),
933
- emit: t(d),
935
+ emit: t(c),
934
936
  on: t(p),
935
- off: t(c),
937
+ off: t(u),
936
938
  join: t(n),
937
939
  leave: t(s)
938
940
  });
@@ -954,13 +956,13 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
954
956
  isConnected: y,
955
957
  connectionState: g,
956
958
  lastMessage: i,
957
- lastEventType: u,
959
+ lastEventType: d,
958
960
  lastEventId: f,
959
961
  error: r,
960
962
  reconnectAttempts: l,
961
- connect: d,
963
+ connect: c,
962
964
  disconnect: p,
963
- addEventListener: c,
965
+ addEventListener: u,
964
966
  removeEventListener: n
965
967
  } = le(
966
968
  {
@@ -983,30 +985,30 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
983
985
  }
984
986
  );
985
987
  return L(v, () => {
986
- p(), d();
988
+ p(), c();
987
989
  }), R({
988
990
  isConnected: y,
989
991
  connectionState: g,
990
992
  lastMessage: i,
991
- lastEventType: u,
993
+ lastEventType: d,
992
994
  lastEventId: f,
993
995
  error: r,
994
996
  reconnectAttempts: l,
995
- connect: d,
997
+ connect: c,
996
998
  disconnect: p,
997
- addEventListener: c,
999
+ addEventListener: u,
998
1000
  removeEventListener: n
999
1001
  }), (s, a) => M(s.$slots, "default", {
1000
1002
  isConnected: t(y),
1001
1003
  connectionState: t(g),
1002
1004
  lastMessage: t(i),
1003
- lastEventType: t(u),
1005
+ lastEventType: t(d),
1004
1006
  lastEventId: t(f),
1005
1007
  error: t(r),
1006
1008
  reconnectAttempts: t(l),
1007
- connect: t(d),
1009
+ connect: t(c),
1008
1010
  disconnect: t(p),
1009
- addEventListener: t(c),
1011
+ addEventListener: t(u),
1010
1012
  removeEventListener: t(n)
1011
1013
  });
1012
1014
  }
@@ -1022,18 +1024,18 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
1022
1024
  isConnected: y,
1023
1025
  connectionState: g,
1024
1026
  lastMessage: i,
1025
- error: u,
1027
+ error: d,
1026
1028
  reconnectAttempts: f,
1027
1029
  connect: r,
1028
1030
  disconnect: l,
1029
- send: d,
1031
+ send: c,
1030
1032
  sendJSON: p
1031
1033
  } = ce(e.config, {
1032
1034
  onOpen: () => o("open"),
1033
- onClose: (c, n) => o("close", c, n),
1034
- onError: (c) => o("error", c),
1035
- onMessage: (c, n) => o("message", c, n),
1036
- onReconnecting: (c, n) => o("reconnecting", c, n),
1035
+ onClose: (u, n) => o("close", u, n),
1036
+ onError: (u) => o("error", u),
1037
+ onMessage: (u, n) => o("message", u, n),
1038
+ onReconnecting: (u, n) => o("reconnecting", u, n),
1037
1039
  onReconnected: () => o("reconnected"),
1038
1040
  onReconnectFailed: () => o("reconnectFailed")
1039
1041
  });
@@ -1046,21 +1048,21 @@ const ue = { class: "hls-player" }, de = { class: "hls-player__video-container"
1046
1048
  isConnected: y,
1047
1049
  connectionState: g,
1048
1050
  lastMessage: i,
1049
- error: u,
1051
+ error: d,
1050
1052
  reconnectAttempts: f,
1051
1053
  connect: r,
1052
1054
  disconnect: l,
1053
- send: d,
1055
+ send: c,
1054
1056
  sendJSON: p
1055
- }), (c, n) => M(c.$slots, "default", {
1057
+ }), (u, n) => M(u.$slots, "default", {
1056
1058
  isConnected: t(y),
1057
1059
  connectionState: t(g),
1058
1060
  lastMessage: t(i),
1059
- error: t(u),
1061
+ error: t(d),
1060
1062
  reconnectAttempts: t(f),
1061
1063
  connect: t(r),
1062
1064
  disconnect: t(l),
1063
- send: t(d),
1065
+ send: t(c),
1064
1066
  sendJson: t(p)
1065
1067
  });
1066
1068
  }
@@ -1078,4 +1080,4 @@ export {
1078
1080
  ut as e,
1079
1081
  pt as f
1080
1082
  };
1081
- //# sourceMappingURL=WebSocketStream.vue_vue_type_script_setup_true_lang-C_F2vNNk.js.map
1083
+ //# sourceMappingURL=WebSocketStream.vue_vue_type_script_setup_true_lang-BzBWoH8H.js.map