@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.
- package/dist/components/EVideoPlayer.vue.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +15 -12
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
9707
|
-
const
|
|
9708
|
-
(
|
|
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
|
-
|
|
9711
|
-
|
|
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
|
-
}),
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
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
|
-
"
|
|
9994
|
+
"3cfb08b8",
|
|
9992
9995
|
null,
|
|
9993
9996
|
null
|
|
9994
9997
|
);
|