@lazycatcloud/lzc-video-player 0.0.1 → 0.0.2
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/Video/index.vue.d.ts +2 -0
- package/dist/{index-horizontal.4350090a.js → index-horizontal.6d44f0c8.js} +2 -2
- package/dist/{index-vertical.4c7b466b.js → index-vertical.e10b92b8.js} +2 -2
- package/dist/{list.7099181d.js → list.ef315d4b.js} +1 -1
- package/dist/{lzc-video-player.47190826.js → lzc-video-player.c352003d.js} +14 -8
- package/dist/lzc-video-player.js +2 -2
- package/dist/{playrate.b2b089b8.js → playrate.a962a582.js} +2 -2
- package/dist/{resolution.2163011d.js → resolution.2be9c173.js} +2 -2
- package/dist/{simpleList.4d06b064.js → simpleList.15646ead.js} +1 -1
- package/dist/use/useUtils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
back: () => void;
|
|
10
|
+
controlBarActive: (show: boolean) => void;
|
|
10
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
12
|
onInit: {
|
|
12
13
|
type: import("vue").PropType<(player: import("video.js").VideoJsPlayer) => void>;
|
|
@@ -16,5 +17,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
};
|
|
17
18
|
}>> & {
|
|
18
19
|
onBack?: (() => any) | undefined;
|
|
20
|
+
onControlBarActive?: ((show: boolean) => any) | undefined;
|
|
19
21
|
}, {}>;
|
|
20
22
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as o, openBlock as t, createElementBlock as p, unref as e, createBlock as l, createCommentVNode as y } from "vue";
|
|
2
|
-
import { a as n, _ } from "./lzc-video-player.
|
|
2
|
+
import { a as n, _ } from "./lzc-video-player.c352003d.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
const m = { class: "modal-content" }, u = /* @__PURE__ */ i({
|
|
5
5
|
__name: "index-horizontal",
|
|
@@ -7,7 +7,7 @@ const m = { class: "modal-content" }, u = /* @__PURE__ */ i({
|
|
|
7
7
|
player: null
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const r = o(() => import("./list.
|
|
10
|
+
const r = o(() => import("./list.ef315d4b.js")), s = o(() => import("./playrate.a962a582.js")), c = o(() => import("./resolution.2be9c173.js"));
|
|
11
11
|
return (d, f) => (t(), p("div", m, [
|
|
12
12
|
e(n) === "LzcPlayrate" ? (t(), l(e(s), {
|
|
13
13
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, defineAsyncComponent as l, openBlock as t, createElementBlock as s, unref as e, createBlock as n, createCommentVNode as y } from "vue";
|
|
2
|
-
import { a as o, _ } from "./lzc-video-player.
|
|
2
|
+
import { a as o, _ } from "./lzc-video-player.c352003d.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
const m = { class: "modal-content" }, d = /* @__PURE__ */ p({
|
|
5
5
|
__name: "index-vertical",
|
|
@@ -7,7 +7,7 @@ const m = { class: "modal-content" }, d = /* @__PURE__ */ p({
|
|
|
7
7
|
player: null
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const r = l(() => import("./list.
|
|
10
|
+
const r = l(() => import("./list.ef315d4b.js")), c = l(() => import("./playrate.a962a582.js")), i = l(() => import("./resolution.2be9c173.js"));
|
|
11
11
|
return (u, f) => (t(), s("div", m, [
|
|
12
12
|
e(o) === "LzcPlayrate" ? (t(), n(e(c), {
|
|
13
13
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as c, createElementBlock as a, createElementVNode as s, renderSlot as $, withModifiers as A, defineComponent as y, useCssVars as E, pushScopeId as V, popScopeId as P, unref as u, ref as N, onMounted as Q, nextTick as U, createVNode as d, createTextVNode as _, withCtx as p, Fragment as h, renderList as H, createBlock as f, normalizeClass as C, toDisplayString as g, createCommentVNode as O } from "vue";
|
|
2
|
-
import { _ as b, E as I, u as q, r as L, Q as B, b as M, c as z, f as S, g as j } from "./lzc-video-player.
|
|
2
|
+
import { _ as b, E as I, u as q, r as L, Q as B, b as M, c as z, f as S, g as j } from "./lzc-video-player.c352003d.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
const G = {}, J = { class: "container" }, K = { class: "content" };
|
|
5
5
|
function R(t, n) {
|
|
@@ -24459,9 +24459,9 @@ const _hoisted_1$6 = ["onClick"], _sfc_main$8 = /* @__PURE__ */ defineComponent(
|
|
|
24459
24459
|
},
|
|
24460
24460
|
setup(e) {
|
|
24461
24461
|
const t = e, n = defineAsyncComponent(
|
|
24462
|
-
() => import("./index-vertical.
|
|
24462
|
+
() => import("./index-vertical.e10b92b8.js")
|
|
24463
24463
|
), a = defineAsyncComponent(
|
|
24464
|
-
() => import("./index-horizontal.
|
|
24464
|
+
() => import("./index-horizontal.6d44f0c8.js")
|
|
24465
24465
|
), r = () => {
|
|
24466
24466
|
t.modal.opened() && (activePage.value = "", t.modal.close());
|
|
24467
24467
|
};
|
|
@@ -57399,7 +57399,13 @@ const _withScopeId$2 = (e) => (pushScopeId("data-v-04ecdf3e"), e = e(), popScope
|
|
|
57399
57399
|
})) : createCommentVNode("", !0)
|
|
57400
57400
|
], 64));
|
|
57401
57401
|
}
|
|
57402
|
-
})
|
|
57402
|
+
});
|
|
57403
|
+
function isMobile() {
|
|
57404
|
+
return navigator.userAgent.search(
|
|
57405
|
+
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
57406
|
+
) > -1;
|
|
57407
|
+
}
|
|
57408
|
+
const _withScopeId$1 = (e) => (pushScopeId("data-v-25e02bc4"), e = e(), popScopeId(), e), _hoisted_1$4 = { class: "overlay" }, _hoisted_2$2 = {
|
|
57403
57409
|
key: 0,
|
|
57404
57410
|
class: "vjs-overlay-padding top-space"
|
|
57405
57411
|
}, _hoisted_3$2 = { class: "title" }, _hoisted_4$2 = { class: "overlay-center" }, _hoisted_5$2 = {
|
|
@@ -57415,13 +57421,13 @@ const _withScopeId$2 = (e) => (pushScopeId("data-v-04ecdf3e"), e = e(), popScope
|
|
|
57415
57421
|
t.player.trigger({ type: "back" });
|
|
57416
57422
|
}, { videoName: a } = useVideoName(t.player), r = ref(t.player.options_.showTopBar);
|
|
57417
57423
|
return window.document.addEventListener("fullscreenchange", () => {
|
|
57418
|
-
t.player.isFullscreen() ? r.value =
|
|
57424
|
+
t.player.isFullscreen() ? r.value = isMobile() : r.value = t.player.options_.showTopBar;
|
|
57419
57425
|
}), (o, s) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
57420
57426
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
57421
57427
|
createVNode(QIcon, {
|
|
57422
57428
|
onClick: n,
|
|
57423
57429
|
name: "svguse:#icon-\u8FD4\u56DE.svg",
|
|
57424
|
-
size: "
|
|
57430
|
+
size: "1.4rem"
|
|
57425
57431
|
}),
|
|
57426
57432
|
createElementVNode("span", _hoisted_3$2, toDisplayString(unref(a)), 1),
|
|
57427
57433
|
unref(vertical) ? createCommentVNode("", !0) : (openBlock(), createBlock(_sfc_main$6, {
|
|
@@ -57438,7 +57444,7 @@ const _withScopeId$2 = (e) => (pushScopeId("data-v-04ecdf3e"), e = e(), popScope
|
|
|
57438
57444
|
_hoisted_6$2
|
|
57439
57445
|
]));
|
|
57440
57446
|
}
|
|
57441
|
-
}),
|
|
57447
|
+
}), playingLayout_vue_vue_type_style_index_0_scoped_25e02bc4_lang = "", PlayingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-25e02bc4"]]), _hoisted_1$3 = { class: "sensitivity" }, _hoisted_2$1 = {
|
|
57442
57448
|
key: 0,
|
|
57443
57449
|
class: "top-tip-container"
|
|
57444
57450
|
}, _hoisted_3$1 = { class: "top-tip" }, _hoisted_4$1 = { class: "toast-text" }, _hoisted_5$1 = {
|
|
@@ -58255,7 +58261,7 @@ const _hoisted_1 = { class: "lzc-video-player h-full w-full" }, _sfc_main = /* @
|
|
|
58255
58261
|
onInit: null,
|
|
58256
58262
|
options: null
|
|
58257
58263
|
},
|
|
58258
|
-
emits: ["back"],
|
|
58264
|
+
emits: ["back", "controlBarActive"],
|
|
58259
58265
|
setup(e, { emit: t }) {
|
|
58260
58266
|
const n = e;
|
|
58261
58267
|
videojs.addLanguage("zh-CN", videoZH);
|
|
@@ -58333,7 +58339,7 @@ const _hoisted_1 = { class: "lzc-video-player h-full w-full" }, _sfc_main = /* @
|
|
|
58333
58339
|
};
|
|
58334
58340
|
a.load(), a.on("back", () => {
|
|
58335
58341
|
a.dispose(), t("back");
|
|
58336
|
-
}), a.on("seeked", d(1e3)), a.on("pause", d(1e3)), a.on("timeupdate", d(5e3)), a.on("canplay", () => {
|
|
58342
|
+
}), a.on("seeked", d(1e3)), a.on("pause", d(1e3)), a.on("timeupdate", d(5e3)), a.on("useractive", () => t("controlBarActive", !0)), a.on("userinactive", () => t("controlBarActive", a.paused())), a.on("canplay", () => {
|
|
58337
58343
|
a.play(), d(100);
|
|
58338
58344
|
}), n.onInit && n.onInit(a), window.player = a;
|
|
58339
58345
|
}), onUnmounted(() => {
|