@lazycatcloud/lzc-video-player 0.0.39 → 0.0.40
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 +3 -3
- package/package.json +1 -1
package/dist/lzc-video-player.js
CHANGED
|
@@ -86098,7 +86098,7 @@ function updatePosInfo(t) {
|
|
|
86098
86098
|
}
|
|
86099
86099
|
async function doPlayAction(t, e) {
|
|
86100
86100
|
const r = e.split("?");
|
|
86101
|
-
r.length == 2
|
|
86101
|
+
r.length == 2 ? e = e.startsWith("/") ? r[0].replace(/_lzc\/media\/hls/, "").replace("//", "/").replace("/master.m3u8", "") : encodeURI(r[0] + "?" + r[1]) : e = e.startsWith("/") ? e.replace(/_lzc\/media\/hls/, "").replace("//", "/").replace("/master.m3u8", "") : encodeURI(e), castLoading.value = !0, await doAction({
|
|
86102
86102
|
mediaFile: e,
|
|
86103
86103
|
action: dlna.DoActionRequest_Action.Play
|
|
86104
86104
|
}), castLoading.value = !1, subscribe(t);
|
|
@@ -87296,7 +87296,7 @@ function useSource(t) {
|
|
|
87296
87296
|
height: v.height
|
|
87297
87297
|
};
|
|
87298
87298
|
}, t.supportResolution = () => {
|
|
87299
|
-
|
|
87299
|
+
let y = s.levels_.concat({
|
|
87300
87300
|
id: "auto",
|
|
87301
87301
|
label: "auto",
|
|
87302
87302
|
height: 0,
|
|
@@ -87308,7 +87308,7 @@ function useSource(t) {
|
|
|
87308
87308
|
if (y.id == "auto")
|
|
87309
87309
|
o();
|
|
87310
87310
|
else {
|
|
87311
|
-
|
|
87311
|
+
let v = t.qualityLevels().levels_.findIndex(
|
|
87312
87312
|
(S) => S.id == y.id && S.height == y.height && S.bitrate == y.bitrate
|
|
87313
87313
|
);
|
|
87314
87314
|
o(v);
|