tuikit-atomicx-vue3 5.6.1 → 5.6.2-beta.2
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/LiveAudienceList/LiveAudienceList.js +1 -1
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +1 -1
- package/dist/components/LiveAudienceList/index.js +1 -1
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +20 -18
- package/dist/components/LiveView/i18n/en-US/index.d.ts +1 -0
- package/dist/components/LiveView/i18n/en-US/index.js +2 -1
- package/dist/components/LiveView/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/LiveView/i18n/zh-CN/index.js +2 -1
- package/dist/components/LiveView/index.js +162 -157
- package/dist/index-d0zDKX8z.js +182 -0
- package/dist/index.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/live/index.js +1 -1
- package/dist/subEntry/live/live.js +1 -1
- package/package.json +1 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +2 -70
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +6 -1
- package/src/components/LiveView/i18n/en-US/index.ts +1 -0
- package/src/components/LiveView/i18n/zh-CN/index.ts +1 -0
- package/src/components/LiveView/index.vue +34 -4
- package/dist/index-B-9Rfjkt.js +0 -209
|
@@ -25,7 +25,7 @@ const v = {
|
|
|
25
25
|
}, E = d(!1), q = d(
|
|
26
26
|
"contain"
|
|
27
27
|
/* CONTAIN */
|
|
28
|
-
), o = d(!1), M = d(!1), p = d(!1),
|
|
28
|
+
), o = d(!1), M = d(!1), p = d(!1), L = d(v.DEFAULT_VOLUME), B = d(!1), ie = d(Ae()), $ = d(!1), re = /* @__PURE__ */ new Map();
|
|
29
29
|
let H = !1;
|
|
30
30
|
function T(t, i) {
|
|
31
31
|
return new Proxy(i, {
|
|
@@ -63,7 +63,7 @@ const c = be({
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
let J = v.DEFAULT_VOLUME;
|
|
66
|
-
const O = d([]),
|
|
66
|
+
const O = d([]), w = d(), m = Te(), { t: se } = Ie(), { loginUserInfo: oe } = Ve(), { seatList: ke } = le();
|
|
67
67
|
let V = !1;
|
|
68
68
|
const qe = () => {
|
|
69
69
|
var i, l;
|
|
@@ -106,8 +106,8 @@ function Ze() {
|
|
|
106
106
|
content: se("LiveView.ContentReady"),
|
|
107
107
|
confirmText: se("LiveView.Play"),
|
|
108
108
|
callback: async () => {
|
|
109
|
-
var
|
|
110
|
-
await ((
|
|
109
|
+
var S;
|
|
110
|
+
await ((S = m.instance) == null ? void 0 : S.callExperimentalAPI(JSON.stringify({
|
|
111
111
|
api: "resume",
|
|
112
112
|
params: {}
|
|
113
113
|
}))), E.value = !0;
|
|
@@ -155,7 +155,7 @@ function Ze() {
|
|
|
155
155
|
}, "Exit fullscreen", { success: !1, mode: k.CSS_SIMULATED, shouldRotateToLandscape: !1 }), ve = async () => f(async () => {
|
|
156
156
|
const e = R(), n = U();
|
|
157
157
|
if (console.log(`requestPictureInPicture: enableWebrtcMediaControl: [${V}] [${e}] [${n}]`), V && !e && !n) {
|
|
158
|
-
const a = Array.from(ee.subCloudMap.values()),
|
|
158
|
+
const a = Array.from(ee.subCloudMap.values()), S = await Promise.allSettled(
|
|
159
159
|
a.map(
|
|
160
160
|
(P) => P.callExperimentalAPI(JSON.stringify({
|
|
161
161
|
api: "requestPictureInPicture",
|
|
@@ -163,8 +163,8 @@ function Ze() {
|
|
|
163
163
|
}))
|
|
164
164
|
)
|
|
165
165
|
);
|
|
166
|
-
if (!
|
|
167
|
-
const P =
|
|
166
|
+
if (!S.some((P) => P.status === "fulfilled")) {
|
|
167
|
+
const P = S.filter((Se) => Se.status === "rejected");
|
|
168
168
|
if (P.length > 0)
|
|
169
169
|
throw P[P.length - 1].reason;
|
|
170
170
|
}
|
|
@@ -208,7 +208,7 @@ function Ze() {
|
|
|
208
208
|
autoSwitch: !1
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
|
-
), E.value || (E.value = !0),
|
|
211
|
+
), E.value || (E.value = !0), w.value = e, !0;
|
|
212
212
|
}, "Switch resolution", !1), me = async (e) => f(async () => {
|
|
213
213
|
if (!m.instance)
|
|
214
214
|
throw new Error("Room engine instance not available");
|
|
@@ -224,11 +224,13 @@ function Ze() {
|
|
|
224
224
|
try {
|
|
225
225
|
const s = await me(e);
|
|
226
226
|
if (O.value = s, s.length === ne.FIRST_INDEX) {
|
|
227
|
-
console.warn("[Resolution] No resolutions available for room:", e),
|
|
227
|
+
console.warn("[Resolution] No resolutions available for room:", e), w.value = void 0;
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
+
if (w.value !== void 0 && s.includes(w.value))
|
|
231
|
+
return;
|
|
230
232
|
const a = s[ne.FIRST_INDEX];
|
|
231
|
-
|
|
233
|
+
w.value = a, n && await G(a);
|
|
232
234
|
} catch (s) {
|
|
233
235
|
console.error("[Resolution] Failed to initialize resolution:", s);
|
|
234
236
|
}
|
|
@@ -236,11 +238,11 @@ function Ze() {
|
|
|
236
238
|
var n;
|
|
237
239
|
if (e < v.MIN_VOLUME || e > v.MAX_VOLUME)
|
|
238
240
|
throw new Error(`Volume value must be between ${v.MIN_VOLUME}-${v.MAX_VOLUME}`);
|
|
239
|
-
return await ((n = m.instance) == null ? void 0 : n.setAudioPlayoutVolume({ volume: e })),
|
|
241
|
+
return await ((n = m.instance) == null ? void 0 : n.setAudioPlayoutVolume({ volume: e })), L.value = e, J = e, B.value = e == v.MUTE_VOLUME, !0;
|
|
240
242
|
}, "Set volume", !1), pe = async (e) => f(async () => {
|
|
241
243
|
var s;
|
|
242
244
|
let n;
|
|
243
|
-
return e ? (J =
|
|
245
|
+
return e ? (J = L.value, n = v.MUTE_VOLUME) : n = J || v.DEFAULT_VOLUME, await ((s = m.instance) == null ? void 0 : s.setAudioPlayoutVolume({ volume: n })), L.value = n, B.value = e, !0;
|
|
244
246
|
}, "Set mute", !1), Pe = async (e) => f(async () => (q.value = e, !0), "Change fill mode", !1), K = () => {
|
|
245
247
|
try {
|
|
246
248
|
const e = y.getAllElements();
|
|
@@ -296,30 +298,30 @@ function Ze() {
|
|
|
296
298
|
return (e = t.value) == null ? void 0 : e.liveId;
|
|
297
299
|
},
|
|
298
300
|
async (e) => {
|
|
299
|
-
e && (E.value = !0, p.value = !1, o.value = !1, O.value = [],
|
|
301
|
+
e && (E.value = !0, p.value = !1, o.value = !1, O.value = [], w.value = void 0, De(), await _(L.value), await ye(e, !1), console.log("[PlayerControl] State after entering room:", JSON.stringify({
|
|
300
302
|
isPlaying: E.value,
|
|
301
303
|
currentFillMode: q.value,
|
|
302
304
|
isFullscreen: o.value,
|
|
303
305
|
isLandscapeStyleMode: M.value,
|
|
304
306
|
isPictureInPicture: p.value,
|
|
305
|
-
currentVolume:
|
|
307
|
+
currentVolume: L.value,
|
|
306
308
|
resolutionList: O.value,
|
|
307
|
-
currentResolution:
|
|
309
|
+
currentResolution: w.value
|
|
308
310
|
})));
|
|
309
311
|
},
|
|
310
312
|
{ immediate: !0 }
|
|
311
313
|
), X(Be, (e) => {
|
|
312
|
-
e && (E.value || z(),
|
|
314
|
+
e && (E.value || z(), L.value !== v.DEFAULT_VOLUME && _(v.DEFAULT_VOLUME), p.value && (W(), p.value = !1), o.value && A());
|
|
313
315
|
})), {
|
|
314
316
|
isPlaying: E,
|
|
315
317
|
currentFillMode: q,
|
|
316
318
|
isFullscreen: o,
|
|
317
319
|
isLandscapeStyleMode: M,
|
|
318
320
|
isPictureInPicture: p,
|
|
319
|
-
currentVolume:
|
|
321
|
+
currentVolume: L,
|
|
320
322
|
isMuted: B,
|
|
321
323
|
resolutionList: O,
|
|
322
|
-
currentResolution:
|
|
324
|
+
currentResolution: w,
|
|
323
325
|
isSafari: ie,
|
|
324
326
|
controlBarVisible: $,
|
|
325
327
|
buttons: c,
|
|
@@ -23,7 +23,8 @@ const e = {
|
|
|
23
23
|
"LiveView.NotAllowFullscreenInPIP": 'Not allow to "Fullscreen" in picture-in-picture mode',
|
|
24
24
|
"LiveView.NotAllowPIPInNonPlaying": 'Not allow to "Picture in Picture" in non-playing mode',
|
|
25
25
|
"LiveView.NotAllowPIPInFullscreen": 'Not allow to "Picture in Picture" in fullscreen mode',
|
|
26
|
-
"LiveView.BattleEnded": "Battle ended"
|
|
26
|
+
"LiveView.BattleEnded": "Battle ended",
|
|
27
|
+
"LiveView.VoiceChatNotSupported": "Voice chat room display is not currently supported on the Web"
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
30
|
e as resource
|
|
@@ -23,7 +23,8 @@ const e = {
|
|
|
23
23
|
"LiveView.NotAllowFullscreenInPIP": "画中画模式下不允许全屏操作",
|
|
24
24
|
"LiveView.NotAllowPIPInNonPlaying": "暂停状态下不允许进入画中画模式",
|
|
25
25
|
"LiveView.NotAllowPIPInFullscreen": "全屏模式下不允许进入画中画模式",
|
|
26
|
-
"LiveView.BattleEnded": "PK结束"
|
|
26
|
+
"LiveView.BattleEnded": "PK结束",
|
|
27
|
+
"LiveView.VoiceChatNotSupported": "当前 Web 端暂不支持语聊房展示"
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
30
|
e as resource
|