@lazycatcloud/lzc-video-player 0.0.31 → 0.0.32
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/lzc-video-player.js +5 -5
- package/dist/model.d.ts +1 -0
- package/dist/stores/playlist.d.ts +2 -0
- package/package.json +1 -1
package/dist/lzc-video-player.js
CHANGED
|
@@ -87106,8 +87106,8 @@ const previewConfig = {
|
|
|
87106
87106
|
tile: 4,
|
|
87107
87107
|
len: 16
|
|
87108
87108
|
};
|
|
87109
|
-
function isNetdiskSource(t) {
|
|
87110
|
-
return !(t.startsWith("http") || t.startsWith("blob"));
|
|
87109
|
+
function isNetdiskSource(t, e = !1) {
|
|
87110
|
+
return e ? !0 : !(t.startsWith("http") || t.startsWith("blob"));
|
|
87111
87111
|
}
|
|
87112
87112
|
function filenameByUrl(t, e) {
|
|
87113
87113
|
e = e.split("?")[0];
|
|
@@ -87174,7 +87174,7 @@ function useSource(t) {
|
|
|
87174
87174
|
async function u(m) {
|
|
87175
87175
|
getFileLinkWithDefault(m._id).then((v) => {
|
|
87176
87176
|
t.poster(v);
|
|
87177
|
-
}), t.src(m.sourceUrl), m.name && (e = m.name), isNetdiskSource(m.sourceUrl) && !LzcApp.isTvOsWebShell() && t.on(
|
|
87177
|
+
}), t.src(m.sourceUrl), m.name && (e = m.name), isNetdiskSource(m.sourceUrl, m.fromNetdisk) && !LzcApp.isTvOsWebShell() && t.on(
|
|
87178
87178
|
"timeupdate",
|
|
87179
87179
|
lodash_throttle(() => {
|
|
87180
87180
|
(t.networkState() == 1 || t.networkState() == 2) && n.loadPreview();
|
|
@@ -87246,10 +87246,10 @@ function useSource(t) {
|
|
|
87246
87246
|
}
|
|
87247
87247
|
}, t.on("openVideo", async (m) => {
|
|
87248
87248
|
const v = m.info;
|
|
87249
|
-
e = v.name, t.isCastMode() || (console.debug("openVideo: ", v), await u(v), v.duration - v.currentTime > 3 && t.one("canplay", function() {
|
|
87249
|
+
e = v.name, t.isCastMode() || (console.debug("openVideo: ", v), await u(v), t.isNetdiskSource = () => isNetdiskSource(t.currentSrc(), v.fromNetdisk), v.duration - v.currentTime > 3 && t.one("canplay", function() {
|
|
87250
87250
|
t.currentTime(v.currentTime);
|
|
87251
87251
|
}));
|
|
87252
|
-
}), t.
|
|
87252
|
+
}), t.currentVideoName = c, t.currentPreview = d, t.isCastMode = function() {
|
|
87253
87253
|
return t.currentType() === "video/lzc-cast";
|
|
87254
87254
|
}, t.reloadSource = function(m) {
|
|
87255
87255
|
const v = t.duration() !== 1 / 0 && t.currentTime() || 0;
|
package/dist/model.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo",
|
|
|
29
29
|
currentTime: number;
|
|
30
30
|
invalid: boolean;
|
|
31
31
|
updateTime?: number | undefined;
|
|
32
|
+
fromNetdisk?: boolean | undefined;
|
|
32
33
|
_id: string;
|
|
33
34
|
}[];
|
|
34
35
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
@@ -41,6 +42,7 @@ export declare const useHistoryInfo: () => import("pinia").Store<"historyInfo",
|
|
|
41
42
|
currentTime: number;
|
|
42
43
|
invalid: boolean;
|
|
43
44
|
updateTime?: number | undefined;
|
|
45
|
+
fromNetdisk?: boolean | undefined;
|
|
44
46
|
_id: string;
|
|
45
47
|
} | undefined;
|
|
46
48
|
}, {
|