@lazycatcloud/lzc-video-player 0.0.70 → 0.0.72
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/README.md +31 -29
- package/dist/{browser-ponyfill.26786fc7.js → browser-ponyfill.749ed003.js} +1 -1
- package/dist/{lzc-video-player.80bffe19.js → lzc-video-player.93c6d627.js} +8939 -8671
- package/dist/lzc-video-player.js +2 -2
- package/dist/src/components/Dialog/index.vue.d.ts +24 -24
- package/dist/src/components/MultipleEdit/choose.vue.d.ts +20 -20
- package/dist/src/components/PlayList/index.vue.d.ts +26 -26
- package/dist/src/components/Spectrum/index.vue.d.ts +2 -2
- package/dist/src/components/Video/components/LzcCurrentTimeDisplay.d.ts +7 -7
- package/dist/src/components/Video/components/LzcFullscreenToggle.d.ts +10 -10
- package/dist/src/components/Video/components/LzcLoadingSpinner.d.ts +7 -7
- package/dist/src/components/Video/components/LzcModal/components/simpleList.vue.d.ts +36 -36
- package/dist/src/components/Video/components/LzcModal/index.vue.d.ts +22 -22
- package/dist/src/components/Video/components/LzcModal/list.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/playrate.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/resolution.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/subtitle.vue.d.ts +13 -0
- package/dist/src/components/Video/components/LzcModal/useModal.d.ts +1 -1
- package/dist/src/components/Video/components/LzcModal.d.ts +9 -9
- package/dist/src/components/Video/components/LzcOverlay/cast.vue.d.ts +16 -16
- package/dist/src/components/Video/components/LzcOverlay/castMiddleware.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/castPlugin.d.ts +11 -11
- package/dist/src/components/Video/components/LzcOverlay/casting.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/error.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/helper.d.ts +26 -26
- package/dist/src/components/Video/components/LzcOverlay/index.vue.d.ts +15 -13
- package/dist/src/components/Video/components/LzcOverlay/playing.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/playingButtons.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/playingLayout.vue.d.ts +20 -20
- package/dist/src/components/Video/components/LzcOverlay/useCast.d.ts +16 -16
- package/dist/src/components/Video/components/LzcOverlay/useCommon.d.ts +5 -5
- package/dist/src/components/Video/components/LzcOverlay.d.ts +7 -7
- package/dist/src/components/Video/components/LzcPlayRate.d.ts +8 -8
- package/dist/src/components/Video/components/LzcPlayToggle.d.ts +7 -7
- package/dist/src/components/Video/components/LzcPlaylistButton.d.ts +9 -9
- package/dist/src/components/Video/components/LzcPlaylistNext.d.ts +10 -10
- package/dist/src/components/Video/components/LzcProgress.d.ts +11 -8
- package/dist/src/components/Video/components/LzcRemainingTimeDisplay.d.ts +9 -9
- package/dist/src/components/Video/components/LzcResolutionButton.d.ts +9 -9
- package/dist/src/components/Video/components/LzcSeekBar.d.ts +10 -10
- package/dist/src/components/Video/components/LzcSubtitleButton.d.ts +10 -9
- package/dist/src/components/Video/components/useLzcCommon.d.ts +2 -2
- package/dist/src/components/Video/getSubtitleInfo.d.ts +2 -2
- package/dist/src/components/Video/hlsjs.d.ts +1 -1
- package/dist/src/components/Video/index.vue.d.ts +60 -44
- package/dist/src/components/Video/useSource.d.ts +7 -7
- package/dist/src/components/Video/useWebview.d.ts +8 -8
- package/dist/src/components/Video/useWebviewMiddleware.d.ts +1 -1
- package/dist/src/components/Video/videoFrame.d.ts +2 -2
- package/dist/src/i18n/index.d.ts +10 -10
- package/dist/src/lzc-video-player.d.ts +5 -3
- package/dist/src/model.d.ts +46 -46
- package/dist/src/stores/pinia.d.ts +2 -2
- package/dist/src/stores/playlist.d.ts +148 -148
- package/dist/src/use/useKeyBind.d.ts +3 -3
- package/dist/src/use/useMultipleEdit.d.ts +9 -9
- package/dist/src/use/useSdk.d.ts +5 -5
- package/dist/src/use/useUtils.d.ts +1 -1
- package/dist/src/use/useVideoFrame.d.ts +5 -5
- package/package.json +22 -19
- package/dist/src/utils/sentry.d.ts +0 -4
package/dist/src/model.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export interface Doc {
|
|
2
|
-
_id: string;
|
|
3
|
-
}
|
|
4
|
-
export interface VideoQualityLevel {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
height: number;
|
|
8
|
-
width: number;
|
|
9
|
-
bitrate: number;
|
|
10
|
-
}
|
|
11
|
-
export interface VideoResolution {
|
|
12
|
-
id: string;
|
|
13
|
-
res: number;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
auto: boolean;
|
|
17
|
-
origin: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface PreviewInfo {
|
|
20
|
-
page: number;
|
|
21
|
-
image: HTMLImageElement;
|
|
22
|
-
len: number;
|
|
23
|
-
interval: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
tile: number;
|
|
27
|
-
}
|
|
28
|
-
export interface Subtitle {
|
|
29
|
-
name: string;
|
|
30
|
-
language: string;
|
|
31
|
-
stream_index: number;
|
|
32
|
-
codec_name: string;
|
|
33
|
-
is_external: boolean;
|
|
34
|
-
path: string;
|
|
35
|
-
}
|
|
36
|
-
export interface VideoInfo extends Doc {
|
|
37
|
-
sourceUrl: string;
|
|
38
|
-
name: string;
|
|
39
|
-
duration: number;
|
|
40
|
-
currentTime: number;
|
|
41
|
-
invalid: boolean;
|
|
42
|
-
updateTime: number | undefined;
|
|
43
|
-
fromNetdisk: boolean;
|
|
44
|
-
path: string | undefined;
|
|
45
|
-
subtitles: Subtitle[] | undefined;
|
|
46
|
-
}
|
|
1
|
+
export interface Doc {
|
|
2
|
+
_id: string;
|
|
3
|
+
}
|
|
4
|
+
export interface VideoQualityLevel {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
bitrate: number;
|
|
10
|
+
}
|
|
11
|
+
export interface VideoResolution {
|
|
12
|
+
id: string;
|
|
13
|
+
res: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
auto: boolean;
|
|
17
|
+
origin: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface PreviewInfo {
|
|
20
|
+
page: number;
|
|
21
|
+
image: HTMLImageElement;
|
|
22
|
+
len: number;
|
|
23
|
+
interval: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
tile: number;
|
|
27
|
+
}
|
|
28
|
+
export interface Subtitle {
|
|
29
|
+
name: string;
|
|
30
|
+
language: string;
|
|
31
|
+
stream_index: number;
|
|
32
|
+
codec_name: string;
|
|
33
|
+
is_external: boolean;
|
|
34
|
+
path: string;
|
|
35
|
+
}
|
|
36
|
+
export interface VideoInfo extends Doc {
|
|
37
|
+
sourceUrl: string;
|
|
38
|
+
name: string;
|
|
39
|
+
duration: number;
|
|
40
|
+
currentTime: number;
|
|
41
|
+
invalid: boolean;
|
|
42
|
+
updateTime: number | undefined;
|
|
43
|
+
fromNetdisk: boolean;
|
|
44
|
+
path: string | undefined;
|
|
45
|
+
subtitles: Subtitle[] | undefined;
|
|
46
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const pinia: import("pinia").Pinia;
|
|
2
|
-
export default pinia;
|
|
1
|
+
declare const pinia: import("pinia").Pinia;
|
|
2
|
+
export default pinia;
|
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import { RemoteDB } from "@lazycatcloud/minidb";
|
|
2
|
-
import type { VideoInfo } from '../model';
|
|
3
|
-
export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo", {
|
|
4
|
-
collection: RemoteDB<VideoInfo>;
|
|
5
|
-
infos: VideoInfo[];
|
|
6
|
-
ready: Promise<void>;
|
|
7
|
-
}, {
|
|
8
|
-
getHistoryInfo(state: {
|
|
9
|
-
collection: {
|
|
10
|
-
find: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => {
|
|
11
|
-
fetch: () => Promise<VideoInfo[]>;
|
|
12
|
-
};
|
|
13
|
-
findOne: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
14
|
-
upsertOrUpdate: (selector: Record<string, any>, doc: VideoInfo, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
15
|
-
upsert: {
|
|
16
|
-
(doc: VideoInfo): Promise<VideoInfo | null>;
|
|
17
|
-
(doc: VideoInfo, base: VideoInfo | null | undefined): Promise<VideoInfo | null>;
|
|
18
|
-
(docs: VideoInfo[]): Promise<(VideoInfo | null)[]>;
|
|
19
|
-
(docs: VideoInfo[], bases: (VideoInfo | null | undefined)[]): Promise<(VideoInfo | null)[]>;
|
|
20
|
-
};
|
|
21
|
-
remove: {
|
|
22
|
-
(id: any): Promise<void>;
|
|
23
|
-
(ids: any[]): Promise<void>;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
infos: {
|
|
27
|
-
sourceUrl: string;
|
|
28
|
-
name: string;
|
|
29
|
-
duration: number;
|
|
30
|
-
currentTime: number;
|
|
31
|
-
invalid: boolean;
|
|
32
|
-
updateTime: number | undefined;
|
|
33
|
-
fromNetdisk: boolean;
|
|
34
|
-
path: string | undefined;
|
|
35
|
-
subtitles: {
|
|
36
|
-
name: string;
|
|
37
|
-
language: string;
|
|
38
|
-
stream_index: number;
|
|
39
|
-
codec_name: string;
|
|
40
|
-
is_external: boolean;
|
|
41
|
-
path: string;
|
|
42
|
-
}[] | undefined;
|
|
43
|
-
_id: string;
|
|
44
|
-
}[];
|
|
45
|
-
ready: {
|
|
46
|
-
then: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
47
|
-
catch: <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<void | TResult>;
|
|
48
|
-
finally: (onfinally?: (() => void) | null | undefined) => Promise<void>;
|
|
49
|
-
readonly [Symbol.toStringTag]: string;
|
|
50
|
-
};
|
|
51
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
52
|
-
collection: RemoteDB<VideoInfo>;
|
|
53
|
-
infos: VideoInfo[];
|
|
54
|
-
ready: Promise<void>;
|
|
55
|
-
}>): (sourceUrl: string) => {
|
|
56
|
-
sourceUrl: string;
|
|
57
|
-
name: string;
|
|
58
|
-
duration: number;
|
|
59
|
-
currentTime: number;
|
|
60
|
-
invalid: boolean;
|
|
61
|
-
updateTime: number | undefined;
|
|
62
|
-
fromNetdisk: boolean;
|
|
63
|
-
path: string | undefined;
|
|
64
|
-
subtitles: {
|
|
65
|
-
name: string;
|
|
66
|
-
language: string;
|
|
67
|
-
stream_index: number;
|
|
68
|
-
codec_name: string;
|
|
69
|
-
is_external: boolean;
|
|
70
|
-
path: string;
|
|
71
|
-
}[] | undefined;
|
|
72
|
-
_id: string;
|
|
73
|
-
} | undefined;
|
|
74
|
-
getHistoryInfoByPath(state: {
|
|
75
|
-
collection: {
|
|
76
|
-
find: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => {
|
|
77
|
-
fetch: () => Promise<VideoInfo[]>;
|
|
78
|
-
};
|
|
79
|
-
findOne: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
80
|
-
upsertOrUpdate: (selector: Record<string, any>, doc: VideoInfo, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
81
|
-
upsert: {
|
|
82
|
-
(doc: VideoInfo): Promise<VideoInfo | null>;
|
|
83
|
-
(doc: VideoInfo, base: VideoInfo | null | undefined): Promise<VideoInfo | null>;
|
|
84
|
-
(docs: VideoInfo[]): Promise<(VideoInfo | null)[]>;
|
|
85
|
-
(docs: VideoInfo[], bases: (VideoInfo | null | undefined)[]): Promise<(VideoInfo | null)[]>;
|
|
86
|
-
};
|
|
87
|
-
remove: {
|
|
88
|
-
(id: any): Promise<void>;
|
|
89
|
-
(ids: any[]): Promise<void>;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
infos: {
|
|
93
|
-
sourceUrl: string;
|
|
94
|
-
name: string;
|
|
95
|
-
duration: number;
|
|
96
|
-
currentTime: number;
|
|
97
|
-
invalid: boolean;
|
|
98
|
-
updateTime: number | undefined;
|
|
99
|
-
fromNetdisk: boolean;
|
|
100
|
-
path: string | undefined;
|
|
101
|
-
subtitles: {
|
|
102
|
-
name: string;
|
|
103
|
-
language: string;
|
|
104
|
-
stream_index: number;
|
|
105
|
-
codec_name: string;
|
|
106
|
-
is_external: boolean;
|
|
107
|
-
path: string;
|
|
108
|
-
}[] | undefined;
|
|
109
|
-
_id: string;
|
|
110
|
-
}[];
|
|
111
|
-
ready: {
|
|
112
|
-
then: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
113
|
-
catch: <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<void | TResult>;
|
|
114
|
-
finally: (onfinally?: (() => void) | null | undefined) => Promise<void>;
|
|
115
|
-
readonly [Symbol.toStringTag]: string;
|
|
116
|
-
};
|
|
117
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
118
|
-
collection: RemoteDB<VideoInfo>;
|
|
119
|
-
infos: VideoInfo[];
|
|
120
|
-
ready: Promise<void>;
|
|
121
|
-
}>): (path: string) => {
|
|
122
|
-
sourceUrl: string;
|
|
123
|
-
name: string;
|
|
124
|
-
duration: number;
|
|
125
|
-
currentTime: number;
|
|
126
|
-
invalid: boolean;
|
|
127
|
-
updateTime: number | undefined;
|
|
128
|
-
fromNetdisk: boolean;
|
|
129
|
-
path: string | undefined;
|
|
130
|
-
subtitles: {
|
|
131
|
-
name: string;
|
|
132
|
-
language: string;
|
|
133
|
-
stream_index: number;
|
|
134
|
-
codec_name: string;
|
|
135
|
-
is_external: boolean;
|
|
136
|
-
path: string;
|
|
137
|
-
}[] | undefined;
|
|
138
|
-
_id: string;
|
|
139
|
-
} | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
init(): Promise<void>;
|
|
142
|
-
refreshData(): Promise<void>;
|
|
143
|
-
deleteHistory(info: VideoInfo): Promise<void>;
|
|
144
|
-
batchDeleteHistory(ids: string[]): Promise<void>;
|
|
145
|
-
updateOrCreateHistory(info: VideoInfo, blobFn: (() => Promise<Blob | null>) | null): Promise<void>;
|
|
146
|
-
markAsInvalid(sourceUrl: string): Promise<void>;
|
|
147
|
-
clear(): Promise<void>;
|
|
148
|
-
}>;
|
|
1
|
+
import { RemoteDB } from "@lazycatcloud/minidb";
|
|
2
|
+
import type { VideoInfo } from '../model';
|
|
3
|
+
export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo", {
|
|
4
|
+
collection: RemoteDB<VideoInfo>;
|
|
5
|
+
infos: VideoInfo[];
|
|
6
|
+
ready: Promise<void>;
|
|
7
|
+
}, {
|
|
8
|
+
getHistoryInfo(state: {
|
|
9
|
+
collection: {
|
|
10
|
+
find: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => {
|
|
11
|
+
fetch: () => Promise<VideoInfo[]>;
|
|
12
|
+
};
|
|
13
|
+
findOne: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
14
|
+
upsertOrUpdate: (selector: Record<string, any>, doc: VideoInfo, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
15
|
+
upsert: {
|
|
16
|
+
(doc: VideoInfo): Promise<VideoInfo | null>;
|
|
17
|
+
(doc: VideoInfo, base: VideoInfo | null | undefined): Promise<VideoInfo | null>;
|
|
18
|
+
(docs: VideoInfo[]): Promise<(VideoInfo | null)[]>;
|
|
19
|
+
(docs: VideoInfo[], bases: (VideoInfo | null | undefined)[]): Promise<(VideoInfo | null)[]>;
|
|
20
|
+
};
|
|
21
|
+
remove: {
|
|
22
|
+
(id: any): Promise<void>;
|
|
23
|
+
(ids: any[]): Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
infos: {
|
|
27
|
+
sourceUrl: string;
|
|
28
|
+
name: string;
|
|
29
|
+
duration: number;
|
|
30
|
+
currentTime: number;
|
|
31
|
+
invalid: boolean;
|
|
32
|
+
updateTime: number | undefined;
|
|
33
|
+
fromNetdisk: boolean;
|
|
34
|
+
path: string | undefined;
|
|
35
|
+
subtitles: {
|
|
36
|
+
name: string;
|
|
37
|
+
language: string;
|
|
38
|
+
stream_index: number;
|
|
39
|
+
codec_name: string;
|
|
40
|
+
is_external: boolean;
|
|
41
|
+
path: string;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
_id: string;
|
|
44
|
+
}[];
|
|
45
|
+
ready: {
|
|
46
|
+
then: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
47
|
+
catch: <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<void | TResult>;
|
|
48
|
+
finally: (onfinally?: (() => void) | null | undefined) => Promise<void>;
|
|
49
|
+
readonly [Symbol.toStringTag]: string;
|
|
50
|
+
};
|
|
51
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
52
|
+
collection: RemoteDB<VideoInfo>;
|
|
53
|
+
infos: VideoInfo[];
|
|
54
|
+
ready: Promise<void>;
|
|
55
|
+
}>): (sourceUrl: string) => {
|
|
56
|
+
sourceUrl: string;
|
|
57
|
+
name: string;
|
|
58
|
+
duration: number;
|
|
59
|
+
currentTime: number;
|
|
60
|
+
invalid: boolean;
|
|
61
|
+
updateTime: number | undefined;
|
|
62
|
+
fromNetdisk: boolean;
|
|
63
|
+
path: string | undefined;
|
|
64
|
+
subtitles: {
|
|
65
|
+
name: string;
|
|
66
|
+
language: string;
|
|
67
|
+
stream_index: number;
|
|
68
|
+
codec_name: string;
|
|
69
|
+
is_external: boolean;
|
|
70
|
+
path: string;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
_id: string;
|
|
73
|
+
} | undefined;
|
|
74
|
+
getHistoryInfoByPath(state: {
|
|
75
|
+
collection: {
|
|
76
|
+
find: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => {
|
|
77
|
+
fetch: () => Promise<VideoInfo[]>;
|
|
78
|
+
};
|
|
79
|
+
findOne: (selector: Record<string, any>, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
80
|
+
upsertOrUpdate: (selector: Record<string, any>, doc: VideoInfo, options?: import("@lazycatcloud/minidb/dist/remoteDB").CollectionFindOptions | undefined) => Promise<VideoInfo | null>;
|
|
81
|
+
upsert: {
|
|
82
|
+
(doc: VideoInfo): Promise<VideoInfo | null>;
|
|
83
|
+
(doc: VideoInfo, base: VideoInfo | null | undefined): Promise<VideoInfo | null>;
|
|
84
|
+
(docs: VideoInfo[]): Promise<(VideoInfo | null)[]>;
|
|
85
|
+
(docs: VideoInfo[], bases: (VideoInfo | null | undefined)[]): Promise<(VideoInfo | null)[]>;
|
|
86
|
+
};
|
|
87
|
+
remove: {
|
|
88
|
+
(id: any): Promise<void>;
|
|
89
|
+
(ids: any[]): Promise<void>;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
infos: {
|
|
93
|
+
sourceUrl: string;
|
|
94
|
+
name: string;
|
|
95
|
+
duration: number;
|
|
96
|
+
currentTime: number;
|
|
97
|
+
invalid: boolean;
|
|
98
|
+
updateTime: number | undefined;
|
|
99
|
+
fromNetdisk: boolean;
|
|
100
|
+
path: string | undefined;
|
|
101
|
+
subtitles: {
|
|
102
|
+
name: string;
|
|
103
|
+
language: string;
|
|
104
|
+
stream_index: number;
|
|
105
|
+
codec_name: string;
|
|
106
|
+
is_external: boolean;
|
|
107
|
+
path: string;
|
|
108
|
+
}[] | undefined;
|
|
109
|
+
_id: string;
|
|
110
|
+
}[];
|
|
111
|
+
ready: {
|
|
112
|
+
then: <TResult1 = void, TResult2 = never>(onfulfilled?: ((value: void) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
|
|
113
|
+
catch: <TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined) => Promise<void | TResult>;
|
|
114
|
+
finally: (onfinally?: (() => void) | null | undefined) => Promise<void>;
|
|
115
|
+
readonly [Symbol.toStringTag]: string;
|
|
116
|
+
};
|
|
117
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
118
|
+
collection: RemoteDB<VideoInfo>;
|
|
119
|
+
infos: VideoInfo[];
|
|
120
|
+
ready: Promise<void>;
|
|
121
|
+
}>): (path: string) => {
|
|
122
|
+
sourceUrl: string;
|
|
123
|
+
name: string;
|
|
124
|
+
duration: number;
|
|
125
|
+
currentTime: number;
|
|
126
|
+
invalid: boolean;
|
|
127
|
+
updateTime: number | undefined;
|
|
128
|
+
fromNetdisk: boolean;
|
|
129
|
+
path: string | undefined;
|
|
130
|
+
subtitles: {
|
|
131
|
+
name: string;
|
|
132
|
+
language: string;
|
|
133
|
+
stream_index: number;
|
|
134
|
+
codec_name: string;
|
|
135
|
+
is_external: boolean;
|
|
136
|
+
path: string;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
_id: string;
|
|
139
|
+
} | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
init(): Promise<void>;
|
|
142
|
+
refreshData(): Promise<void>;
|
|
143
|
+
deleteHistory(info: VideoInfo): Promise<void>;
|
|
144
|
+
batchDeleteHistory(ids: string[]): Promise<void>;
|
|
145
|
+
updateOrCreateHistory(info: VideoInfo, blobFn: (() => Promise<Blob | null>) | null): Promise<void>;
|
|
146
|
+
markAsInvalid(sourceUrl: string): Promise<void>;
|
|
147
|
+
clear(): Promise<void>;
|
|
148
|
+
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type KeyCallbackMap = Record<string, (event: KeyboardEvent) => void>;
|
|
2
|
-
export declare function useKeyBind(map: KeyCallbackMap, shortcutToggle?: import("vue").Ref<boolean, boolean>): void;
|
|
3
|
-
export {};
|
|
1
|
+
declare type KeyCallbackMap = Record<string, (event: KeyboardEvent) => void>;
|
|
2
|
+
export declare function useKeyBind(map: KeyCallbackMap, shortcutToggle?: import("vue").Ref<boolean, boolean>): void;
|
|
3
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default function (): {
|
|
2
|
-
selectedKeys: import("vue").Ref<string[], string[]>;
|
|
3
|
-
isEditing: import("vue").Ref<boolean, boolean>;
|
|
4
|
-
isSelectAll: import("vue").ComputedRef<boolean>;
|
|
5
|
-
hdlSelectAll: () => void;
|
|
6
|
-
hdlCancel: () => void;
|
|
7
|
-
hdlToggleItem: (item: any) => void;
|
|
8
|
-
updateData: (values: any[]) => void;
|
|
9
|
-
};
|
|
1
|
+
export default function (): {
|
|
2
|
+
selectedKeys: import("vue").Ref<string[], string[]>;
|
|
3
|
+
isEditing: import("vue").Ref<boolean, 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/dist/src/use/useSdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { lzcAPIGateway } from "@lazycatcloud/sdk";
|
|
2
|
-
import LzcApp from "@lazycatcloud/sdk/dist/extentions/base";
|
|
3
|
-
declare const lzcApi: lzcAPIGateway;
|
|
4
|
-
export default lzcApi;
|
|
5
|
-
export { LzcApp };
|
|
1
|
+
import { lzcAPIGateway } from "@lazycatcloud/sdk";
|
|
2
|
+
import LzcApp from "@lazycatcloud/sdk/dist/extentions/base";
|
|
3
|
+
declare const lzcApi: lzcAPIGateway;
|
|
4
|
+
export default lzcApi;
|
|
5
|
+
export { LzcApp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isMobile(): boolean;
|
|
1
|
+
export declare function isMobile(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function isFileExist(name: string): Promise<boolean>;
|
|
2
|
-
export declare function getFileLinkWithDefault(name: string): Promise<string>;
|
|
3
|
-
export declare const getFrame: (id: string) => string;
|
|
4
|
-
export declare const addFrame: (id: string, blob: Blob) => Promise<boolean>;
|
|
5
|
-
export declare const delFrame: (id: string) => Promise<void>;
|
|
1
|
+
export declare function isFileExist(name: string): Promise<boolean>;
|
|
2
|
+
export declare function getFileLinkWithDefault(name: string): Promise<string>;
|
|
3
|
+
export declare const getFrame: (id: string) => string;
|
|
4
|
+
export declare const addFrame: (id: string, blob: Blob) => Promise<boolean>;
|
|
5
|
+
export declare const delFrame: (id: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lazycatcloud/lzc-video-player",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/lzc-video-player.js",
|
|
7
|
-
"types": "dist/lzc-video-player.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@lazycatcloud/lzc-video-player",
|
|
3
|
+
"version": "0.0.72",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/lzc-video-player.js",
|
|
7
|
+
"types": "dist/lzc-video-player.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"access": "public",
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "vite build"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"registry": "https://registry.npmjs.org",
|
|
20
|
+
"access": "public"
|
|
21
|
+
}
|
|
22
|
+
}
|