@evercam/ui 1.0.0-preview-cameraPowerSchedule-018bccfc2 → 1.0.0-preview-evideo-player-debug-mode-8791c884f

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.
@@ -27,7 +27,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
27
27
  end: string;
28
28
  };
29
29
  }, {
30
- initHls(src?: string): void;
30
+ initHls(src?: string, isDebugMode?: boolean): void;
31
31
  onContainerClick(): void;
32
32
  handle404Error(): void;
33
33
  handleHlsError(_: Events.ERROR, data: ErrorData): void;
package/dist/index.d.ts CHANGED
@@ -169,7 +169,7 @@ export declare const components: {
169
169
  end: string;
170
170
  };
171
171
  }, {
172
- initHls(src?: string): void;
172
+ initHls(src?: string, isDebugMode?: boolean): void;
173
173
  onContainerClick(): void;
174
174
  handle404Error(): void;
175
175
  handleHlsError(_: import("hls.js").Events.ERROR, data: import("hls.js").ErrorData): void;
package/dist/index.mjs CHANGED
@@ -9702,23 +9702,26 @@ const Vi = X0.exports, ar = new Intl.NumberFormat(void 0, {
9702
9702
  this.unbindEvents(), this.destroyPlayer(), this.removeFullscreenListeners();
9703
9703
  },
9704
9704
  methods: {
9705
- initHls(t = "") {
9706
- var n, i, a, o, c;
9707
- const e = this.$refs.player, r = this.sources[0];
9708
- (n = this.player) != null && n.stopLoad && this.player.stopLoad(), ot.isSupported() && (this.isLoading = !0, this.player = new ot({
9705
+ initHls(t = "", e = !1) {
9706
+ var i, a, o, c, s;
9707
+ const r = this.$refs.player, n = this.sources[0];
9708
+ (i = this.player) != null && i.stopLoad && this.player.stopLoad(), ot.isSupported() && (this.isLoading = !0, this.player = new ot({
9709
9709
  startPosition: 0,
9710
- xhrSetup: (s) => {
9711
- this.streamingToken && s.setRequestHeader(
9710
+ debug: e,
9711
+ xhrSetup: (l) => {
9712
+ this.streamingToken && l.setRequestHeader(
9712
9713
  "Authorization",
9713
9714
  `Bearer ${this.streamingToken}`
9714
9715
  );
9715
9716
  },
9716
9717
  ...this.hlsOptions
9717
- }), (i = this.player) == null || i.loadSource(t || r.src), (a = this.player) == null || a.attachMedia(e), (o = this.player) == null || o.on(ot.Events.MANIFEST_PARSED, (s, l) => {
9718
- var m;
9719
- const d = (m = l.levels[l.firstLevel]) == null ? void 0 : m.details, p = d == null ? void 0 : d.startTimeOffset;
9720
- e.currentTime = p || 0, this.playing && e.play();
9721
- }), (c = this.player) == null || c.on(ot.Events.ERROR, this.handleHlsError));
9718
+ }), this.player.enableDebug = () => {
9719
+ this.player.destroy(), this.initHls(t, !0);
9720
+ }, r._hls = this.player, (a = this.player) == null || a.loadSource(t || n.src), (o = this.player) == null || o.attachMedia(r), (c = this.player) == null || c.on(ot.Events.MANIFEST_PARSED, (l, d) => {
9721
+ var b;
9722
+ const p = (b = d.levels[d.firstLevel]) == null ? void 0 : b.details, m = p == null ? void 0 : p.startTimeOffset;
9723
+ r.currentTime = m || 0, this.playing && r.play();
9724
+ }), (s = this.player) == null || s.on(ot.Events.ERROR, this.handleHlsError));
9722
9725
  },
9723
9726
  onContainerClick() {
9724
9727
  this.pauseOnClick && this.togglePlay();
@@ -9988,7 +9991,7 @@ var K0 = function() {
9988
9991
  J0,
9989
9992
  !1,
9990
9993
  null,
9991
- "d7aeb2b0",
9994
+ "3cfb08b8",
9992
9995
  null,
9993
9996
  null
9994
9997
  );