tuikit-atomicx-vue3 4.4.0 → 4.5.0
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/.eslintrc.cjs +6 -2
- package/dist/DurationSelector.vue_vue_type_script_setup_true_lang-RndH6NtJ.js +54 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +31 -29
- package/dist/TimezoneSelector.vue_vue_type_script_setup_true_lang-C-lovW-l.js +62 -0
- package/dist/baseComp/AudioIcon.js +7 -7
- package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
- package/dist/baseComp/Input/index.d.ts +15 -15
- package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
- package/dist/chat/index.d.ts +490 -475
- package/dist/components/AudioSetting/AudioMediaControl.js +23 -23
- package/dist/components/AudioSetting/AudioRequestDialog.js +86 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +32 -33
- package/dist/components/AudioSetting/MicrophoneSelect.js +14 -15
- package/dist/components/AudioSetting/SpeakerSelect.js +16 -17
- package/dist/components/AudioSetting/index.js +29 -3
- package/dist/components/AudioSettingPanel/MicrophoneSelect.js +61 -0
- package/dist/components/AudioSettingPanel/MicrophoneSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.js +61 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +12 -6
- package/dist/components/AudioSettingPanel/index.d.ts +49 -2
- package/dist/components/AudioSettingPanel/index.js +127 -94
- package/dist/components/AudioSettingPanel/index.vue.d.ts +49 -1
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
- package/dist/components/BarrageInput/index.d.ts +6 -6
- package/dist/components/BarrageList/BarrageList.js +7 -7
- package/dist/components/BarrageList/BarrageListH5.js +7 -7
- package/dist/components/BarrageList/BarrageListState.d.ts +5 -27
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
- package/dist/components/CameraButton/index.js +7 -7
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationList.vue.d.ts +190 -190
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +82 -82
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/index.d.ts +442 -442
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.js +257 -0
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.vue.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +19 -0
- package/dist/components/FreeBeautyPanel/i18n/index.d.ts +4 -0
- package/dist/components/FreeBeautyPanel/i18n/index.js +6 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.js +19 -0
- package/dist/components/FreeBeautyPanel/index.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/index.js +10 -0
- package/dist/components/LiveMonitorView/LiveMonitorView.js +11 -11
- package/dist/components/LiveScenePanel/index.d.ts +1 -2
- package/dist/components/LiveScenePanel/index.js +44 -43
- package/dist/components/LiveView/DefaultStreamViewUI.js +10 -10
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +58 -64
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +1 -7
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -83
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -6
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +153 -194
- package/dist/components/LiveView/index.d.ts +37 -2
- package/dist/components/LiveView/index.js +29 -29
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +4 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +47 -61
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +5 -1
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +48 -39
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +60 -30
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +18 -18
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MicButton/index.js +13 -13
- package/dist/components/RoomParticipantList/ParticipantAction.js +78 -0
- package/dist/components/RoomParticipantList/ParticipantAction.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/ParticipantItem.js +82 -0
- package/dist/components/RoomParticipantList/ParticipantItem.vue.d.ts +27 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.js +75 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.vue.d.ts +16 -0
- package/dist/components/RoomParticipantList/RoomAction.js +89 -0
- package/dist/components/RoomParticipantList/RoomAction.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.js +69 -0
- package/dist/components/RoomParticipantList/i18n/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/index.js +6 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.js +69 -0
- package/dist/components/RoomParticipantList/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/index.js +171 -0
- package/dist/components/RoomParticipantList/index.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.d.ts +15 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.js +71 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.js +36 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.js +42 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.js +34 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.js +31 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.js +4 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.js +61 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.js +54 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.js +40 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.js +20 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.js +51 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.js +60 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.js +50 -0
- package/dist/components/RoomParticipantView/StreamPlay.js +74 -0
- package/dist/components/RoomParticipantView/StreamPlay.vue.d.ts +66 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.d.ts +56 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.js +94 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.d.ts +58 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.js +97 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.d.ts +46 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +100 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.d.ts +92 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.js +177 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.d.ts +119 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.js +298 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.d.ts +14 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.js +4 -0
- package/dist/components/RoomParticipantView/index.d.ts +99 -0
- package/dist/components/RoomParticipantView/index.js +32 -0
- package/dist/components/RoomParticipantView/index.vue.d.ts +34 -0
- package/dist/components/RoomView/ArrowStroke.js +43 -0
- package/dist/components/RoomView/ArrowStroke.vue.d.ts +20 -0
- package/dist/components/RoomView/GridLayout.js +119 -0
- package/dist/components/RoomView/GridLayout.vue.d.ts +20 -0
- package/dist/components/RoomView/SpeakerLayout.js +141 -0
- package/dist/components/RoomView/SpeakerLayout.vue.d.ts +32 -0
- package/dist/components/RoomView/index.d.ts +52 -0
- package/dist/components/RoomView/index.js +49 -0
- package/dist/components/RoomView/index.vue.d.ts +46 -0
- package/dist/components/RoomView/useRoomToolbar.d.ts +5 -0
- package/dist/components/RoomView/useRoomToolbar.js +36 -0
- package/dist/components/RoomView/useRoomView.d.ts +13 -0
- package/dist/components/RoomView/useRoomView.js +40 -0
- package/dist/components/RoomView/useStreamItemDimensions.d.ts +30 -0
- package/dist/components/RoomView/useStreamItemDimensions.js +57 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.js +162 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.vue.d.ts +39 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +113 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.vue.d.ts +31 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +281 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.vue.d.ts +23 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.js +110 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.vue.d.ts +16 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +385 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.vue.d.ts +40 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +345 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.vue.d.ts +8 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.js +65 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.d.ts +4 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.js +6 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/index.d.ts +34 -0
- package/dist/components/ScheduleRoomPanel/index.js +12 -0
- package/dist/components/ScheduleRoomPanel/type.d.ts +7 -0
- package/dist/components/ScheduleRoomPanel/type.js +1 -0
- package/dist/components/ScheduleRoomPanel/utils.d.ts +46 -0
- package/dist/components/ScheduleRoomPanel/utils.js +123 -0
- package/dist/components/Search/Search.vue.d.ts +12 -12
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/Search/index.d.ts +18 -18
- package/dist/components/StreamMixer/LocalMixer/index.js +25 -22
- package/dist/components/StreamMixer/index.d.ts +1 -2
- package/dist/components/StreamMixer/index.js +9 -8
- package/dist/components/StreamView/Layout/CustomLayout.js +53 -53
- package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/GridLayout.js +47 -51
- package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/MeetingLayout.js +10 -10
- package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
- package/dist/components/StreamView/index.d.ts +90 -3
- package/dist/components/StreamView/index.js +4 -4
- package/dist/components/StreamView/index.vue.d.ts +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +9 -9
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +2 -0
- package/dist/components/UIKitModal/index.js +6 -0
- package/dist/components/UIKitModal/index.vue.d.ts +45 -0
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/index.d.ts +6 -0
- package/dist/components/UIKitModal/useRoomModal/index.js +11 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.d.ts +21 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.js +79 -0
- package/dist/components/UserList/AllUserActions/indexH5.js +21 -21
- package/dist/components/UserList/AllUserActions/useIndexHooks.d.ts +0 -2
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +24 -25
- package/dist/components/UserList/UserItem/UserInfo/index.js +19 -19
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +6 -7
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -44
- package/dist/components/VideoSetting/VideoPreview.js +24 -25
- package/dist/components/VideoSetting/VideoProfile.js +22 -23
- package/dist/components/VideoSetting/VideoSettingTab.js +24 -24
- package/dist/components/VideoSetting/index.js +32 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +28 -25
- package/dist/components/VideoSettingPanel/VideoPreview.js +13 -13
- package/dist/components/VideoSettingPanel/VideoProfile.js +27 -27
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +13 -10
- package/dist/components/VideoSettingPanel/index.d.ts +9 -0
- package/dist/components/VideoSettingPanel/index.js +56 -44
- package/dist/components/VideoSettingPanel/index.vue.d.ts +9 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +169 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue.d.ts +33 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.d.ts +4 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.js +6 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/index.d.ts +20 -0
- package/dist/components/VirtualBackgroundPanel/index.js +10 -0
- package/dist/hooks/useRoomActions/index.d.ts +1 -1
- package/dist/hooks/useRoomActions/index.js +10 -11
- package/dist/hooks/useRoomActions/useRoomAudioAction.d.ts +1 -3
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +30 -31
- package/dist/hooks/useRoomActions/useRoomScreenAction.d.ts +0 -2
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +20 -20
- package/dist/hooks/useRoomActions/useRoomVideoAction.d.ts +1 -8
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +26 -28
- package/dist/hooks/useRoomEngine.d.ts +2 -2
- package/dist/hooks/useUserActions/index.d.ts +7 -23
- package/dist/hooks/useUserActions/index.js +11 -11
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +1 -9
- package/dist/hooks/useUserActions/useKickUserAction.d.ts +1 -9
- package/dist/hooks/useUserActions/useSeatAction.d.ts +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +3 -3
- package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +2 -10
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +22 -20
- package/dist/hooks/useUserActions/useVideoAction.d.ts +1 -9
- package/dist/index-7vNB_Vx8.js +64 -0
- package/dist/{index-BfIEeWMg.js → index-Do-2CngU.js} +1894 -1759
- package/dist/{index-DTi1fL-x.js → index-ZILx4LYk.js} +1210 -1512
- package/dist/index.d.ts +3 -6
- package/dist/index.js +255 -194
- package/dist/report/MetricsKey.d.ts +27 -14
- package/dist/report/MetricsKey.js +1 -1
- package/dist/report/dataReport.js +12 -8
- package/dist/states/ASRState/ASRState.d.ts +61 -0
- package/dist/states/ASRState/ASRState.js +79 -0
- package/dist/states/ASRState/index.d.ts +1 -0
- package/dist/states/ASRState/index.js +4 -0
- package/dist/states/BarrageState/BarrageState.d.ts +70 -44
- package/dist/states/BarrageState/BarrageState.js +29 -31
- package/dist/states/BarrageState/index.js +2 -3
- package/dist/states/BattleState/BattleState.d.ts +101 -5
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +107 -0
- package/dist/states/CoGuestState.d.ts +53 -1
- package/dist/states/CoGuestState.js +15 -15
- package/dist/states/CoHostState/CoHostState.d.ts +120 -0
- package/dist/states/ContactListState/ContactListState.d.ts +56 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +36 -0
- package/dist/states/DeviceState/DeviceState.d.ts +68 -10
- package/dist/states/DeviceState/DeviceState.js +233 -189
- package/dist/states/DeviceState/mediaAbality.d.ts +2 -0
- package/dist/states/DeviceState/mediaAbality.js +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.js +103 -0
- package/dist/states/FreeBeautyState/index.d.ts +1 -0
- package/dist/states/FreeBeautyState/index.js +4 -0
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +59 -0
- package/dist/states/LiveAudienceState.d.ts +42 -4
- package/dist/states/LiveListState/LiveListState.d.ts +2 -2
- package/dist/states/LiveListState/LiveListState.js +5 -5
- package/dist/states/LiveMonitorState/index.d.ts +42 -0
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +58 -8
- package/dist/states/LiveSeatState/index.js +20 -18
- package/dist/states/LiveSeatState/seatManager.d.ts +293 -6
- package/dist/states/LiveSeatState/seatManager.js +283 -0
- package/dist/states/LiveSeatState/store.d.ts +0 -2
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +13 -13
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +7 -7
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +4 -7
- package/dist/states/LiveSeatState/usePlayStream/index.js +65 -54
- package/dist/states/LoginState.d.ts +45 -0
- package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
- package/dist/states/MessageActionState/MessageActionState.js +142 -22
- package/dist/states/MessageListState/MessageListState.d.ts +39 -0
- package/dist/states/RoomParticipantState/callEventManager.d.ts +10 -0
- package/dist/states/RoomParticipantState/callEventManager.js +49 -0
- package/dist/states/RoomParticipantState/common.d.ts +14 -0
- package/dist/states/RoomParticipantState/common.js +76 -0
- package/dist/states/RoomParticipantState/index.d.ts +4 -0
- package/dist/states/RoomParticipantState/index.js +93 -0
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +66 -0
- package/dist/states/RoomParticipantState/participantEventManager.js +326 -0
- package/dist/states/RoomParticipantState/participantManager.d.ts +311 -0
- package/dist/states/RoomParticipantState/participantManager.js +440 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.d.ts +7 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.js +37 -0
- package/dist/states/RoomParticipantState/store.d.ts +38 -0
- package/dist/states/RoomParticipantState/store.js +102 -0
- package/dist/states/RoomState/callManager.d.ts +43 -0
- package/dist/states/RoomState/callManager.js +208 -0
- package/dist/states/RoomState/common.d.ts +25 -0
- package/dist/states/RoomState/common.js +101 -0
- package/dist/states/RoomState/index.d.ts +8 -0
- package/dist/states/RoomState/index.js +52 -0
- package/dist/states/RoomState/roomManager.d.ts +35 -0
- package/dist/states/RoomState/roomManager.js +129 -0
- package/dist/states/RoomState/scheduleManager.d.ts +48 -0
- package/dist/states/RoomState/scheduleManager.js +174 -0
- package/dist/states/RoomState/store.d.ts +103 -0
- package/dist/states/RoomState/store.js +12 -0
- package/dist/states/SearchState.d.ts +47 -0
- package/dist/states/SeatStore.d.ts +59 -52
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/UserState/index.js +22 -28
- package/dist/states/UserState/store.d.ts +1 -1
- package/dist/states/UserState/store.js +55 -62
- package/dist/states/UserState/userManager.d.ts +2 -2
- package/dist/states/UserState/userManager.js +23 -25
- package/dist/states/VideoMixerState/VideoMixerState.d.ts +57 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +91 -90
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +2 -1
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +52 -0
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +99 -0
- package/dist/states/VirtualBackgroundState/index.d.ts +1 -0
- package/dist/states/VirtualBackgroundState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/common/base.d.ts +5 -0
- package/dist/subEntry/common/base.js +21 -0
- package/dist/subEntry/common/index.d.ts +2 -0
- package/dist/subEntry/common/index.js +29 -0
- package/dist/subEntry/common/rtc.d.ts +4 -0
- package/dist/subEntry/common/rtc.js +10 -0
- package/dist/subEntry/live/index.d.ts +4 -0
- package/dist/subEntry/live/index.js +200 -0
- package/dist/subEntry/live/live.d.ts +21 -0
- package/dist/subEntry/live/live.js +45 -0
- package/dist/{rtc → subEntry/live}/server.d.ts +1 -1
- package/dist/{rtc → subEntry/live}/server.js +4 -4
- package/dist/subEntry/room/index.d.ts +4 -0
- package/dist/subEntry/room/index.js +180 -0
- package/dist/subEntry/room/room.d.ts +11 -0
- package/dist/subEntry/room/room.js +25 -0
- package/dist/subEntry/room/server.d.ts +19 -0
- package/dist/subEntry/room/server.js +97 -0
- package/dist/types/asr.d.ts +29 -0
- package/dist/types/asr.js +4 -0
- package/dist/types/barrage.d.ts +83 -0
- package/dist/types/barrage.js +4 -0
- package/dist/types/beauty.d.ts +9 -0
- package/dist/types/beauty.js +4 -0
- package/dist/types/device.d.ts +0 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.js +125 -108
- package/dist/types/participant.d.ts +243 -0
- package/dist/types/participant.js +10 -0
- package/dist/types/room.d.ts +202 -55
- package/dist/types/room.js +5 -3
- package/dist/types/virtualBackground.d.ts +14 -0
- package/dist/types/virtualBackground.js +5 -0
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/compare.d.ts +10 -0
- package/dist/utils/compare.js +12 -0
- package/package.json +11 -7
- package/src/baseComp/AudioIcon.vue +11 -3
- package/src/components/AudioSetting/AudioMediaControl.vue +10 -9
- package/src/components/AudioSetting/AudioRequestDialog.vue +11 -11
- package/src/components/AudioSetting/AudioSettingTab.vue +14 -14
- package/src/components/AudioSetting/MicrophoneSelect.vue +11 -11
- package/src/components/AudioSetting/SpeakerSelect.vue +10 -11
- package/src/components/AudioSetting/index.ts +1 -1
- package/src/components/AudioSetting/index.vue +4 -7
- package/src/components/AudioSettingPanel/MicrophoneSelect.vue +77 -0
- package/src/components/AudioSettingPanel/SpeakerSelect.vue +78 -0
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +12 -6
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +12 -6
- package/src/components/AudioSettingPanel/index.ts +3 -1
- package/src/components/AudioSettingPanel/index.vue +150 -122
- package/src/components/BarrageList/BarrageList.vue +1 -1
- package/src/components/BarrageList/BarrageListH5.vue +1 -1
- package/src/components/BarrageList/BarrageListState.ts +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -7
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +3 -3
- package/src/components/FreeBeautyPanel/FreeBeautyPanel.vue +618 -0
- package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +16 -0
- package/src/components/FreeBeautyPanel/i18n/index.ts +4 -0
- package/src/components/FreeBeautyPanel/i18n/zh-CN/index.ts +16 -0
- package/src/components/FreeBeautyPanel/index.ts +11 -0
- package/src/components/LiveScenePanel/index.ts +4 -1
- package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +29 -26
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -36
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +108 -286
- package/src/components/LiveView/index.ts +2 -1
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
- package/src/components/MessageInput/MessageInput.vue +2 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +13 -26
- package/src/components/MessageInput/TextEditor/TextEditor.vue +23 -2
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +4 -2
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/i18n/en-US.ts +66 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +66 -0
- package/src/components/RoomParticipantList/ParticipantAction.vue +196 -0
- package/src/components/RoomParticipantList/ParticipantItem.vue +205 -0
- package/src/components/RoomParticipantList/PendingParticipantItem.vue +142 -0
- package/src/components/RoomParticipantList/RoomAction.vue +141 -0
- package/src/components/RoomParticipantList/i18n/en-US/index.ts +74 -0
- package/src/components/RoomParticipantList/i18n/index.ts +2 -0
- package/src/components/RoomParticipantList/i18n/zh-CN/index.ts +74 -0
- package/src/components/RoomParticipantList/index.ts +10 -0
- package/src/components/RoomParticipantList/index.vue +285 -0
- package/src/components/RoomParticipantList/useParticpantAction/index.ts +94 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAdminAction.ts +56 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAudioAction.ts +66 -0
- package/src/components/RoomParticipantList/useParticpantAction/useKickAction.ts +46 -0
- package/src/components/RoomParticipantList/useParticpantAction/useMessageAction.ts +42 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue +51 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.ts +80 -0
- package/src/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.ts +77 -0
- package/src/components/RoomParticipantList/useParticpantAction/useVideoAction.ts +59 -0
- package/src/components/RoomParticipantList/useRoomAction/index.ts +23 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomAudioAction.ts +67 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomScreenAction.ts +69 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomVideoAction.ts +66 -0
- package/src/components/RoomParticipantView/StreamPlay.vue +127 -0
- package/src/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.ts +174 -0
- package/src/components/RoomParticipantView/StreamPlayManager/README.md +768 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.ts +209 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamPlayer.ts +183 -0
- package/src/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.ts +357 -0
- package/src/components/RoomParticipantView/StreamPlayManager/index.ts +501 -0
- package/src/components/RoomParticipantView/StreamPlayManager/types.ts +13 -0
- package/src/components/RoomParticipantView/index.ts +5 -0
- package/src/components/RoomParticipantView/index.vue +43 -0
- package/src/components/RoomView/ArrowStroke.vue +265 -0
- package/src/components/RoomView/GridLayout.vue +236 -0
- package/src/components/RoomView/SpeakerLayout.vue +400 -0
- package/src/components/RoomView/index.ts +5 -0
- package/src/components/RoomView/index.vue +58 -0
- package/src/components/RoomView/useRoomToolbar.ts +97 -0
- package/src/components/RoomView/useRoomView.ts +48 -0
- package/src/components/RoomView/useStreamItemDimensions.ts +162 -0
- package/src/components/ScheduleRoomPanel/Datepicker.vue +332 -0
- package/src/components/ScheduleRoomPanel/DurationSelector.vue +92 -0
- package/src/components/ScheduleRoomPanel/RoomDetail.vue +240 -0
- package/src/components/ScheduleRoomPanel/RoomEdit.vue +473 -0
- package/src/components/ScheduleRoomPanel/RoomShare.vue +216 -0
- package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +625 -0
- package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +622 -0
- package/src/components/ScheduleRoomPanel/Timepicker.vue +86 -0
- package/src/components/ScheduleRoomPanel/TimezoneSelector.vue +70 -0
- package/src/components/ScheduleRoomPanel/i18n/en-US/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/i18n/index.ts +4 -0
- package/src/components/ScheduleRoomPanel/i18n/zh-CN/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/index.ts +14 -0
- package/src/components/ScheduleRoomPanel/type.ts +7 -0
- package/src/components/ScheduleRoomPanel/utils.ts +281 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -1
- package/src/components/StreamMixer/index.ts +4 -1
- package/src/components/StreamView/Layout/CustomLayout.vue +40 -36
- package/src/components/StreamView/Layout/GridLayout.vue +31 -40
- package/src/components/StreamView/Layout/MeetingLayout.vue +34 -35
- package/src/components/StreamView/index.ts +5 -3
- package/src/components/StreamView/manager/mediaManager.ts +1 -2
- package/src/components/UIKitModal/UIKitModal.ts +71 -0
- package/src/components/UIKitModal/index.scss +134 -0
- package/src/components/UIKitModal/index.ts +2 -0
- package/src/components/UIKitModal/index.vue +160 -0
- package/src/components/UIKitModal/type.ts +24 -0
- package/src/components/UIKitModal/useRoomModal/i18n/en-US/index.ts +19 -0
- package/src/components/UIKitModal/useRoomModal/i18n/index.ts +4 -0
- package/src/components/UIKitModal/useRoomModal/i18n/zh-CN/index.ts +18 -0
- package/src/components/UIKitModal/useRoomModal/index.ts +11 -0
- package/src/components/UIKitModal/useRoomModal/useRoomModal.ts +103 -0
- package/src/components/UserList/AllUserActions/indexH5.vue +3 -3
- package/src/components/UserList/AllUserActions/useIndexHooks.ts +1 -1
- package/src/components/UserList/UserItem/UserInfo/index.vue +17 -12
- package/src/components/UserPicker/UserPicker.vue +1 -1
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
- package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
- package/src/components/UserPicker/i18n/en-US.ts +1 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
- package/src/components/UserPicker/type.ts +1 -1
- package/src/components/VideoSetting/CameraSelect.vue +11 -11
- package/src/components/VideoSetting/VideoMediaControl.vue +22 -21
- package/src/components/VideoSetting/VideoPreview.vue +14 -8
- package/src/components/VideoSetting/VideoProfile.vue +13 -15
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -9
- package/src/components/VideoSettingPanel/CameraSelect.vue +8 -3
- package/src/components/VideoSettingPanel/VideoPreview.vue +4 -4
- package/src/components/VideoSettingPanel/VideoProfile.vue +6 -6
- package/src/components/VideoSettingPanel/i18n/en-US/index.ts +13 -10
- package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +13 -10
- package/src/components/VideoSettingPanel/index.ts +2 -2
- package/src/components/VideoSettingPanel/index.vue +73 -74
- package/src/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue +337 -0
- package/src/components/VirtualBackgroundPanel/assets/blurred-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/assets/close-virtual-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/i18n/en-US/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/i18n/index.ts +4 -0
- package/src/components/VirtualBackgroundPanel/i18n/zh-CN/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/index.ts +11 -0
- package/src/hooks/useRoomActions/index.ts +3 -2
- package/src/hooks/useRoomActions/useRoomAudioAction.ts +11 -12
- package/src/hooks/useRoomActions/useRoomScreenAction.ts +12 -13
- package/src/hooks/useRoomActions/useRoomVideoAction.ts +10 -13
- package/src/hooks/useRoomEngine.ts +3 -2
- package/src/hooks/useUserActions/index.ts +38 -43
- package/src/hooks/useUserActions/useSeatAction.ts +10 -10
- package/src/hooks/useUserActions/useTransferOwnerAction.ts +10 -10
- package/src/index.ts +7 -9
- package/src/report/MetricsKey.ts +28 -14
- package/src/report/dataReport.ts +13 -9
- package/src/subEntry/common/base.ts +6 -0
- package/src/subEntry/common/index.ts +2 -0
- package/src/subEntry/common/rtc.ts +5 -0
- package/src/subEntry/live/index.ts +8 -0
- package/src/subEntry/live/live.ts +23 -0
- package/src/{rtc → subEntry/live}/server.ts +3 -3
- package/src/subEntry/room/index.ts +8 -0
- package/src/subEntry/room/room.ts +12 -0
- package/src/subEntry/room/server.ts +123 -0
- package/src/types/asr.ts +31 -0
- package/src/types/barrage.ts +86 -0
- package/src/types/beauty.ts +10 -0
- package/src/types/device.ts +3 -5
- package/src/types/index.ts +9 -3
- package/src/types/participant.ts +155 -0
- package/src/types/room.ts +122 -57
- package/src/types/user.ts +2 -0
- package/src/types/virtualBackground.ts +17 -0
- package/src/utils/call.ts +25 -26
- package/src/utils/compare.ts +34 -0
- package/tsconfig.eslint.json +15 -0
- package/tsconfig.json +7 -1
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +0 -89
- package/dist/index-DTq2ybsB.js +0 -33
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +0 -32
- package/dist/rtc/index.d.ts +0 -501
- package/dist/rtc/index.js +0 -67
- package/dist/states/RoomState.d.ts +0 -173
- package/dist/states/RoomState.js +0 -272
- package/src/rtc/index.ts +0 -100
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@tencentcloud/uikit-base-component-vue3/src/providers/UIKitProvider/styles/variables.scss" as *;
|
|
3
|
-
|
|
4
1
|
.SearchUserAdvanced {
|
|
5
2
|
padding: 10px 20px;
|
|
6
3
|
background-color: var(--bg-color-operate);
|
|
@@ -306,4 +303,4 @@
|
|
|
306
303
|
cursor: pointer;
|
|
307
304
|
background: var(--text-color-link);
|
|
308
305
|
color: #fff;
|
|
309
|
-
}
|
|
306
|
+
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@tencentcloud/uikit-base-component-vue3/src/providers/UIKitProvider/styles/variables.scss" as *;
|
|
3
|
-
|
|
4
1
|
.SearchBar {
|
|
5
2
|
display: flex;
|
|
6
3
|
align-items: center;
|
|
@@ -27,7 +24,7 @@
|
|
|
27
24
|
|
|
28
25
|
.tui-input {
|
|
29
26
|
width: 100%;
|
|
30
|
-
|
|
27
|
+
|
|
31
28
|
.tui-input__native-input {
|
|
32
29
|
height: 40px;
|
|
33
30
|
padding: 8px 12px 8px 40px;
|
|
@@ -91,7 +88,7 @@
|
|
|
91
88
|
|
|
92
89
|
.clearIcon {
|
|
93
90
|
color: var(--text-color-disabled);
|
|
94
|
-
|
|
91
|
+
|
|
95
92
|
&:hover {
|
|
96
93
|
color: var(--text-color-secondary);
|
|
97
94
|
}
|
|
@@ -117,4 +114,4 @@
|
|
|
117
114
|
&--h5 {
|
|
118
115
|
padding: 10px;
|
|
119
116
|
}
|
|
120
|
-
}
|
|
117
|
+
}
|
|
@@ -210,8 +210,13 @@ const re = new ResizeObserver(() => {
|
|
|
210
210
|
onMounted(() => {
|
|
211
211
|
re.observe(localMixerRef.value);
|
|
212
212
|
TUIRoomEngine.once('ready', async () => {
|
|
213
|
+
const mixerView = document.getElementById('local-video-mixer');
|
|
214
|
+
if (!mixerView) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
213
218
|
const mediaSourceManager = roomEngine.instance?.getTRTCCloud().getMediaMixingManager();
|
|
214
|
-
await mediaSourceManager.bindPreviewArea(
|
|
219
|
+
await mediaSourceManager.bindPreviewArea(mixerView as HTMLElement);
|
|
215
220
|
getMixControlStyle();
|
|
216
221
|
});
|
|
217
222
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import StreamMixer from './index.vue';
|
|
2
1
|
import { addI18n } from '../../i18n';
|
|
3
2
|
import { enUSResource, zhCNResource } from './i18n';
|
|
3
|
+
import StreamMixerComp from './index.vue';
|
|
4
|
+
|
|
4
5
|
addI18n('en-US', { translation: enUSResource });
|
|
5
6
|
addI18n('zh-CN', { translation: zhCNResource });
|
|
6
7
|
|
|
8
|
+
const StreamMixer = StreamMixerComp;
|
|
9
|
+
|
|
7
10
|
export { StreamMixer };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="custom-layout-container"
|
|
3
|
-
<div
|
|
2
|
+
<div ref="streamListContainerRef" class="custom-layout-container">
|
|
3
|
+
<div
|
|
4
|
+
ref="streamListRef"
|
|
5
|
+
class="stream-list"
|
|
6
|
+
:style="streamListStyle"
|
|
7
|
+
>
|
|
4
8
|
<StreamRegion
|
|
5
9
|
v-for="(renderUserInfo, index) in renderUserInfoList"
|
|
6
|
-
class="stream-list-item"
|
|
7
10
|
:key="`${renderUserInfo.userInfo.userId}_${renderUserInfo.streamType}`"
|
|
11
|
+
class="stream-list-item"
|
|
8
12
|
:userInfo="renderUserInfo.userInfo"
|
|
9
13
|
:stream-type="renderUserInfo.streamType"
|
|
10
14
|
:style="getStreamStyle(index)"
|
|
@@ -12,7 +16,7 @@
|
|
|
12
16
|
@stream-view-dblclick="handleStreamDblClick"
|
|
13
17
|
>
|
|
14
18
|
<template #streamViewUI="slotProps">
|
|
15
|
-
<slot name="streamViewUI" v-bind="slotProps"
|
|
19
|
+
<slot name="streamViewUI" v-bind="slotProps" />
|
|
16
20
|
</template>
|
|
17
21
|
</StreamRegion>
|
|
18
22
|
</div>
|
|
@@ -22,13 +26,13 @@
|
|
|
22
26
|
<script setup lang="ts">
|
|
23
27
|
import { defineProps, ref, computed, onMounted, onBeforeUnmount, defineEmits, watch, withDefaults } from 'vue';
|
|
24
28
|
import type { Ref, ComputedRef } from 'vue';
|
|
25
|
-
import StreamRegion from '../common/StreamRegion';
|
|
26
|
-
import { UserInfo } from '../../../types';
|
|
27
|
-
import useUserState from '../../../states/UserState/index';
|
|
28
29
|
import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
|
|
29
|
-
import { useRoomState } from '../../../states/RoomState';
|
|
30
|
-
import useLoginState from '../../../states/LoginState';
|
|
31
30
|
import { useLiveListState } from '../../../states/LiveListState';
|
|
31
|
+
import useLoginState from '../../../states/LoginState';
|
|
32
|
+
import { useRoomState } from '../../../states/RoomState';
|
|
33
|
+
import useUserState from '../../../states/UserState/index';
|
|
34
|
+
import StreamRegion from '../common/StreamRegion';
|
|
35
|
+
import type { UserInfo } from '../../../types';
|
|
32
36
|
|
|
33
37
|
const { userList, localUser, userListOnSeat } = useUserState();
|
|
34
38
|
const { currentRoom } = useRoomState();
|
|
@@ -98,17 +102,17 @@ const renderUserInfoList: ComputedRef<{ userInfo: UserInfo; streamType: TUIVideo
|
|
|
98
102
|
// }
|
|
99
103
|
// return videoUserList;
|
|
100
104
|
|
|
101
|
-
if (!totalUserList.value || totalUserList.value.length === 0)
|
|
105
|
+
if (!totalUserList.value || totalUserList.value.length === 0) {
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
102
108
|
|
|
103
109
|
return totalUserList.value
|
|
104
110
|
?.filter(props.filterFn)
|
|
105
111
|
.sort(props.sortFn)
|
|
106
|
-
.map(item => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
+
.map(item => ({
|
|
113
|
+
userInfo: item,
|
|
114
|
+
streamType: TUIVideoStreamType.kCameraStream,
|
|
115
|
+
}));
|
|
112
116
|
});
|
|
113
117
|
|
|
114
118
|
const streamListContainerRef = ref();
|
|
@@ -116,9 +120,7 @@ const streamListRef = ref();
|
|
|
116
120
|
|
|
117
121
|
// ------------ 处理 layout 布局 START ------------
|
|
118
122
|
|
|
119
|
-
const aspectRatio = computed(() =>
|
|
120
|
-
return '16:9';
|
|
121
|
-
});
|
|
123
|
+
const aspectRatio = computed(() => '16:9');
|
|
122
124
|
|
|
123
125
|
// Single video stream window margin size
|
|
124
126
|
// 根据 streamView 的父亲元素 A 大小获取一个流布局的容器 B,容器 B 符合 aspectRatio 比例
|
|
@@ -135,20 +137,20 @@ const originStreamListStyle: Ref<Record<string, any>> = ref({
|
|
|
135
137
|
scale: 1,
|
|
136
138
|
});
|
|
137
139
|
|
|
138
|
-
const streamListStyle = computed(() => {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
};
|
|
146
|
-
});
|
|
140
|
+
const streamListStyle = computed(() => ({
|
|
141
|
+
width: `${originStreamListStyle.value.width * originStreamListStyle.value.scale}px`,
|
|
142
|
+
height: `${originStreamListStyle.value.height * originStreamListStyle.value.scale}px`,
|
|
143
|
+
transform: `translate(${originStreamListStyle.value.transformX * originStreamListStyle.value.scale}px, ${
|
|
144
|
+
originStreamListStyle.value.transformY * originStreamListStyle.value.scale
|
|
145
|
+
}px)`,
|
|
146
|
+
}));
|
|
147
147
|
|
|
148
148
|
const customConfig = computed(() => {
|
|
149
149
|
const { layoutList } = JSON.parse(props.config);
|
|
150
|
-
if (!layoutList)
|
|
151
|
-
|
|
150
|
+
if (!layoutList) {
|
|
151
|
+
return [];
|
|
152
|
+
}
|
|
153
|
+
const absoluteLayoutList = layoutList.map((item) => {
|
|
152
154
|
if (item.width > 1 || item.height > 1) {
|
|
153
155
|
return {
|
|
154
156
|
left: stringToNumber(originStreamListStyle.value.width) * (item.x / 720),
|
|
@@ -200,10 +202,10 @@ function handleStreamListTransform() {
|
|
|
200
202
|
const scaleHeight = containerHeight / streamContainerSize.value.height;
|
|
201
203
|
originStreamListStyle.value.scale = Math.min(scaleWidth, scaleHeight);
|
|
202
204
|
|
|
203
|
-
originStreamListStyle.value.transformX
|
|
204
|
-
stringToNumber(originStreamListStyle.value.width) / 2 - streamContainerSize.value.centerX;
|
|
205
|
-
originStreamListStyle.value.transformY
|
|
206
|
-
stringToNumber(originStreamListStyle.value.height) / 2 - streamContainerSize.value.centerY;
|
|
205
|
+
originStreamListStyle.value.transformX
|
|
206
|
+
= stringToNumber(originStreamListStyle.value.width) / 2 - streamContainerSize.value.centerX;
|
|
207
|
+
originStreamListStyle.value.transformY
|
|
208
|
+
= stringToNumber(originStreamListStyle.value.height) / 2 - streamContainerSize.value.centerY;
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
const widthRatio: ComputedRef<number> = computed(() => {
|
|
@@ -252,7 +254,9 @@ function stringToNumber(str: string) {
|
|
|
252
254
|
|
|
253
255
|
function getStreamStyle(index: number) {
|
|
254
256
|
const streamLayoutConfig = JSON.parse(props.config).layoutList[index];
|
|
255
|
-
if (!streamLayoutConfig)
|
|
257
|
+
if (!streamLayoutConfig) {
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
256
260
|
// Todo: 暂时兼容绝对值和百分比,后续需要统一
|
|
257
261
|
if (streamLayoutConfig?.width > 1) {
|
|
258
262
|
return {
|
|
@@ -281,7 +285,7 @@ watch(
|
|
|
281
285
|
() => currentLive.value?.layoutTemplate,
|
|
282
286
|
() => {
|
|
283
287
|
handleLayout();
|
|
284
|
-
}
|
|
288
|
+
},
|
|
285
289
|
);
|
|
286
290
|
|
|
287
291
|
const resizeObserver = new ResizeObserver(() => {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
}"
|
|
9
9
|
>
|
|
10
10
|
<div
|
|
11
|
-
class="stream-list"
|
|
12
11
|
ref="streamListRef"
|
|
12
|
+
class="stream-list"
|
|
13
13
|
:style="streamListStyle"
|
|
14
14
|
@wheel="handleWheel"
|
|
15
15
|
>
|
|
16
16
|
<StreamRegion
|
|
17
17
|
v-for="renderUserInfo in renderUserInfoList"
|
|
18
|
-
class="stream-list-item"
|
|
19
18
|
:key="`${renderUserInfo.userInfo.userId}_${renderUserInfo.streamType}`"
|
|
19
|
+
class="stream-list-item"
|
|
20
20
|
:userInfo="renderUserInfo.userInfo"
|
|
21
21
|
:stream-type="renderUserInfo.streamType"
|
|
22
22
|
:style="streamStyle"
|
|
@@ -42,23 +42,22 @@ import {
|
|
|
42
42
|
nextTick,
|
|
43
43
|
} from 'vue';
|
|
44
44
|
import type { Ref, ComputedRef } from 'vue';
|
|
45
|
-
import StreamRegion from '../common/StreamRegion';
|
|
46
|
-
import { getContentSize } from '../../../utils/domOperation';
|
|
47
|
-
import { UserInfo, LocalRoomStatus } from '../../../types';
|
|
48
|
-
import useUserState from '../../../states/UserState/index';
|
|
49
45
|
import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
|
|
50
|
-
import { safelyParse } from '../../../utils/utils';
|
|
51
|
-
import { useRoomState } from '../../../states/RoomState';
|
|
52
46
|
import { useDeviceState } from '../../../states/DeviceState';
|
|
53
47
|
import useLoginState from '../../../states/LoginState';
|
|
48
|
+
import { useRoomState } from '../../../states/RoomState';
|
|
49
|
+
import useUserState from '../../../states/UserState/index';
|
|
54
50
|
import { getNewUserInfo } from '../../../states/UserState/store';
|
|
51
|
+
import { getContentSize } from '../../../utils/domOperation';
|
|
52
|
+
import { safelyParse } from '../../../utils/utils';
|
|
53
|
+
import StreamRegion from '../common/StreamRegion';
|
|
54
|
+
import type { UserInfo } from '../../../types';
|
|
55
55
|
|
|
56
56
|
const { userList, userListOnSeat, userWithScreenOn } = useUserState();
|
|
57
57
|
const { microphoneStatus, cameraStatus } = useDeviceState();
|
|
58
|
-
const { currentRoom
|
|
58
|
+
const { currentRoom } = useRoomState();
|
|
59
59
|
const { loginUserInfo } = useLoginState();
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
const emits = defineEmits(['stream-view-dblclick']);
|
|
63
62
|
|
|
64
63
|
interface Props {
|
|
@@ -75,16 +74,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
75
74
|
columnSpacing: 8,
|
|
76
75
|
})),
|
|
77
76
|
filterFn: () => true,
|
|
78
|
-
sortFn: () => 0
|
|
77
|
+
sortFn: () => 0,
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
const gridConfig = computed(() => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
columnSpacing: 8,
|
|
87
|
-
};
|
|
80
|
+
const gridConfig = computed(() => safelyParse(props.config) || {
|
|
81
|
+
maxRows: 3,
|
|
82
|
+
maxColumns: 3,
|
|
83
|
+
rowSpacing: 8,
|
|
84
|
+
columnSpacing: 8,
|
|
88
85
|
});
|
|
89
86
|
|
|
90
87
|
const localFakeUser = computed(() => {
|
|
@@ -92,26 +89,24 @@ const localFakeUser = computed(() => {
|
|
|
92
89
|
localUser.cameraStatus = cameraStatus.value;
|
|
93
90
|
localUser.microphoneStatus = microphoneStatus.value;
|
|
94
91
|
return localUser;
|
|
95
|
-
})
|
|
92
|
+
});
|
|
96
93
|
|
|
97
94
|
const totalUserList = computed(() => {
|
|
98
95
|
if (!currentRoom.value && localRoomStatus.value === LocalRoomStatus.IDLE) {
|
|
99
|
-
return [localFakeUser.value]
|
|
96
|
+
return [localFakeUser.value];
|
|
100
97
|
}
|
|
101
98
|
return currentRoom.value?.isSeatEnabled ? userListOnSeat.value : userList.value;
|
|
102
99
|
});
|
|
103
100
|
|
|
104
|
-
const renderUserInfoList: ComputedRef<({ userInfo: UserInfo
|
|
105
|
-
const videoUserList = totalUserList.value.filter(props.filterFn).map(item => {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
});
|
|
101
|
+
const renderUserInfoList: ComputedRef<({ userInfo: UserInfo; streamType: TUIVideoStreamType })[]> = computed(() => {
|
|
102
|
+
const videoUserList = totalUserList.value.filter(props.filterFn).map(item => ({
|
|
103
|
+
userInfo: item,
|
|
104
|
+
streamType: TUIVideoStreamType.kCameraStream,
|
|
105
|
+
}));
|
|
111
106
|
if (userWithScreenOn.value && [userWithScreenOn.value].filter(props.filterFn).length > 0) {
|
|
112
107
|
videoUserList.unshift({
|
|
113
108
|
userInfo: userWithScreenOn.value,
|
|
114
|
-
streamType: TUIVideoStreamType.kScreenStream
|
|
109
|
+
streamType: TUIVideoStreamType.kScreenStream,
|
|
115
110
|
});
|
|
116
111
|
}
|
|
117
112
|
return videoUserList;
|
|
@@ -123,7 +118,7 @@ const column = computed(() => {
|
|
|
123
118
|
}
|
|
124
119
|
return Math.min(
|
|
125
120
|
Math.ceil(Math.sqrt(renderUserInfoList.value.length)),
|
|
126
|
-
gridConfig.value.maxColumns
|
|
121
|
+
gridConfig.value.maxColumns,
|
|
127
122
|
);
|
|
128
123
|
});
|
|
129
124
|
const row = computed(() => {
|
|
@@ -132,7 +127,7 @@ const row = computed(() => {
|
|
|
132
127
|
}
|
|
133
128
|
return Math.min(
|
|
134
129
|
Math.ceil(renderUserInfoList.value.length / column.value),
|
|
135
|
-
gridConfig.value.maxRows
|
|
130
|
+
gridConfig.value.maxRows,
|
|
136
131
|
);
|
|
137
132
|
});
|
|
138
133
|
|
|
@@ -140,7 +135,7 @@ const streamListContainerRef = ref();
|
|
|
140
135
|
const streamListRef = ref();
|
|
141
136
|
|
|
142
137
|
const isEqualPointsLayout = computed(
|
|
143
|
-
() => gridConfig.value.maxRows !== Infinity && gridConfig.value.maxColumns !== Infinity
|
|
138
|
+
() => gridConfig.value.maxRows !== Infinity && gridConfig.value.maxColumns !== Infinity,
|
|
144
139
|
);
|
|
145
140
|
const isHorizontalInfinityLayout = computed(() => gridConfig.value.maxColumns === Infinity);
|
|
146
141
|
const isVerticalInfinityLayout = computed(() => gridConfig.value.maxRows === Infinity);
|
|
@@ -151,7 +146,7 @@ watch(
|
|
|
151
146
|
await nextTick();
|
|
152
147
|
handleLayout();
|
|
153
148
|
},
|
|
154
|
-
{ immediate: true }
|
|
149
|
+
{ immediate: true },
|
|
155
150
|
);
|
|
156
151
|
|
|
157
152
|
function handleLayout() {
|
|
@@ -165,7 +160,6 @@ function handleLayout() {
|
|
|
165
160
|
}
|
|
166
161
|
if (isEqualPointsLayout.value) {
|
|
167
162
|
handleEqualPointsLayout();
|
|
168
|
-
return;
|
|
169
163
|
}
|
|
170
164
|
}
|
|
171
165
|
|
|
@@ -204,10 +198,10 @@ async function handleEqualPointsLayout() {
|
|
|
204
198
|
const containerWidth = Math.floor(containerRect.width);
|
|
205
199
|
const containerHeight = Math.floor(containerRect.height);
|
|
206
200
|
// Subtract the margin size of a single video stream to ensure that the ratio of width and height is 16:9
|
|
207
|
-
const contentWidth
|
|
208
|
-
(containerWidth - (column.value - 1) * gridConfig.value.columnSpacing) / column.value;
|
|
209
|
-
const contentHeight
|
|
210
|
-
(containerHeight - (row.value - 1) * gridConfig.value.rowSpacing) / row.value;
|
|
201
|
+
const contentWidth
|
|
202
|
+
= (containerWidth - (column.value - 1) * gridConfig.value.columnSpacing) / column.value;
|
|
203
|
+
const contentHeight
|
|
204
|
+
= (containerHeight - (row.value - 1) * gridConfig.value.rowSpacing) / row.value;
|
|
211
205
|
|
|
212
206
|
let width = contentWidth;
|
|
213
207
|
let height = contentHeight;
|
|
@@ -342,6 +336,3 @@ function handleWheel(event: WheelEvent) {
|
|
|
342
336
|
}
|
|
343
337
|
}
|
|
344
338
|
</style>
|
|
345
|
-
../../../states/DeviceState
|
|
346
|
-
../../../states/LoginState
|
|
347
|
-
../../../states/RoomState
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="streamContainer" :class="streamContainerClass">
|
|
3
3
|
<StreamRegion
|
|
4
|
-
class="enlarged-stream-container"
|
|
5
4
|
v-if="enlargeStream"
|
|
5
|
+
class="enlarged-stream-container"
|
|
6
6
|
:user-info="enlargeStream.userInfo"
|
|
7
7
|
:stream-type="enlargeStream.streamType"
|
|
8
8
|
:support-touch-scale="true"
|
|
@@ -36,15 +36,16 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup lang="ts">
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import StreamRegion from '../common/StreamRegion';
|
|
42
|
-
import StreamList from '../common/StreamList/index.vue';
|
|
39
|
+
import type { Ref, ComputedRef } from 'vue';
|
|
40
|
+
import { ref, watch, computed } from 'vue';
|
|
43
41
|
import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
|
|
44
|
-
import { StreamPlayMode, StreamPlayQuality } from '../../../types';
|
|
45
|
-
import useUserState from '../../../states/UserState/index';
|
|
46
42
|
import { useRoomState } from '../../../states/RoomState';
|
|
47
|
-
import
|
|
43
|
+
import useUserState from '../../../states/UserState/index';
|
|
44
|
+
import { StreamPlayMode, StreamPlayQuality, DeviceStatus } from '../../../types';
|
|
45
|
+
import ArrowStroke from '../common/ArrowStroke.vue';
|
|
46
|
+
import StreamList from '../common/StreamList/index.vue';
|
|
47
|
+
import StreamRegion from '../common/StreamRegion';
|
|
48
|
+
import type { UserInfo } from '../../../types';
|
|
48
49
|
|
|
49
50
|
interface VideoStreamInfo {
|
|
50
51
|
userInfo: UserInfo;
|
|
@@ -65,20 +66,20 @@ const localCameraStreamInfo: ComputedRef<VideoStreamInfo | null> = computed(() =
|
|
|
65
66
|
return {
|
|
66
67
|
userInfo: localUser.value,
|
|
67
68
|
streamType: TUIVideoStreamType.kCameraStream,
|
|
68
|
-
}
|
|
69
|
+
};
|
|
69
70
|
}
|
|
70
71
|
return null;
|
|
71
|
-
})
|
|
72
|
+
});
|
|
72
73
|
|
|
73
74
|
const screenStreamInfo: ComputedRef<VideoStreamInfo | null> = computed(() => {
|
|
74
75
|
if (userWithScreenOn.value) {
|
|
75
76
|
return {
|
|
76
77
|
userInfo: userWithScreenOn.value,
|
|
77
78
|
streamType: TUIVideoStreamType.kScreenStream,
|
|
78
|
-
}
|
|
79
|
+
};
|
|
79
80
|
}
|
|
80
81
|
return null;
|
|
81
|
-
})
|
|
82
|
+
});
|
|
82
83
|
|
|
83
84
|
const allStreamInfoList: ComputedRef<VideoStreamInfo[]> = computed(() => {
|
|
84
85
|
let cameraStreamList = [];
|
|
@@ -97,7 +98,7 @@ const allStreamInfoList: ComputedRef<VideoStreamInfo[]> = computed(() => {
|
|
|
97
98
|
return [screenStreamInfo.value, ...cameraStreamList];
|
|
98
99
|
}
|
|
99
100
|
return cameraStreamList;
|
|
100
|
-
})
|
|
101
|
+
});
|
|
101
102
|
|
|
102
103
|
const renderStreamInfoList: ComputedRef<VideoStreamInfo[]> = computed(() => {
|
|
103
104
|
if (props.filterFn) {
|
|
@@ -109,15 +110,15 @@ const renderStreamInfoList: ComputedRef<VideoStreamInfo[]> = computed(() => {
|
|
|
109
110
|
const gridLayoutStreamList: ComputedRef<VideoStreamInfo[]> = computed(() => {
|
|
110
111
|
if (currentLayout.value === LAYOUT.NINE_EQUAL_POINTS) {
|
|
111
112
|
return renderStreamInfoList.value;
|
|
112
|
-
} else {
|
|
113
|
-
if (enlargeStream.value?.streamType === TUIVideoStreamType.kScreenStream || !userWithScreen.value) {
|
|
114
|
-
return renderStreamInfoList.value.filter(stream => stream.streamType !== TUIVideoStreamType.kScreenStream);
|
|
115
|
-
} else if (screenStreamInfo.value) {
|
|
116
|
-
return renderStreamInfoList.value;
|
|
117
|
-
}
|
|
118
113
|
}
|
|
114
|
+
if (enlargeStream.value?.streamType === TUIVideoStreamType.kScreenStream || !userWithScreen.value) {
|
|
115
|
+
return renderStreamInfoList.value.filter(stream => stream.streamType !== TUIVideoStreamType.kScreenStream);
|
|
116
|
+
} if (screenStreamInfo.value) {
|
|
117
|
+
return renderStreamInfoList.value;
|
|
118
|
+
}
|
|
119
|
+
|
|
119
120
|
return [];
|
|
120
|
-
})
|
|
121
|
+
});
|
|
121
122
|
|
|
122
123
|
interface Props {
|
|
123
124
|
config?: string;
|
|
@@ -142,10 +143,10 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
142
143
|
topLayout: {
|
|
143
144
|
maxColumns: 0,
|
|
144
145
|
maxRows: 1,
|
|
145
|
-
}
|
|
146
|
+
},
|
|
146
147
|
})),
|
|
147
148
|
filterFn: (streamInfo: VideoStreamInfo, index: number, list: UserInfo[]) => true,
|
|
148
|
-
sortFn: (streamInfo: VideoStreamInfo, index: number, list: UserInfo[]) => 0
|
|
149
|
+
sortFn: (streamInfo: VideoStreamInfo, index: number, list: UserInfo[]) => 0,
|
|
149
150
|
});
|
|
150
151
|
|
|
151
152
|
const streamListConfig = computed(() => {
|
|
@@ -159,7 +160,7 @@ const streamListConfig = computed(() => {
|
|
|
159
160
|
return JSON.stringify(JSON.parse(props.config).topLayout);
|
|
160
161
|
}
|
|
161
162
|
return JSON.stringify(JSON.parse(props.config).gridLayout);
|
|
162
|
-
})
|
|
163
|
+
});
|
|
163
164
|
|
|
164
165
|
const showControlBar = computed(() => JSON.parse(props.config)?.showControlBar);
|
|
165
166
|
const preferLayout = computed(() => JSON.parse(props.config)?.preferLayout);
|
|
@@ -168,13 +169,12 @@ const currentLayout = ref(preferLayout.value);
|
|
|
168
169
|
|
|
169
170
|
watch(preferLayout, (val) => {
|
|
170
171
|
currentLayout.value = val;
|
|
171
|
-
})
|
|
172
|
-
|
|
172
|
+
});
|
|
173
173
|
|
|
174
174
|
const isSameStream = (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
stream1: VideoStreamInfo | null | undefined,
|
|
176
|
+
stream2: VideoStreamInfo | null | undefined,
|
|
177
|
+
) => getStreamKey(stream1) === getStreamKey(stream2);
|
|
178
178
|
|
|
179
179
|
const getStreamKey = (stream: VideoStreamInfo | null | undefined) =>
|
|
180
180
|
`${stream?.userInfo.userId}_${stream?.streamType}`;
|
|
@@ -188,7 +188,7 @@ const getStreamKey = (stream: VideoStreamInfo | null | undefined) =>
|
|
|
188
188
|
|
|
189
189
|
const isSideListLayout = computed(
|
|
190
190
|
() =>
|
|
191
|
-
[LAYOUT.RIGHT_SIDE_LIST, LAYOUT.TOP_SIDE_LIST].indexOf(currentLayout.value) >= 0
|
|
191
|
+
[LAYOUT.RIGHT_SIDE_LIST, LAYOUT.TOP_SIDE_LIST].indexOf(currentLayout.value) >= 0,
|
|
192
192
|
);
|
|
193
193
|
|
|
194
194
|
const fixedStream: Ref<VideoStreamInfo | null> = ref(null);
|
|
@@ -213,11 +213,11 @@ const enlargeStream = computed(() => {
|
|
|
213
213
|
|
|
214
214
|
watch(
|
|
215
215
|
() => allStreamInfoList.value.length,
|
|
216
|
-
val => {
|
|
216
|
+
(val) => {
|
|
217
217
|
if (val === 1 && isSideListLayout.value) {
|
|
218
218
|
currentLayout.value = LAYOUT.NINE_EQUAL_POINTS;
|
|
219
219
|
}
|
|
220
|
-
}
|
|
220
|
+
},
|
|
221
221
|
);
|
|
222
222
|
|
|
223
223
|
watch(
|
|
@@ -229,7 +229,7 @@ watch(
|
|
|
229
229
|
currentLayout.value = LAYOUT.RIGHT_SIDE_LIST;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
}
|
|
232
|
+
},
|
|
233
233
|
);
|
|
234
234
|
|
|
235
235
|
watch(
|
|
@@ -241,7 +241,7 @@ watch(
|
|
|
241
241
|
fixedStream.value = null;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
}
|
|
244
|
+
},
|
|
245
245
|
);
|
|
246
246
|
|
|
247
247
|
/**
|
|
@@ -281,7 +281,7 @@ watch(
|
|
|
281
281
|
() => {
|
|
282
282
|
handleLayout();
|
|
283
283
|
},
|
|
284
|
-
{ immediate: true }
|
|
284
|
+
{ immediate: true },
|
|
285
285
|
);
|
|
286
286
|
|
|
287
287
|
const showSideList = ref(true);
|
|
@@ -433,4 +433,3 @@ function handleClickIcon() {
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
</style>
|
|
436
|
-
../../../states/RoomState
|
|
@@ -13,14 +13,13 @@ import useRoomEngine from '../../../hooks/useRoomEngine';
|
|
|
13
13
|
import { useLiveListState } from '../../../states/LiveListState';
|
|
14
14
|
import useUserState from '../../../states/UserState/index';
|
|
15
15
|
import { innerUserStore } from '../../../states/UserState/store';
|
|
16
|
-
import { useVideoMixerState } from '../../../states/VideoMixerState';
|
|
16
|
+
import { useVideoMixerState, isVideoMixerEnabled } from '../../../states/VideoMixerState';
|
|
17
17
|
import { DeviceStatus, StreamPlayStatus } from '../../../types';
|
|
18
18
|
import { isMobile } from '../../../utils/environment';
|
|
19
19
|
import type {
|
|
20
20
|
TUIChangeReason } from '@tencentcloud/tuiroom-engine-js';
|
|
21
21
|
|
|
22
22
|
const { localUser } = useUserState();
|
|
23
|
-
const { isVideoMixerEnabled } = useVideoMixerState();
|
|
24
23
|
const roomEngine = useRoomEngine();
|
|
25
24
|
const playDomMap = new Map<string, Map<HTMLElement, TUIVideoStreamType>>();
|
|
26
25
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createApp } from 'vue';
|
|
2
|
+
import { useUIKitModalState } from '../../states/UIKitModalState';
|
|
3
|
+
import UIKitModalComponent from './index.vue';
|
|
4
|
+
import type { UIKitModalOptions } from './type';
|
|
5
|
+
|
|
6
|
+
let instance: any = null;
|
|
7
|
+
|
|
8
|
+
const { openModal: openModalState, closeModal } = useUIKitModalState();
|
|
9
|
+
|
|
10
|
+
const isLocalEnvironment = (): boolean => {
|
|
11
|
+
const host = window.location.hostname;
|
|
12
|
+
const href = window.location.href;
|
|
13
|
+
if (host === 'localhost' || host === '127.0.0.1' || host.startsWith('192.168.')) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
if (href.startsWith('https://web.sdk.qcloud.com/trtc/livekit')) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const cleanup = () => {
|
|
23
|
+
if (instance) {
|
|
24
|
+
instance.unmount();
|
|
25
|
+
instance = null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const createUIKitModal = (options: UIKitModalOptions): Promise<{ action: string }> => new Promise((resolve) => {
|
|
30
|
+
cleanup();
|
|
31
|
+
|
|
32
|
+
openModalState({
|
|
33
|
+
id: options.id,
|
|
34
|
+
title: options.title,
|
|
35
|
+
content: options.content,
|
|
36
|
+
type: options.type,
|
|
37
|
+
onConfirm: options.onConfirm,
|
|
38
|
+
onCancel: options.onCancel,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
if (!isLocalEnvironment()) {
|
|
42
|
+
resolve({ action: 'confirm' });
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const handleAction = (action: 'confirm' | 'cancel') => {
|
|
47
|
+
closeModal(action);
|
|
48
|
+
cleanup();
|
|
49
|
+
resolve({ action });
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const props = {
|
|
53
|
+
...options,
|
|
54
|
+
visible: true,
|
|
55
|
+
onConfirm: () => {
|
|
56
|
+
options.onConfirm?.();
|
|
57
|
+
handleAction('confirm');
|
|
58
|
+
},
|
|
59
|
+
onCancel: () => {
|
|
60
|
+
options.onCancel?.();
|
|
61
|
+
handleAction('cancel');
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
instance = createApp(UIKitModalComponent, props);
|
|
66
|
+
instance.mount(document.createElement('div'));
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export const UIKitModal = {
|
|
70
|
+
openModal: (config: UIKitModalOptions) => createUIKitModal(config),
|
|
71
|
+
};
|