@evercam/ui 0.0.53-beta.5 → 0.0.53-beta.6
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/index.mjs +21 -27
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EVideoPlayer.vue.d.ts +2 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -21246,34 +21246,28 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21246
21246
|
}
|
|
21247
21247
|
}), (t = this.player) == null || t.loadSource(this.sources[0].src), (i = this.player) == null || i.attachMedia(s), (r = this.player) == null || r.on(Te.Events.MANIFEST_PARSED, () => {
|
|
21248
21248
|
this.playing && s.play();
|
|
21249
|
-
}), (n = this.player) == null || n.on(Te.Events.ERROR,
|
|
21250
|
-
var l;
|
|
21251
|
-
if (o.fatal)
|
|
21252
|
-
switch (o.type) {
|
|
21253
|
-
case Te.ErrorTypes.NETWORK_ERROR:
|
|
21254
|
-
if (((l = o.networkDetails) == null ? void 0 : l.status) === 404) {
|
|
21255
|
-
this.player.destroy(), this.videoListeners.error ? this.videoListeners.error() : this.handle404Error();
|
|
21256
|
-
return;
|
|
21257
|
-
}
|
|
21258
|
-
console.error("A network error occurred:", o), this.player.startLoad();
|
|
21259
|
-
break;
|
|
21260
|
-
case Te.ErrorTypes.MEDIA_ERROR:
|
|
21261
|
-
console.error("A media error occurred:", o), this.player.recoverMediaError();
|
|
21262
|
-
break;
|
|
21263
|
-
default:
|
|
21264
|
-
if (this.player.destroy(), this.videoListeners.error) {
|
|
21265
|
-
this.videoListeners.error();
|
|
21266
|
-
return;
|
|
21267
|
-
} else {
|
|
21268
|
-
this.handle404Error();
|
|
21269
|
-
return;
|
|
21270
|
-
}
|
|
21271
|
-
}
|
|
21272
|
-
}));
|
|
21249
|
+
}), (n = this.player) == null || n.on(Te.Events.ERROR, this.handleHlsError));
|
|
21273
21250
|
},
|
|
21274
21251
|
handle404Error() {
|
|
21275
21252
|
this.isError = !0, this.isLoading = !1, this.playing = !1;
|
|
21276
21253
|
},
|
|
21254
|
+
handleHlsError(s, e) {
|
|
21255
|
+
var a;
|
|
21256
|
+
if (!e.fatal)
|
|
21257
|
+
return;
|
|
21258
|
+
const t = e.type === Te.ErrorTypes.NETWORK_ERROR, i = e.type === Te.ErrorTypes.MEDIA_ERROR, r = t && ((a = e.networkDetails) == null ? void 0 : a.status) === 404, n = () => {
|
|
21259
|
+
this.player.destroy(), this.videoListeners.error ? this.videoListeners.error() : this.handle404Error();
|
|
21260
|
+
};
|
|
21261
|
+
if (r) {
|
|
21262
|
+
n();
|
|
21263
|
+
return;
|
|
21264
|
+
}
|
|
21265
|
+
if (t) {
|
|
21266
|
+
console.error("A network error occurred:", e), this.player.startLoad();
|
|
21267
|
+
return;
|
|
21268
|
+
}
|
|
21269
|
+
i && (console.error("A media error occurred:", e), this.player.recoverMediaError()), n();
|
|
21270
|
+
},
|
|
21277
21271
|
bindEvents() {
|
|
21278
21272
|
const s = this.$refs.player;
|
|
21279
21273
|
Er.forEach((e) => {
|
|
@@ -21292,10 +21286,10 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21292
21286
|
},
|
|
21293
21287
|
bindVideoEvent(s) {
|
|
21294
21288
|
const e = this.$refs.player, t = this.$refs.timelineContainer;
|
|
21295
|
-
s === "loadeddata" && (this.videoLength = Ci(e == null ? void 0 : e.duration)), s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / (e == null ? void 0 : e.duration) * 100, t.style.setProperty(
|
|
21289
|
+
s === "loadeddata" && (this.videoLength = Ci(e == null ? void 0 : e.duration)), t && (s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / (e == null ? void 0 : e.duration) * 100, t == null || t.style.setProperty(
|
|
21296
21290
|
"--progress-position",
|
|
21297
21291
|
this.percentagePlayed.toString()
|
|
21298
|
-
)), this.$emit(s, { event, player: e });
|
|
21292
|
+
)), this.$emit(s, { event, player: e }));
|
|
21299
21293
|
},
|
|
21300
21294
|
initializePlayer() {
|
|
21301
21295
|
const s = this.$refs.player;
|
|
@@ -21478,7 +21472,7 @@ var xh = function() {
|
|
|
21478
21472
|
Th,
|
|
21479
21473
|
!1,
|
|
21480
21474
|
null,
|
|
21481
|
-
"
|
|
21475
|
+
"8155676e",
|
|
21482
21476
|
null,
|
|
21483
21477
|
null
|
|
21484
21478
|
);
|