@lazycatcloud/lzc-video-player 0.0.26 → 0.0.27
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 +11 -14
- package/package.json +1 -1
package/dist/lzc-video-player.js
CHANGED
|
@@ -78204,7 +78204,7 @@ function useSource(t) {
|
|
|
78204
78204
|
async function o(g) {
|
|
78205
78205
|
getFileLinkWithDefault(g._id).then((m) => {
|
|
78206
78206
|
t.poster(m);
|
|
78207
|
-
}), t.src(g.sourceUrl), g.name && (e = g.name), isNetdiskSource(g.sourceUrl) && t.on(
|
|
78207
|
+
}), t.src(g.sourceUrl), g.name && (e = g.name), isNetdiskSource(g.sourceUrl) && !LzcApp.isTvOsWebShell() && t.on(
|
|
78208
78208
|
"timeupdate",
|
|
78209
78209
|
lodash_throttle(() => {
|
|
78210
78210
|
(t.networkState() == 1 || t.networkState() == 2) && a.loadPreview();
|
|
@@ -78237,23 +78237,20 @@ function useSource(t) {
|
|
|
78237
78237
|
function p(g) {
|
|
78238
78238
|
if (!g)
|
|
78239
78239
|
return f();
|
|
78240
|
-
const m = (T) => isNetdiskSource(T) ?
|
|
78240
|
+
const m = (T, C = "") => isNetdiskSource(T) ? {
|
|
78241
|
+
src: `/_lzc/media/hls/${clearUrl(T)}/master.m3u8`,
|
|
78242
|
+
type: "application/x-mpegURL"
|
|
78243
|
+
} : {
|
|
78244
|
+
src: T,
|
|
78245
|
+
type: C
|
|
78246
|
+
}, y = (T) => "/_lzc/files/home/" + clearUrl(T);
|
|
78241
78247
|
let v = [];
|
|
78242
|
-
Array.isArray(g) ? v = g.map((T) => ({
|
|
78243
|
-
src: m(T.src),
|
|
78244
|
-
type: T.type
|
|
78245
|
-
})) : typeof g == "string" ? (LzcApp.isTvOsWebShell() && v.push({
|
|
78248
|
+
Array.isArray(g) ? v = g.map((T) => m(T.src, T.type)) : typeof g == "string" ? (LzcApp.isTvOsWebShell() && v.push({
|
|
78246
78249
|
src: y(g)
|
|
78247
|
-
}), v.push({
|
|
78248
|
-
src: m(g),
|
|
78249
|
-
type: "application/x-mpegURL"
|
|
78250
|
-
})) : (LzcApp.isTvOsWebShell() && v.push({
|
|
78250
|
+
}), v.push(m(g, ""))) : (LzcApp.isTvOsWebShell() && v.push({
|
|
78251
78251
|
src: y(g.src),
|
|
78252
78252
|
type: g.type
|
|
78253
|
-
}), v.push(
|
|
78254
|
-
src: m(g.src),
|
|
78255
|
-
type: "application/x-mpegURL"
|
|
78256
|
-
})), f(v);
|
|
78253
|
+
}), v.push(m(g.src, g.type))), f(v);
|
|
78257
78254
|
}
|
|
78258
78255
|
t.src = p, t.currentResolution = () => {
|
|
78259
78256
|
const g = n.selectedIndex, m = n.levels_[g];
|