@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.
@@ -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
- Space: () => {
87371
- n.paused() ? n.play() : n.pause();
87372
- },
87373
- ArrowLeft: () => n.currentTime(Math.max(0, n.currentTime() - 5)),
87374
- ArrowRight: () => n.currentTime(Math.min(n.duration(), n.currentTime() + 5)),
87375
- ArrowUp: () => {
87376
- n.volume(Math.min(100, n.volume() * 100 + 5) / 100), n.trigger("lzcVolumeShow");
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
- ArrowDown: () => {
87379
- n.volume(Math.max(0, n.volume() * 100 - 5) / 100), n.trigger("lzcVolumeShow");
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-video-player",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/lzc-video-player.js",