tuikit-atomicx-vue3 3.4.1 → 3.4.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/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/CoHostPanel/BattlePanel.js +16 -16
- package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +42 -42
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +7 -7
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +16 -16
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.js +15 -15
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.js +1 -1
- package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +1 -0
- package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +2 -1
- package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +1 -0
- package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +2 -1
- package/dist/components/LiveView/index.d.ts +79 -0
- package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
- package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/StreamMixer/index.js +6 -6
- package/dist/{index-D-KJvDvy.js → index-Bm-QfV5o.js} +1 -1
- package/dist/{index-D88ja_7_.js → index-D2OVtqc8.js} +1705 -1705
- package/dist/index.js +140 -138
- package/dist/rtc/index.d.ts +2 -39
- package/dist/rtc/index.js +49 -48
- package/dist/states/BattleState.js +48 -48
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
- package/src/components/CoHostPanel/BattlePanel.vue +3 -3
- package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
- package/src/components/CoHostPanel/ConnectionPanel.vue +4 -4
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +28 -29
- package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +1 -0
- package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +1 -0
- package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
- package/src/components/{LiveCoreView → LiveView}/index.vue +1 -1
- package/src/components/StreamMixer/index.vue +1 -1
- package/src/rtc/index.ts +2 -2
- package/dist/components/LiveCoreView/index.d.ts +0 -4
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuikit-atomicx-vue3",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@tencentcloud/chat": "^3.5.8",
|
|
53
53
|
"@tencentcloud/chat-uikit-engine": "~2.5.6",
|
|
54
54
|
"@tencentcloud/tui-core": "latest",
|
|
55
|
-
"@tencentcloud/tuiroom-engine-js": "~3.4.
|
|
55
|
+
"@tencentcloud/tuiroom-engine-js": "~3.4.2",
|
|
56
56
|
"@tencentcloud/uikit-base-component-vue3": "1.1.0",
|
|
57
57
|
"vue": "^3.4.21"
|
|
58
58
|
},
|
|
@@ -120,7 +120,7 @@ const handleSendBattleRequest = async (user: SeatUserInfo) => {
|
|
|
120
120
|
switch (result.get(user.liveId)) {
|
|
121
121
|
case TUIConnectionCode.TUIConnectionCodeSuccess:
|
|
122
122
|
pkUserIds.add(user.userId);
|
|
123
|
-
TUIToast({ type: TOAST_TYPE.SUCCESS, message: t('Battle invitation sent to user', { userName: user.userName }) });
|
|
123
|
+
TUIToast({ type: TOAST_TYPE.SUCCESS, message: t('Battle invitation sent to user', { userName: user.userName || user.userId }) });
|
|
124
124
|
break;
|
|
125
125
|
case TUIConnectionCode.TUIConnectionCodeRoomNotExist:
|
|
126
126
|
TUIToast({ type: TOAST_TYPE.ERROR, message: t('Send battle request failed, Room not exist') });
|
|
@@ -191,13 +191,13 @@ const handleCoHostRequestRejected = ({ invitee }: { invitee: SeatUserInfo }) =>
|
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
pkUserIds.delete(invitee.userId);
|
|
194
|
-
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request rejected by user', { userName: invitee.userName }) });
|
|
194
|
+
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request rejected by user', { userName: invitee.userName || invitee.userId }) });
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
const handleCoHostRequestTimeout = ({ inviter, invitee }: { inviter: SeatUserInfo; invitee: SeatUserInfo }) => {
|
|
198
198
|
if (inviter.userId === loginUserInfo.value?.userId && pkUserIds.has(invitee.userId)) {
|
|
199
199
|
pkUserIds.delete(invitee.userId);
|
|
200
|
-
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request timeout for user', { userName: invitee.userName }) });
|
|
200
|
+
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request timeout for user', { userName: invitee.userName || invitee.userId}) });
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
|
|
@@ -57,6 +57,7 @@ import { computed, ref, watch } from 'vue';
|
|
|
57
57
|
import { useUIKit, TUIDialog, IconClose, IconLiveSetting } from '@tencentcloud/uikit-base-component-vue3';
|
|
58
58
|
import { useBattleState } from '../../states/BattleState';
|
|
59
59
|
import { useCoHostState } from '../../states/CoHostState';
|
|
60
|
+
import { useLoginState } from '../../states/LoginState';
|
|
60
61
|
import { CoHostStatus, CoHostLayoutTemplate } from '../../types';
|
|
61
62
|
import BattlePanel from './BattlePanel.vue';
|
|
62
63
|
import ConfigSettingPanel from './ConfigSettingPanel.vue';
|
|
@@ -66,8 +67,9 @@ const { t } = useUIKit();
|
|
|
66
67
|
const props = defineProps<{
|
|
67
68
|
visible: boolean;
|
|
68
69
|
}>();
|
|
70
|
+
const { loginUserInfo } = useLoginState();
|
|
69
71
|
const { coHostStatus } = useCoHostState();
|
|
70
|
-
const {
|
|
72
|
+
const { battleUsers } = useBattleState();
|
|
71
73
|
const emit = defineEmits(['update:visible']);
|
|
72
74
|
const close = () => {
|
|
73
75
|
emit('update:visible', false);
|
|
@@ -75,7 +77,7 @@ const close = () => {
|
|
|
75
77
|
const activeTab = ref('battleTab');
|
|
76
78
|
const settingVisible = ref(false);
|
|
77
79
|
const inConnection = computed(() => coHostStatus.value === CoHostStatus.Connected);
|
|
78
|
-
const inPk = computed(() =>
|
|
80
|
+
const inPk = computed(() => battleUsers.value.some(user => user.userId === loginUserInfo.value?.userId));
|
|
79
81
|
|
|
80
82
|
const title = computed(() => {
|
|
81
83
|
if (inPk.value) {
|
|
@@ -99,7 +101,13 @@ const handleSettingConfirm = (form: {
|
|
|
99
101
|
}) => {
|
|
100
102
|
configForm.value = form;
|
|
101
103
|
};
|
|
102
|
-
|
|
104
|
+
watch(inConnection, (newVal) => {
|
|
105
|
+
if (newVal && !inPk.value) {
|
|
106
|
+
activeTab.value = 'coHostTab';
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
immediate: true,
|
|
110
|
+
});
|
|
103
111
|
watch(inPk, (newVal, oldVal) => {
|
|
104
112
|
if (newVal) {
|
|
105
113
|
emit('update:visible', false);
|
|
@@ -173,7 +173,7 @@ const handleSendCoHostRequest = async (user: SeatUserInfo) => {
|
|
|
173
173
|
});
|
|
174
174
|
if (result.get(user.liveId) === TUIConnectionCode.TUIConnectionCodeSuccess) {
|
|
175
175
|
sentCoHostRequestUserList.value.add(user.userId);
|
|
176
|
-
TUIToast({ type: TOAST_TYPE.SUCCESS, message: t('Co-host invitation sent to user', { userName: user.userName }) });
|
|
176
|
+
TUIToast({ type: TOAST_TYPE.SUCCESS, message: t('Co-host invitation sent to user', { userName: user.userName || user.userId }) });
|
|
177
177
|
} else {
|
|
178
178
|
switch (result.get(user.liveId)) {
|
|
179
179
|
case TUIConnectionCode.TUIConnectionCodeRoomNotExist:
|
|
@@ -248,14 +248,14 @@ const handleCoHostRequestAccepted = ({ invitee }: { invitee: SeatUserInfo }) =>
|
|
|
248
248
|
|
|
249
249
|
const handleCoHostRequestRejected = ({ invitee }: { invitee: SeatUserInfo }) => {
|
|
250
250
|
if (sentCoHostRequestUserList.value.has(invitee.userId)) {
|
|
251
|
-
TUIToast({ type: TOAST_TYPE.INFO, message: t('Co-host request rejected by user', { userName: invitee.userName }) });
|
|
251
|
+
TUIToast({ type: TOAST_TYPE.INFO, message: t('Co-host request rejected by user', { userName: invitee.userName || invitee.userId }) });
|
|
252
252
|
sentCoHostRequestUserList.value.delete(invitee.userId);
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
const handleCoHostRequestTimeout = ({ inviter, invitee }: { inviter: SeatUserInfo; invitee: SeatUserInfo }) => {
|
|
257
257
|
if (inviter.userId === loginUserInfo.value?.userId && sentCoHostRequestUserList.value.has(invitee.userId)) {
|
|
258
|
-
TUIToast({ type: TOAST_TYPE.INFO, message: t('Co-host request timeout for user', { userName: invitee.userName }) });
|
|
258
|
+
TUIToast({ type: TOAST_TYPE.INFO, message: t('Co-host request timeout for user', { userName: invitee.userName || invitee.userId }) });
|
|
259
259
|
sentCoHostRequestUserList.value.delete(invitee.userId);
|
|
260
260
|
}
|
|
261
261
|
};
|
|
@@ -268,7 +268,7 @@ const onBattleRequestAccept = (eventInfo: { battleInfo: TUIBattleInfo, inviter:
|
|
|
268
268
|
|
|
269
269
|
const onBattleRequestRejected = (eventInfo: { battleInfo: TUIBattleInfo, inviter: TUIBattleUser, invitee: TUIBattleUser }) => {
|
|
270
270
|
if (eventInfo.inviter.userId === loginUserInfo.value?.userId) {
|
|
271
|
-
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request rejected by user', { userName: eventInfo.invitee.userName }) });
|
|
271
|
+
TUIToast({ type: TOAST_TYPE.INFO, message: t('Battle request rejected by user', { userName: eventInfo.invitee.userName || eventInfo.invitee.userId }) });
|
|
272
272
|
battleRequestList.value.delete(eventInfo.invitee.userId);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
:style="item.region"
|
|
10
10
|
>
|
|
11
11
|
<div class="battle-decorate" v-if="getBattleLevel(item.userInfo.userId) > 0">
|
|
12
|
-
<
|
|
13
|
-
|
|
12
|
+
<span class="battle-score-value" v-if="!battleScore?.has(item.userInfo.userId)">{{ t('Connecting') }}</span>
|
|
13
|
+
<template v-else>
|
|
14
|
+
<div class="battle-badge-container" :class="getBattleLevel(item.userInfo.userId) === 1 ? 'top-badge' : 'ordinary-badge'">
|
|
15
|
+
<img :src="getBattleLevel(item.userInfo.userId) === 1 ? BattleTopBadge : BattleOrdinaryBadge" alt="battle-badge" class="battle-badge" />
|
|
14
16
|
<span class="battle-level">{{ getBattleLevel(item.userInfo.userId) }}</span>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
</div>
|
|
18
|
+
<span class="battle-score-value">{{ battleScore?.get(item.userInfo.userId) || 0 }}</span>
|
|
19
|
+
</template>
|
|
17
20
|
</div>
|
|
18
21
|
</div>
|
|
19
22
|
</div>
|
|
@@ -23,10 +26,13 @@
|
|
|
23
26
|
import { SeatUserInfo, CoHostLayoutTemplate } from '../../../types';
|
|
24
27
|
import { useBattleState } from '../../../states/BattleState';
|
|
25
28
|
import { useLiveState } from '../../../states/LiveState';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
29
|
+
import { useCoHostState } from '../../../states/CoHostState';
|
|
30
|
+
import { ref, computed, watch } from 'vue';
|
|
28
31
|
import BattleTopBadge from '../assets/svg/BattleTopBadge.svg';
|
|
29
32
|
import BattleOrdinaryBadge from '../assets/svg/BattleOrdinaryBadge.svg';
|
|
33
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
34
|
+
|
|
35
|
+
const { t } = useUIKit();
|
|
30
36
|
|
|
31
37
|
const props = defineProps<{
|
|
32
38
|
seatListWithRealSize: Array<{ userInfo: SeatUserInfo; region: {
|
|
@@ -39,15 +45,16 @@ const props = defineProps<{
|
|
|
39
45
|
}>();
|
|
40
46
|
|
|
41
47
|
const { currentLive } = useLiveState();
|
|
42
|
-
const {
|
|
48
|
+
const { connected } = useCoHostState();
|
|
49
|
+
const { currentBattleInfo, battleScore } = useBattleState();
|
|
43
50
|
|
|
44
51
|
const isInBattle = ref(false);
|
|
45
52
|
|
|
46
53
|
const showBattleUserDecorate = computed(() => {
|
|
47
|
-
const showUserDecorateInGrid = currentLive.value?.layoutTemplate === CoHostLayoutTemplate.HostDynamicGrid
|
|
54
|
+
const showUserDecorateInGrid = currentLive.value?.layoutTemplate === CoHostLayoutTemplate.HostDynamicGrid;
|
|
48
55
|
const showUserDecorateIn1v6 = currentLive.value?.layoutTemplate === CoHostLayoutTemplate.HostDynamic1v6;
|
|
49
56
|
const showUserDecorate = showUserDecorateInGrid || showUserDecorateIn1v6;
|
|
50
|
-
return props.seatListWithRealSize.length > 0 && isInBattle.value && showUserDecorate;
|
|
57
|
+
return props.seatListWithRealSize.length > 0 && isInBattle.value && showUserDecorate && connected.value.length > 2;
|
|
51
58
|
});
|
|
52
59
|
|
|
53
60
|
const currentBattleScoreList = computed(() => {
|
|
@@ -58,25 +65,17 @@ function getBattleLevel(userId: string) {
|
|
|
58
65
|
return currentBattleScoreList.value.indexOf(battleScore.value.get(userId) || 0) + 1;
|
|
59
66
|
};
|
|
60
67
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
subscribeEvent(TUILiveBattleManagerEvents.onBattleStarted, handleBattleStarted);
|
|
73
|
-
subscribeEvent(TUILiveBattleManagerEvents.onBattleEnded, handleBattleEnded);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
onUnmounted(() => {
|
|
77
|
-
unsubscribeEvent(TUILiveBattleManagerEvents.onBattleStarted, handleBattleStarted);
|
|
78
|
-
unsubscribeEvent(TUILiveBattleManagerEvents.onBattleEnded, handleBattleEnded);
|
|
79
|
-
});
|
|
68
|
+
let battleTimer: NodeJS.Timeout | null = null;
|
|
69
|
+
watch(() => currentBattleInfo.value?.battleId, (newVal) => {
|
|
70
|
+
if(newVal !== null && newVal !== undefined) {
|
|
71
|
+
isInBattle.value = true;
|
|
72
|
+
} else {
|
|
73
|
+
if(battleTimer) return;
|
|
74
|
+
battleTimer = setTimeout(() => {
|
|
75
|
+
isInBattle.value = false;
|
|
76
|
+
}, 5000);
|
|
77
|
+
}
|
|
78
|
+
}, { immediate: true });
|
|
80
79
|
|
|
81
80
|
</script>
|
|
82
81
|
|
|
@@ -103,6 +102,7 @@ onUnmounted(() => {
|
|
|
103
102
|
padding: 4px;
|
|
104
103
|
background-color: rgba(15, 16, 20, 0.4);
|
|
105
104
|
border-radius: 24px;
|
|
105
|
+
color: var(--text-color-primary);
|
|
106
106
|
.battle-badge-container {
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
@@ -135,7 +135,6 @@ onUnmounted(() => {
|
|
|
135
135
|
.battle-score-value {
|
|
136
136
|
font-size: 12px;
|
|
137
137
|
font-weight: 500;
|
|
138
|
-
color: #fff;
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
</style>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { addI18n } from '../../i18n';
|
|
2
2
|
import DefaultStreamViewUI from './DefaultStreamViewUI.vue';
|
|
3
3
|
import { enUSResource, zhCNResource } from './i18n';
|
|
4
|
-
import
|
|
4
|
+
import LiveViewComponent from './index.vue';
|
|
5
5
|
|
|
6
6
|
addI18n('en-US', { translation: enUSResource });
|
|
7
7
|
addI18n('zh-CN', { translation: zhCNResource });
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const LiveCoreView = LiveViewComponent;
|
|
10
|
+
const LiveView = LiveViewComponent;
|
|
11
|
+
|
|
12
|
+
export { LiveCoreView, LiveView, DefaultStreamViewUI };
|
|
@@ -80,7 +80,7 @@ const { loginUserInfo } = useLoginState();
|
|
|
80
80
|
const isPlayedVideo = ref(false);
|
|
81
81
|
const isMounted = ref(false);
|
|
82
82
|
const isAlignCenter = computed(() => {
|
|
83
|
-
if (!isInStreamMixerComp.value && isPortraitContainer.value && widthRatio.value < heightRatio.value) {
|
|
83
|
+
if (!isInStreamMixerComp.value && isPortraitContainer.value && widthRatio.value < heightRatio.value && isMobile) {
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
86
|
return true;
|
package/src/rtc/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CameraButton as CameraButtonComponent } from '../components/CameraButto
|
|
|
7
7
|
import { CoGuestPanel as CoGuestPanelComponent } from '../components/CoGuestPanel';
|
|
8
8
|
import { CoHostPanel as CoHostPanelComponent } from '../components/CoHostPanel';
|
|
9
9
|
import { LiveAudienceList as LiveAudienceListComponent } from '../components/LiveAudienceList';
|
|
10
|
-
import { LiveCoreView
|
|
10
|
+
import { LiveCoreView, LiveView } from '../components/LiveView';
|
|
11
11
|
import { LiveList as LiveListComponent } from '../components/LiveList';
|
|
12
12
|
import { LiveMonitorView as LiveMonitorViewComponent } from '../components/LiveMonitorView';
|
|
13
13
|
import { LiveScenePanel as LiveScenePanelComponent } from '../components/LiveScenePanel';
|
|
@@ -36,7 +36,6 @@ RTCLoginServer.getInstance().init();
|
|
|
36
36
|
|
|
37
37
|
const BarrageList = BarrageListComponent;
|
|
38
38
|
const BarrageInput = BarrageInputComponent;
|
|
39
|
-
const LiveCoreView = LiveCoreViewComponent;
|
|
40
39
|
const StreamMixer = StreamMixerComponent;
|
|
41
40
|
const LiveScenePanel = LiveScenePanelComponent;
|
|
42
41
|
const LiveAudienceList = LiveAudienceListComponent;
|
|
@@ -70,6 +69,7 @@ export {
|
|
|
70
69
|
BarrageList,
|
|
71
70
|
BarrageInput,
|
|
72
71
|
LiveCoreView,
|
|
72
|
+
LiveView,
|
|
73
73
|
StreamMixer,
|
|
74
74
|
LiveScenePanel,
|
|
75
75
|
LiveAudienceList,
|
|
File without changes
|
/package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|