@lazycatcloud/lzc-video-player 0.0.3 → 0.0.5
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/Dialog/index.vue.d.ts +30 -0
- package/dist/components/MultipleEdit/choose.vue.d.ts +24 -0
- package/dist/components/PlayList/index.vue.d.ts +6 -0
- package/dist/components/Video/components/LzcModal/components/simpleList.vue.d.ts +2 -2
- package/dist/{index-horizontal.a3f55bc6.js → index-horizontal.d742b091.js} +2 -2
- package/dist/{index-vertical.3c29efab.js → index-vertical.357afcd2.js} +2 -2
- package/dist/list.b6b3725f.js +305 -0
- package/dist/{lzc-video-player.72f780fe.js → lzc-video-player.6ff297b1.js} +16685 -16311
- package/dist/lzc-video-player.js +2 -2
- package/dist/model.d.ts +1 -1
- package/dist/{playrate.3f895ad0.js → playrate.cc67d295.js} +9 -9
- package/dist/{resolution.8097124b.js → resolution.60e026bb.js} +18 -18
- package/dist/{simpleList.e26862da.js → simpleList.4fdcc7e8.js} +14 -14
- package/dist/stores/playlist.d.ts +4 -4
- package/dist/use/useMultipleEdit.d.ts +9 -0
- package/dist/utils/sentry.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components/SlideItem/index.vue.d.ts +0 -10
- package/dist/list.482f9b94.js +0 -160
package/dist/model.d.ts
CHANGED
|
@@ -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.4fdcc7e8.js";
|
|
3
|
+
import "./lzc-video-player.6ff297b1.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.4fdcc7e8.js";
|
|
3
|
+
import "./lzc-video-player.6ff297b1.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 {
|
|
2
|
-
import { defineComponent as _, openBlock as s, createElementBlock as
|
|
1
|
+
import { c as o, e as n, _ as r } from "./lzc-video-player.6ff297b1.js";
|
|
2
|
+
import { defineComponent as _, openBlock as s, createElementBlock as a, 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 (
|
|
12
|
-
m(
|
|
13
|
-
default:
|
|
14
|
-
(s(!0),
|
|
15
|
-
key:
|
|
11
|
+
return (c, h) => (s(), a("div", C, [
|
|
12
|
+
m(o, null, {
|
|
13
|
+
default: i(() => [
|
|
14
|
+
(s(!0), a(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) => c.$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
|
-
k(
|
|
25
|
-
data: { item:
|
|
24
|
+
k(c.$slots, "default", {
|
|
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
|
};
|
|
@@ -29,7 +29,7 @@ export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo",
|
|
|
29
29
|
currentTime: number;
|
|
30
30
|
invalid: boolean;
|
|
31
31
|
updateTime?: number | undefined;
|
|
32
|
-
_id
|
|
32
|
+
_id: string;
|
|
33
33
|
}[];
|
|
34
34
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
35
35
|
collection: RemoteDB<VideoInfo>;
|
|
@@ -41,14 +41,14 @@ export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo",
|
|
|
41
41
|
currentTime: number;
|
|
42
42
|
invalid: boolean;
|
|
43
43
|
updateTime?: number | undefined;
|
|
44
|
-
_id
|
|
44
|
+
_id: string;
|
|
45
45
|
} | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
init(): Promise<void>;
|
|
48
48
|
refreshData(): Promise<void>;
|
|
49
49
|
deleteHistory(info: VideoInfo): Promise<void>;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
batchDeleteHistory(ids: string[]): Promise<void>;
|
|
51
|
+
updateOrCreateHistory(info: VideoInfo, blob: Blob | null | undefined): Promise<void>;
|
|
52
52
|
markAsInvalid(sourceUrl: string): Promise<void>;
|
|
53
53
|
clear(): Promise<void>;
|
|
54
54
|
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default function (): {
|
|
2
|
+
selectedKeys: import("vue").Ref<string[]>;
|
|
3
|
+
isEditing: import("vue").Ref<boolean>;
|
|
4
|
+
isSelectAll: import("vue").ComputedRef<boolean>;
|
|
5
|
+
hdlSelectAll: () => void;
|
|
6
|
+
hdlCancel: () => void;
|
|
7
|
+
hdlToggleItem: (item: any) => void;
|
|
8
|
+
updateData: (values: any[]) => void;
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
right?(_: {}): any;
|
|
4
|
-
}>;
|
|
5
|
-
export default _default;
|
|
6
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
-
new (): {
|
|
8
|
-
$slots: S;
|
|
9
|
-
};
|
|
10
|
-
};
|
package/dist/list.482f9b94.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as a, createElementVNode as t, renderSlot as b, withModifiers as A, pushScopeId as S, popScopeId as E, defineComponent as V, useCssVars as w, unref as u, ref as N, onMounted as Q, nextTick as U, createVNode as d, createTextVNode as _, withCtx as p, Fragment as g, renderList as H, createBlock as h, normalizeClass as $, toDisplayString as y, createCommentVNode as O } from "vue";
|
|
2
|
-
import { _ as f, E as C, u as q, r as L, Q as I, b as M, c as z, f as B, g as j } from "./lzc-video-player.72f780fe.js";
|
|
3
|
-
import "pinia";
|
|
4
|
-
const G = {}, J = { class: "container" }, K = { class: "content" };
|
|
5
|
-
function R(s, i) {
|
|
6
|
-
return c(), a("div", J, [
|
|
7
|
-
t("div", K, [
|
|
8
|
-
b(s.$slots, "default", {}, void 0, !0)
|
|
9
|
-
]),
|
|
10
|
-
t("div", {
|
|
11
|
-
class: "right",
|
|
12
|
-
onClick: i[0] || (i[0] = A(() => {
|
|
13
|
-
}, ["stop", "prevent"]))
|
|
14
|
-
}, [
|
|
15
|
-
b(s.$slots, "right", {}, void 0, !0)
|
|
16
|
-
])
|
|
17
|
-
]);
|
|
18
|
-
}
|
|
19
|
-
const W = /* @__PURE__ */ f(G, [["render", R], ["__scopeId", "data-v-5b362d85"]]);
|
|
20
|
-
const X = {}, Y = (s) => (S("data-v-7a0e044b"), s = s(), E(), s), Z = /* @__PURE__ */ Y(() => /* @__PURE__ */ t("ul", null, [
|
|
21
|
-
/* @__PURE__ */ t("li", { class: "m1" }),
|
|
22
|
-
/* @__PURE__ */ t("li", { class: "m2" }),
|
|
23
|
-
/* @__PURE__ */ t("li", { class: "m3" })
|
|
24
|
-
], -1)), ee = [
|
|
25
|
-
Z
|
|
26
|
-
];
|
|
27
|
-
function te(s, i) {
|
|
28
|
-
return c(), a("div", null, ee);
|
|
29
|
-
}
|
|
30
|
-
const se = /* @__PURE__ */ f(X, [["render", te], ["__scopeId", "data-v-7a0e044b"]]), m = (s) => (S("data-v-3bd476a8"), s = s(), E(), s), ne = { class: "list" }, ie = { class: "list-top-bar" }, ce = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", { class: "title" }, "\u64AD\u653E\u5217\u8868", -1)), oe = ["onClick"], re = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", { class: "delete-separator" }, null, -1)), ae = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", { class: "delete-text" }, "\u5220\u9664", -1)), le = [
|
|
31
|
-
re,
|
|
32
|
-
ae
|
|
33
|
-
], ue = { class: "item" }, de = { class: "item-pic" }, _e = { class: "item-info" }, pe = { class: "item-info-title" }, me = { class: "item-info-subtitle" }, ve = {
|
|
34
|
-
key: 1,
|
|
35
|
-
class: "empty-text"
|
|
36
|
-
}, ge = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", null, "\u6682\u65E0\u64AD\u653E\u5185\u5BB9", -1)), ye = [
|
|
37
|
-
ge
|
|
38
|
-
], he = /* @__PURE__ */ V({
|
|
39
|
-
__name: "index",
|
|
40
|
-
props: {
|
|
41
|
-
isPlaying: null
|
|
42
|
-
},
|
|
43
|
-
emits: ["openVideo", "back"],
|
|
44
|
-
setup(s, { emit: i }) {
|
|
45
|
-
const l = s;
|
|
46
|
-
w((e) => ({
|
|
47
|
-
"1236eaa0": "url(" + u(C) + ")"
|
|
48
|
-
}));
|
|
49
|
-
const r = q(), v = (e) => e._id ? j(e._id) : C, o = N(null);
|
|
50
|
-
function k(e) {
|
|
51
|
-
i("openVideo", e);
|
|
52
|
-
}
|
|
53
|
-
function P(e) {
|
|
54
|
-
r.deleteHistory(e), l.isPlaying(e) && i("back");
|
|
55
|
-
}
|
|
56
|
-
function T(e) {
|
|
57
|
-
return !e.duration || e.duration == 0 || !e.currentTime || e.currentTime == 0 ? "0" : (e.currentTime / e.duration * 100).toFixed(0);
|
|
58
|
-
}
|
|
59
|
-
function D(e) {
|
|
60
|
-
return !e.invalid && l.isPlaying(e) ? `\u6B63\u5728\u89C2\u770B\uFF1A${B(e.currentTime)}` : `\u89C2\u770B\u81F3: ${T(e)}%`;
|
|
61
|
-
}
|
|
62
|
-
return Q(() => {
|
|
63
|
-
const e = r.infos.findIndex(l.isPlaying);
|
|
64
|
-
e > -1 && U(() => {
|
|
65
|
-
o.value && o.value.$el.scrollBy(0, L(9.4) * e);
|
|
66
|
-
});
|
|
67
|
-
}), (e, x) => (c(), a("div", ne, [
|
|
68
|
-
t("div", ie, [
|
|
69
|
-
ce,
|
|
70
|
-
t("div", {
|
|
71
|
-
class: "clear",
|
|
72
|
-
onClick: x[0] || (x[0] = (n) => u(r).clear())
|
|
73
|
-
}, [
|
|
74
|
-
d(I, { name: "svguse:#icon-\u56DE\u6536\u7AD9.svg" }),
|
|
75
|
-
_(" \u6E05\u7A7A ")
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
d(M, {
|
|
79
|
-
class: "list-items",
|
|
80
|
-
ref_key: "qlist",
|
|
81
|
-
ref: o
|
|
82
|
-
}, {
|
|
83
|
-
default: p(() => [
|
|
84
|
-
u(r).infos.length > 0 ? (c(!0), a(g, { key: 0 }, H(u(r).infos, (n) => (c(), h(W, {
|
|
85
|
-
key: n.sourceUrl,
|
|
86
|
-
onClick: (F) => k(n),
|
|
87
|
-
class: $(["slide-item", { active: s.isPlaying(n) }])
|
|
88
|
-
}, {
|
|
89
|
-
right: p(() => [
|
|
90
|
-
t("div", {
|
|
91
|
-
class: "delete-area",
|
|
92
|
-
onClick: (F) => P(n)
|
|
93
|
-
}, le, 8, oe)
|
|
94
|
-
]),
|
|
95
|
-
default: p(() => [
|
|
96
|
-
t("div", ue, [
|
|
97
|
-
t("div", de, [
|
|
98
|
-
d(z, {
|
|
99
|
-
fit: "fill",
|
|
100
|
-
src: v(n),
|
|
101
|
-
"no-spinner": ""
|
|
102
|
-
}, {
|
|
103
|
-
default: p(() => [
|
|
104
|
-
t("div", {
|
|
105
|
-
class: $(["absolute-bottom-right text-subtitle2 item-subtitle", { "item-invalid": n.invalid }])
|
|
106
|
-
}, [
|
|
107
|
-
n.invalid ? (c(), a(g, { key: 0 }, [
|
|
108
|
-
d(I, { name: "svguse:#icon-\u5931\u6548.svg" }),
|
|
109
|
-
_(" \u5DF2\u5931\u6548 ")
|
|
110
|
-
], 64)) : (c(), a(g, { key: 1 }, [
|
|
111
|
-
_(y(u(B)(n.duration)), 1)
|
|
112
|
-
], 64))
|
|
113
|
-
], 2)
|
|
114
|
-
]),
|
|
115
|
-
_: 2
|
|
116
|
-
}, 1032, ["src"])
|
|
117
|
-
]),
|
|
118
|
-
t("div", _e, [
|
|
119
|
-
t("div", pe, y(n.name || n.sourceUrl), 1),
|
|
120
|
-
t("div", me, [
|
|
121
|
-
!n.invalid && s.isPlaying(n) ? (c(), h(se, { key: 0 })) : O("", !0),
|
|
122
|
-
_(" " + y(D(n)), 1)
|
|
123
|
-
])
|
|
124
|
-
])
|
|
125
|
-
])
|
|
126
|
-
]),
|
|
127
|
-
_: 2
|
|
128
|
-
}, 1032, ["onClick", "class"]))), 128)) : (c(), a("div", ve, ye))
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 512)
|
|
132
|
-
]));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
const fe = /* @__PURE__ */ f(he, [["__scopeId", "data-v-3bd476a8"]]), $e = /* @__PURE__ */ V({
|
|
136
|
-
__name: "list",
|
|
137
|
-
props: {
|
|
138
|
-
player: null
|
|
139
|
-
},
|
|
140
|
-
setup(s) {
|
|
141
|
-
const i = s;
|
|
142
|
-
function l(o) {
|
|
143
|
-
return o.sourceUrl === i.player.currentSrc();
|
|
144
|
-
}
|
|
145
|
-
function r() {
|
|
146
|
-
i.player.trigger({ type: "back" });
|
|
147
|
-
}
|
|
148
|
-
function v(o) {
|
|
149
|
-
i.player.trigger({ type: "openVideo", info: o });
|
|
150
|
-
}
|
|
151
|
-
return (o, k) => (c(), h(fe, {
|
|
152
|
-
isPlaying: l,
|
|
153
|
-
onBack: r,
|
|
154
|
-
onOpenVideo: v
|
|
155
|
-
}));
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
export {
|
|
159
|
-
$e as default
|
|
160
|
-
};
|