@lazycatcloud/lzc-video-player 0.0.32 → 0.0.33
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/lzc-video-player.js +16 -13
- package/package.json +1 -1
package/dist/lzc-video-player.js
CHANGED
|
@@ -87326,7 +87326,7 @@ const _hoisted_1 = ["onClick"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87326
87326
|
let n;
|
|
87327
87327
|
const s = ref(null);
|
|
87328
87328
|
function o() {
|
|
87329
|
-
n.userActive_ && n.userActive(!1);
|
|
87329
|
+
n.paused() ? n.play() : n.pause(), n.userActive_ && n.userActive(!1);
|
|
87330
87330
|
}
|
|
87331
87331
|
function u() {
|
|
87332
87332
|
return Object.assign(
|
|
@@ -87366,19 +87366,22 @@ const _hoisted_1 = ["onClick"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87366
87366
|
r.options
|
|
87367
87367
|
);
|
|
87368
87368
|
}
|
|
87369
|
-
return useKeyBind(
|
|
87370
|
-
|
|
87371
|
-
|
|
87372
|
-
|
|
87373
|
-
|
|
87374
|
-
|
|
87375
|
-
|
|
87376
|
-
|
|
87369
|
+
return useKeyBind(
|
|
87370
|
+
{
|
|
87371
|
+
Space: () => {
|
|
87372
|
+
n.paused() ? n.play() : n.pause();
|
|
87373
|
+
},
|
|
87374
|
+
ArrowLeft: () => n.currentTime(Math.max(0, n.currentTime() - 5)),
|
|
87375
|
+
ArrowRight: () => n.currentTime(Math.min(n.duration(), n.currentTime() + 5)),
|
|
87376
|
+
ArrowUp: () => {
|
|
87377
|
+
n.volume(Math.min(100, n.volume() * 100 + 5) / 100), n.trigger("lzcVolumeShow");
|
|
87378
|
+
},
|
|
87379
|
+
ArrowDown: () => {
|
|
87380
|
+
n.volume(Math.max(0, n.volume() * 100 - 5) / 100), n.trigger("lzcVolumeShow");
|
|
87381
|
+
}
|
|
87377
87382
|
},
|
|
87378
|
-
|
|
87379
|
-
|
|
87380
|
-
}
|
|
87381
|
-
}, a), onMounted(async () => {
|
|
87383
|
+
a
|
|
87384
|
+
), onMounted(async () => {
|
|
87382
87385
|
const l = useHistoryInfo(), c = document.createElement("meta");
|
|
87383
87386
|
c.name = "referrer", c.content = "no-referrer", document.head.append(c), n = videojs(s.value, u()), useSource(n), n.dimensions(window.innerWidth, window.innerHeight), n.poster(r.poster);
|
|
87384
87387
|
const d = new LzcModal(n);
|