@lazycatcloud/lzc-video-player 0.0.3 → 0.0.4
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/components/LzcModal/components/simpleList.vue.d.ts +2 -2
- package/dist/{index-horizontal.a3f55bc6.js → index-horizontal.f35a8e5f.js} +2 -2
- package/dist/{index-vertical.3c29efab.js → index-vertical.aec12ed3.js} +2 -2
- package/dist/{list.482f9b94.js → list.491cc0bc.js} +1 -1
- package/dist/{lzc-video-player.72f780fe.js → lzc-video-player.78765609.js} +14 -13
- package/dist/lzc-video-player.js +2 -2
- package/dist/{playrate.3f895ad0.js → playrate.468d7c89.js} +9 -9
- package/dist/{resolution.8097124b.js → resolution.84d73e1c.js} +18 -18
- package/dist/{simpleList.e26862da.js → simpleList.95523394.js} +13 -13
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { S as
|
|
3
|
-
import "./lzc-video-player.
|
|
1
|
+
import { defineComponent as s, ref as u, openBlock as i, createBlock as y, withCtx as m, createTextVNode as f, toDisplayString as _ } from "vue";
|
|
2
|
+
import { S as g } from "./simpleList.95523394.js";
|
|
3
|
+
import "./lzc-video-player.78765609.js";
|
|
4
4
|
import "pinia";
|
|
5
|
-
const D = /* @__PURE__ */
|
|
5
|
+
const D = /* @__PURE__ */ s({
|
|
6
6
|
__name: "playrate",
|
|
7
7
|
props: {
|
|
8
8
|
player: null
|
|
@@ -10,22 +10,22 @@ const D = /* @__PURE__ */ n({
|
|
|
10
10
|
setup(o) {
|
|
11
11
|
const e = o, r = [3, 2, 1.5, 1.25, 1, 0.75];
|
|
12
12
|
e.player.playbackRates(r);
|
|
13
|
-
const a =
|
|
13
|
+
const a = u(e.player.playbackRate()), l = ({ item: t }) => {
|
|
14
14
|
e.player.playbackRate(t), e.player.lzcModal().close();
|
|
15
|
-
}, p = (t) => t === a.value;
|
|
15
|
+
}, p = (t, c) => t === a.value;
|
|
16
16
|
return e.player.on("ratechange", function() {
|
|
17
17
|
a.value = e.player.playbackRate(), e.player.trigger({
|
|
18
18
|
type: "tipToast",
|
|
19
19
|
toastValue: `${a.value}\u500D\u901F\u64AD\u653E\u4E2D`,
|
|
20
20
|
toastIcon: "svguse:#icon-\u500D\u901F.svg"
|
|
21
21
|
});
|
|
22
|
-
}), (t,
|
|
22
|
+
}), (t, c) => (i(), y(g, {
|
|
23
23
|
items: r,
|
|
24
24
|
isActive: p,
|
|
25
25
|
onSelect: l
|
|
26
26
|
}, {
|
|
27
|
-
default:
|
|
28
|
-
|
|
27
|
+
default: m(({ data: n }) => [
|
|
28
|
+
f(_(n.item) + " x ", 1)
|
|
29
29
|
]),
|
|
30
30
|
_: 1
|
|
31
31
|
}));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { S as
|
|
3
|
-
import "./lzc-video-player.
|
|
1
|
+
import { defineComponent as y, ref as f, openBlock as m, createBlock as g, unref as v, withCtx as B, createTextVNode as F, toDisplayString as _ } from "vue";
|
|
2
|
+
import { S as D } from "./simpleList.95523394.js";
|
|
3
|
+
import "./lzc-video-player.78765609.js";
|
|
4
4
|
import "pinia";
|
|
5
|
-
const
|
|
5
|
+
const R = /* @__PURE__ */ y({
|
|
6
6
|
__name: "resolution",
|
|
7
7
|
props: {
|
|
8
8
|
player: null
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const t =
|
|
10
|
+
setup(s) {
|
|
11
|
+
const t = s, a = t.player.supportResolution(), o = f(t.player.currentResolution());
|
|
12
12
|
t.player.qualityLevels().on("change", function() {
|
|
13
13
|
var u, r;
|
|
14
14
|
o.value = t.player.currentResolution();
|
|
@@ -19,29 +19,29 @@ const A = /* @__PURE__ */ p({
|
|
|
19
19
|
toastIcon: ""
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const i = ({ index: e }) => {
|
|
23
23
|
t.player.qualityLevels().selectedIndex !== e && (t.player.changeResolution(e), t.player.lzcModal().close(), t.player.trigger({
|
|
24
24
|
type: "tipToast",
|
|
25
25
|
toastValue: "\u5207\u6362\u4E2D\uFF0C\u8BF7\u7A0D\u7B49",
|
|
26
26
|
toastIcon: "",
|
|
27
27
|
uncloseable: !0
|
|
28
28
|
}));
|
|
29
|
-
},
|
|
30
|
-
var
|
|
31
|
-
return (
|
|
32
|
-
},
|
|
33
|
-
return (e, u) => (
|
|
34
|
-
items:
|
|
35
|
-
isActive:
|
|
36
|
-
onSelect:
|
|
29
|
+
}, p = (e, u) => {
|
|
30
|
+
var r, n, l;
|
|
31
|
+
return (r = o.value) != null && r.auto ? e === 0 : (n = o.value) != null && n.origin ? u === 0 : e === ((l = o.value) == null ? void 0 : l.res) && u > 0;
|
|
32
|
+
}, c = (e, u) => u == 0 ? "\u539F\u59CB\u753B\u8D28" : e === 0 ? "\u81EA\u52A8" : `${e} P`;
|
|
33
|
+
return (e, u) => (m(), g(D, {
|
|
34
|
+
items: v(a),
|
|
35
|
+
isActive: p,
|
|
36
|
+
onSelect: i
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
38
|
+
default: B(({ data: r }) => [
|
|
39
|
+
F(_(c(r.item, r.index)), 1)
|
|
40
40
|
]),
|
|
41
41
|
_: 1
|
|
42
42
|
}, 8, ["items"]));
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
R as default
|
|
47
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { defineComponent as _, openBlock as s, createElementBlock as
|
|
1
|
+
import { b as o, d as n, _ as r } from "./lzc-video-player.78765609.js";
|
|
2
|
+
import { defineComponent as _, openBlock as s, createElementBlock as c, createVNode as m, withCtx as i, Fragment as d, renderList as p, createBlock as u, createElementVNode as f, normalizeClass as v, renderSlot as k } from "vue";
|
|
3
3
|
const C = { class: "simple-list" }, L = /* @__PURE__ */ _({
|
|
4
4
|
__name: "simpleList",
|
|
5
5
|
props: {
|
|
@@ -8,21 +8,21 @@ const C = { class: "simple-list" }, L = /* @__PURE__ */ _({
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["select"],
|
|
10
10
|
setup(l) {
|
|
11
|
-
return (a,
|
|
12
|
-
m(
|
|
13
|
-
default:
|
|
14
|
-
(s(!0),
|
|
15
|
-
key:
|
|
11
|
+
return (a, h) => (s(), c("div", C, [
|
|
12
|
+
m(o, null, {
|
|
13
|
+
default: i(() => [
|
|
14
|
+
(s(!0), c(d, null, p(l.items, (t, e) => (s(), u(n, {
|
|
15
|
+
key: e,
|
|
16
16
|
class: "item",
|
|
17
17
|
clickable: "",
|
|
18
|
-
onClick: (
|
|
18
|
+
onClick: (y) => a.$emit("select", { item: t, index: e })
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
20
|
+
default: i(() => [
|
|
21
21
|
f("span", {
|
|
22
|
-
class: v(["text", { active: l.isActive(e) }])
|
|
22
|
+
class: v(["text", { active: l.isActive(t, e) }])
|
|
23
23
|
}, [
|
|
24
24
|
k(a.$slots, "default", {
|
|
25
|
-
data: { item:
|
|
25
|
+
data: { item: t, index: e }
|
|
26
26
|
}, void 0, !0)
|
|
27
27
|
], 2)
|
|
28
28
|
]),
|
|
@@ -34,7 +34,7 @@ const C = { class: "simple-list" }, L = /* @__PURE__ */ _({
|
|
|
34
34
|
]));
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const
|
|
37
|
+
const $ = /* @__PURE__ */ r(L, [["__scopeId", "data-v-39acdf40"]]);
|
|
38
38
|
export {
|
|
39
|
-
S
|
|
39
|
+
$ as S
|
|
40
40
|
};
|