@tencentcloud/roomkit-electron-vue3 2.7.1 → 2.8.1
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/es/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.d.ts +2 -0
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.mjs +67 -0
- package/es/components/Chat/ChatKit/components/TUIChat/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/index.vue2.mjs +23 -10
- package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue2.mjs +14 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue2.mjs +13 -13
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.mjs +2 -2
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue2.mjs +2 -1
- package/es/components/Chat/ChatKit/components/TUIChat/server.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/server.mjs +12 -3
- package/es/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.mjs +2 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.mjs +2 -2
- package/es/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Overlay/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.vue.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/common/Transfer/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Transfer/index.vue2.mjs +3 -3
- package/es/components/Chat/ChatKit/locales/en/TUIChat.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/en/TUIChat.mjs +5 -2
- package/es/components/Chat/ChatKit/locales/en/index.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/en/message.mjs +2 -2
- package/es/components/Chat/ChatKit/locales/index.d.ts +4 -1083
- package/es/components/Chat/ChatKit/locales/index.mjs +3 -1
- package/es/components/Chat/ChatKit/locales/zh_cn/TUIChat.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_cn/TUIChat.mjs +4 -1
- package/es/components/Chat/ChatKit/locales/zh_cn/index.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIChat.d.ts +153 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIChat.mjs +155 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIContact.d.ts +65 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIContact.mjs +67 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIConversation.d.ts +23 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIConversation.mjs +25 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIGroup.d.ts +86 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIGroup.mjs +88 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUISearch.d.ts +40 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUISearch.mjs +42 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/component.d.ts +20 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/component.mjs +22 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/emoji.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/emoji.mjs +4 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/evaluate.d.ts +10 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/evaluate.mjs +12 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/index.d.ts +513 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/index.mjs +39 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/message.d.ts +61 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/message.mjs +63 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/time.d.ts +36 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/time.mjs +38 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/translate.d.ts +163 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/words.d.ts +13 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/words.mjs +15 -0
- package/es/components/Chat/ChatKit/utils/riseInput.d.ts +1 -0
- package/es/components/Chat/ChatKit/utils/riseInput.mjs +45 -0
- package/es/components/Chat/index/index.vue.mjs +1 -1
- package/es/components/Chat/index/index.vue2.mjs +4 -19
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.d.ts +2 -2
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +3 -3
- package/es/components/ManageMember/MemberInvite/MemberInvite.vue2.mjs +1 -1
- package/es/components/PreRoom/PasswordDialog.vue.mjs +1 -1
- package/es/components/PreRoom/PasswordDialog.vue2.mjs +21 -12
- package/es/components/RoomContent/StreamContainer/index.vue.d.ts +1 -14
- package/es/components/RoomContent/StreamContainer/index.vue.mjs +1 -1
- package/es/components/RoomContent/StreamContainer/index.vue2.mjs +111 -262
- package/es/components/RoomContent/StreamContainer/useStreamContainerHooks.d.ts +2 -9
- package/es/components/RoomContent/StreamContainer/useStreamContainerHooks.mjs +11 -0
- package/es/components/RoomContent/index.vue.d.ts +1 -14
- package/es/components/RoomContent/index.vue.mjs +1 -1
- package/es/components/RoomContent/index.vue2.mjs +1 -4
- package/es/components/RoomFooter/AIControl.vue.d.ts +1 -5
- package/es/components/RoomFooter/AIControl.vue.mjs +1 -1
- package/es/components/RoomFooter/AIControl.vue2.mjs +5 -8
- package/es/components/RoomFooter/ApplyControl/MasterApplyControl/index.vue2.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue2.mjs +6 -3
- package/es/components/RoomFooter/ChatControl.vue.mjs +2 -1
- package/es/components/RoomFooter/EndControl/index.vue.mjs +1 -1
- package/es/components/RoomFooter/EndControl/index.vue2.mjs +4 -6
- package/es/components/RoomFooter/EndControl/useEndControlHooks.mjs +8 -12
- package/es/components/RoomFooter/FullScreenControl.vue.mjs +1 -1
- package/es/components/RoomFooter/InviteControl.vue.mjs +1 -1
- package/es/components/RoomFooter/InviteControl.vue2.mjs +2 -1
- package/es/components/RoomFooter/ManageMemberControl.vue.mjs +1 -1
- package/es/components/RoomFooter/MoreControl/index.vue.mjs +1 -1
- package/es/components/RoomFooter/ScreenShareControl/Index.vue.mjs +1 -1
- package/es/components/RoomFooter/ScreenShareControl/Index.vue2.mjs +3 -3
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +5 -2
- package/es/components/RoomFooter/WhiteboardControl.vue.mjs +13 -3
- package/es/components/RoomFooter/index/index.vue.d.ts +1 -5
- package/es/components/RoomFooter/index/index.vue.mjs +1 -1
- package/es/components/RoomFooter/index/index.vue2.mjs +2 -8
- package/es/components/RoomHeader/UserInfo/index.vue.mjs +1 -1
- package/es/components/RoomHeader/UserInfo/index.vue2.mjs +3 -2
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -1
- package/es/components/RoomHeader/index/index.vue.d.ts +1 -5
- package/es/components/RoomHeader/index/index.vue.mjs +1 -1
- package/es/components/RoomHeader/index/index.vue2.mjs +0 -15
- package/es/components/RoomHome/RoomControl/index.vue.d.ts +0 -5
- package/es/components/RoomHome/RoomControl/index.vue.mjs +1 -1
- package/es/components/RoomHome/RoomControl/index.vue2.mjs +1 -2
- package/es/components/RoomInvite/InvitationNotification.vue2.mjs +1 -1
- package/es/components/RoomInvite/useRoomInviteHooks.mjs +2 -2
- package/es/components/RoomOverlay/RoomOverlay.vue.mjs +16 -0
- package/es/components/RoomOverlay/RoomOverlay.vue2.mjs +4 -0
- package/es/components/RoomOverlay/useRoomOverlayHooks.d.ts +15 -0
- package/es/components/RoomOverlay/useRoomOverlayHooks.mjs +30 -0
- package/es/components/RoomSidebar/index.vue.mjs +1 -1
- package/es/components/ScheduleConference/InvitePanel.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleConferencePanel/index.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleConferencePanel/index.vue2.mjs +11 -7
- package/es/components/ScheduleConference/ScheduleRoomControl.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleRoomControl.vue2.mjs +3 -3
- package/es/components/ScheduleConference/ScheduleRoomList.vue2.mjs +2 -2
- package/es/components/ScheduleConference/ShareLink.vue2.mjs +1 -1
- package/es/components/ScheduleConference/TimezonePicker.vue.mjs +1 -1
- package/es/components/Stream/MultiStreamView/index.vue.d.ts +33 -0
- package/es/components/{Chat/MessageList → Stream/MultiStreamView}/index.vue.mjs +2 -2
- package/es/components/Stream/MultiStreamView/index.vue2.mjs +99 -0
- package/es/components/Stream/MultiStreamView/useMultiStreamViewHook.d.ts +17 -0
- package/es/components/Stream/MultiStreamView/useMultiStreamViewHook.mjs +95 -0
- package/es/components/Stream/SingleStreamView/index.vue.d.ts +25 -0
- package/es/components/Stream/SingleStreamView/index.vue.mjs +30 -0
- package/es/components/Stream/SingleStreamView/index.vue2.mjs +4 -0
- package/es/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue.mjs +1 -1
- package/es/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue2.mjs +23 -58
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.mjs +1 -1
- package/es/components/Stream/common/StreamList/index.vue.d.ts +27 -0
- package/es/components/{RoomContent → Stream/common}/StreamList/index.vue.mjs +2 -2
- package/es/components/{RoomContent → Stream/common}/StreamList/index.vue2.mjs +59 -95
- package/{lib/components/RoomContent/StreamRegion → es/components/Stream/common}/StreamPlay/index.vue.d.ts +9 -6
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue.mjs +1 -1
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue2.mjs +17 -12
- package/es/components/Stream/common/StreamRegion/index.vue.d.ts +25 -0
- package/es/components/{RoomContent → Stream/common}/StreamRegion/index.vue.mjs +2 -2
- package/es/components/{RoomContent → Stream/common}/StreamRegion/index.vue2.mjs +24 -27
- package/es/components/common/Language.vue.mjs +1 -1
- package/es/components/common/SwitchTheme.vue.mjs +1 -1
- package/es/components/common/base/Button.vue.d.ts +1 -1
- package/es/components/common/base/Checkbox/index.vue.d.ts +1 -1
- package/es/components/common/base/Dialog/index.vue.d.ts +4 -4
- package/es/components/common/base/IconButton.vue.d.ts +3 -3
- package/es/components/common/base/Input/index.vue.d.ts +4 -4
- package/es/components/common/base/Message/Message.vue.d.ts +4 -4
- package/es/components/common/base/MessageBox/index.vue.d.ts +1 -1
- package/es/components/common/base/Notification/index.vue.d.ts +1 -1
- package/es/components/common/base/Select/index.vue.d.ts +1 -1
- package/es/components/common/base/Select/index.vue2.mjs +1 -1
- package/es/components/common/base/Slider.vue.d.ts +1 -1
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.mjs +8 -7
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue2.mjs +9 -8
- package/es/conference.d.ts +6 -0
- package/es/conference.mjs +7 -1
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +14 -24
- package/es/extension/chatExtension.mjs +1 -1
- package/es/extension/utils/interact.mjs +1 -1
- package/es/extension/utils/setLanguage.mjs +1 -1
- package/es/hooks/useMasterApplyControl.mjs +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +969 -1197
- package/es/locales/en-US.d.ts +2 -1
- package/es/locales/en-US.mjs +3 -2
- package/es/locales/zh-CN.d.ts +2 -1
- package/es/locales/zh-CN.mjs +2 -1
- package/es/preConference.vue.d.ts +5 -0
- package/es/preConference.vue.mjs +1 -1
- package/es/preConference.vue2.mjs +7 -4
- package/es/services/index.d.ts +1 -0
- package/es/services/manager/chatManager.d.ts +0 -2
- package/es/services/manager/chatManager.mjs +6 -12
- package/{lib/services/manager/MediaManager.d.ts → es/services/manager/mediaManager.d.ts} +16 -13
- package/es/services/manager/{MediaManager.mjs → mediaManager.mjs} +110 -113
- package/es/services/manager/roomActionManager.d.ts +3 -0
- package/es/services/manager/roomActionManager.mjs +7 -0
- package/es/services/manager/scheduleConferenceManager.d.ts +1 -0
- package/es/services/manager/scheduleConferenceManager.mjs +24 -1
- package/es/services/manager/trackingManager.d.ts +11 -0
- package/es/services/manager/trackingManager.mjs +20 -0
- package/es/services/manager/userManager.d.ts +11 -1
- package/es/services/manager/userManager.mjs +159 -9
- package/es/services/roomService.d.ts +3 -2
- package/es/services/roomService.mjs +23 -41
- package/es/stores/basic.mjs +6 -1
- package/es/stores/room.d.ts +29 -1
- package/es/stores/room.mjs +49 -59
- package/es/utils/domOperation.d.ts +4 -0
- package/es/utils/domOperation.mjs +17 -23
- package/es/utils/utils.d.ts +11 -0
- package/es/utils/utils.mjs +43 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.d.ts +2 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.js +67 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/index.vue2.js +22 -9
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue2.js +13 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue2.js +13 -13
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue2.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue2.js +1 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/server.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/server.js +12 -3
- package/lib/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.js +2 -1
- package/lib/components/Chat/ChatKit/components/common/BottomPopup/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.js +2 -2
- package/lib/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Overlay/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Toast/index.vue.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/common/Transfer/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Transfer/index.vue2.js +2 -2
- package/lib/components/Chat/ChatKit/locales/en/TUIChat.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/en/TUIChat.js +5 -2
- package/lib/components/Chat/ChatKit/locales/en/index.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/en/message.js +2 -2
- package/lib/components/Chat/ChatKit/locales/index.d.ts +4 -1083
- package/lib/components/Chat/ChatKit/locales/index.js +3 -1
- package/lib/components/Chat/ChatKit/locales/zh_cn/TUIChat.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_cn/TUIChat.js +4 -1
- package/lib/components/Chat/ChatKit/locales/zh_cn/index.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIChat.d.ts +153 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIChat.js +155 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIContact.d.ts +65 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIContact.js +67 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIConversation.d.ts +23 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIConversation.js +25 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIGroup.d.ts +86 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIGroup.js +88 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUISearch.d.ts +40 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUISearch.js +42 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/component.d.ts +20 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/component.js +22 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/emoji.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/emoji.js +4 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/evaluate.d.ts +10 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/evaluate.js +12 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/index.d.ts +513 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/index.js +39 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/message.d.ts +61 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/message.js +63 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/time.d.ts +36 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/time.js +38 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/translate.d.ts +163 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/words.d.ts +13 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/words.js +15 -0
- package/lib/components/Chat/ChatKit/utils/riseInput.d.ts +1 -0
- package/lib/components/Chat/ChatKit/utils/riseInput.js +45 -0
- package/lib/components/Chat/index/index.vue.js +1 -1
- package/lib/components/Chat/index/index.vue2.js +2 -17
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.d.ts +2 -2
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.js +3 -3
- package/lib/components/ManageMember/MemberInvite/MemberInvite.vue2.js +1 -1
- package/lib/components/PreRoom/PasswordDialog.vue.js +1 -1
- package/lib/components/PreRoom/PasswordDialog.vue2.js +20 -11
- package/lib/components/RoomContent/StreamContainer/index.vue.d.ts +1 -14
- package/lib/components/RoomContent/StreamContainer/index.vue.js +1 -1
- package/lib/components/RoomContent/StreamContainer/index.vue2.js +109 -260
- package/lib/components/RoomContent/StreamContainer/useStreamContainerHooks.d.ts +2 -9
- package/lib/components/RoomContent/StreamContainer/useStreamContainerHooks.js +11 -0
- package/lib/components/RoomContent/index.vue.d.ts +1 -14
- package/lib/components/RoomContent/index.vue.js +1 -1
- package/lib/components/RoomContent/index.vue2.js +1 -4
- package/lib/components/RoomFooter/AIControl.vue.d.ts +1 -5
- package/lib/components/RoomFooter/AIControl.vue.js +1 -1
- package/lib/components/RoomFooter/AIControl.vue2.js +5 -8
- package/lib/components/RoomFooter/ApplyControl/MasterApplyControl/index.vue2.js +1 -1
- package/lib/components/RoomFooter/BasicBeauty.vue.js +1 -1
- package/lib/components/RoomFooter/BasicBeauty.vue2.js +6 -3
- package/lib/components/RoomFooter/ChatControl.vue.js +2 -1
- package/lib/components/RoomFooter/EndControl/index.vue.js +1 -1
- package/lib/components/RoomFooter/EndControl/index.vue2.js +4 -6
- package/lib/components/RoomFooter/EndControl/useEndControlHooks.js +8 -12
- package/lib/components/RoomFooter/FullScreenControl.vue.js +1 -1
- package/lib/components/RoomFooter/InviteControl.vue.js +1 -1
- package/lib/components/RoomFooter/InviteControl.vue2.js +2 -1
- package/lib/components/RoomFooter/ManageMemberControl.vue.js +1 -1
- package/lib/components/RoomFooter/MoreControl/index.vue.js +1 -1
- package/lib/components/RoomFooter/ScreenShareControl/Index.vue.js +1 -1
- package/lib/components/RoomFooter/ScreenShareControl/Index.vue2.js +3 -3
- package/lib/components/RoomFooter/VirtualBackground.vue.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue2.js +5 -2
- package/lib/components/RoomFooter/WhiteboardControl.vue.js +13 -3
- package/lib/components/RoomFooter/index/index.vue.d.ts +1 -5
- package/lib/components/RoomFooter/index/index.vue.js +1 -1
- package/lib/components/RoomFooter/index/index.vue2.js +2 -8
- package/lib/components/RoomHeader/UserInfo/index.vue.js +1 -1
- package/lib/components/RoomHeader/UserInfo/index.vue2.js +3 -2
- package/lib/components/RoomHeader/index/LayoutControl.vue2.js +1 -1
- package/lib/components/RoomHeader/index/index.vue.d.ts +1 -5
- package/lib/components/RoomHeader/index/index.vue.js +1 -1
- package/lib/components/RoomHeader/index/index.vue2.js +0 -15
- package/lib/components/RoomHome/RoomControl/index.vue.d.ts +0 -5
- package/lib/components/RoomHome/RoomControl/index.vue.js +1 -1
- package/lib/components/RoomHome/RoomControl/index.vue2.js +1 -2
- package/lib/components/RoomInvite/InvitationNotification.vue2.js +1 -1
- package/lib/components/RoomInvite/useRoomInviteHooks.js +2 -2
- package/lib/components/RoomOverlay/RoomOverlay.vue.js +16 -0
- package/lib/components/RoomOverlay/RoomOverlay.vue2.js +4 -0
- package/lib/components/RoomOverlay/useRoomOverlayHooks.d.ts +15 -0
- package/lib/components/RoomOverlay/useRoomOverlayHooks.js +30 -0
- package/lib/components/RoomSidebar/index.vue.js +1 -1
- package/lib/components/ScheduleConference/InvitePanel.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleConferencePanel/index.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleConferencePanel/index.vue2.js +11 -7
- package/lib/components/ScheduleConference/ScheduleRoomControl.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleRoomControl.vue2.js +3 -3
- package/lib/components/ScheduleConference/ScheduleRoomList.vue2.js +2 -2
- package/lib/components/ScheduleConference/ShareLink.vue2.js +1 -1
- package/lib/components/ScheduleConference/TimezonePicker.vue.js +1 -1
- package/lib/components/Stream/MultiStreamView/index.vue.d.ts +33 -0
- package/lib/components/{Chat/MessageList → Stream/MultiStreamView}/index.vue.js +2 -2
- package/lib/components/Stream/MultiStreamView/index.vue2.js +99 -0
- package/lib/components/Stream/MultiStreamView/useMultiStreamViewHook.d.ts +17 -0
- package/lib/components/Stream/MultiStreamView/useMultiStreamViewHook.js +95 -0
- package/lib/components/Stream/SingleStreamView/index.vue.d.ts +25 -0
- package/lib/components/Stream/SingleStreamView/index.vue.js +30 -0
- package/lib/components/Stream/SingleStreamView/index.vue2.js +4 -0
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue.js +1 -1
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue2.js +22 -57
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.js +1 -1
- package/lib/components/Stream/common/StreamList/index.vue.d.ts +27 -0
- package/lib/components/{RoomContent → Stream/common}/StreamList/index.vue.js +2 -2
- package/lib/components/{RoomContent → Stream/common}/StreamList/index.vue2.js +60 -96
- package/{es/components/RoomContent/StreamRegion → lib/components/Stream/common}/StreamPlay/index.vue.d.ts +9 -6
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue.js +1 -1
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue2.js +21 -16
- package/lib/components/Stream/common/StreamRegion/index.vue.d.ts +25 -0
- package/lib/components/{RoomContent → Stream/common}/StreamRegion/index.vue.js +2 -2
- package/lib/components/{RoomContent → Stream/common}/StreamRegion/index.vue2.js +24 -27
- package/lib/components/common/Language.vue.js +1 -1
- package/lib/components/common/SwitchTheme.vue.js +1 -1
- package/lib/components/common/base/Button.vue.d.ts +1 -1
- package/lib/components/common/base/Checkbox/index.vue.d.ts +1 -1
- package/lib/components/common/base/Dialog/index.vue.d.ts +4 -4
- package/lib/components/common/base/IconButton.vue.d.ts +3 -3
- package/lib/components/common/base/Input/index.vue.d.ts +4 -4
- package/lib/components/common/base/Message/Message.vue.d.ts +4 -4
- package/lib/components/common/base/MessageBox/index.vue.d.ts +1 -1
- package/lib/components/common/base/Notification/index.vue.d.ts +1 -1
- package/lib/components/common/base/Select/index.vue.d.ts +1 -1
- package/lib/components/common/base/Select/index.vue2.js +1 -1
- package/lib/components/common/base/Slider.vue.d.ts +1 -1
- package/lib/components/{AITools → common/widgets/AITools}/AISubtitles.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.js +8 -7
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue2.js +9 -8
- package/lib/conference.d.ts +6 -0
- package/lib/conference.js +7 -1
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +14 -24
- package/lib/extension/chatExtension.js +1 -1
- package/lib/extension/utils/interact.js +1 -1
- package/lib/extension/utils/setLanguage.js +1 -1
- package/lib/hooks/useMasterApplyControl.js +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +969 -1197
- package/lib/locales/en-US.d.ts +2 -1
- package/lib/locales/en-US.js +3 -2
- package/lib/locales/zh-CN.d.ts +2 -1
- package/lib/locales/zh-CN.js +2 -1
- package/lib/preConference.vue.d.ts +5 -0
- package/lib/preConference.vue.js +1 -1
- package/lib/preConference.vue2.js +6 -3
- package/lib/services/index.d.ts +1 -0
- package/lib/services/manager/chatManager.d.ts +0 -2
- package/lib/services/manager/chatManager.js +6 -12
- package/{es/services/manager/MediaManager.d.ts → lib/services/manager/mediaManager.d.ts} +16 -13
- package/lib/services/manager/{MediaManager.js → mediaManager.js} +109 -112
- package/lib/services/manager/roomActionManager.d.ts +3 -0
- package/lib/services/manager/roomActionManager.js +7 -0
- package/lib/services/manager/scheduleConferenceManager.d.ts +1 -0
- package/lib/services/manager/scheduleConferenceManager.js +23 -0
- package/lib/services/manager/trackingManager.d.ts +11 -0
- package/lib/services/manager/trackingManager.js +20 -0
- package/lib/services/manager/userManager.d.ts +11 -1
- package/lib/services/manager/userManager.js +158 -8
- package/lib/services/roomService.d.ts +3 -2
- package/lib/services/roomService.js +24 -42
- package/lib/stores/basic.js +6 -1
- package/lib/stores/room.d.ts +29 -1
- package/lib/stores/room.js +49 -59
- package/lib/utils/domOperation.d.ts +4 -0
- package/lib/utils/domOperation.js +17 -23
- package/lib/utils/utils.d.ts +11 -0
- package/lib/utils/utils.js +43 -0
- package/package.json +4 -4
- package/src/TUIRoom/components/Chat/ChatKit/CHANGELOG.md +35 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.ts +66 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/index.vue +24 -8
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue +15 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue +13 -13
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/index.vue +1 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue +2 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue +4 -6
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue +9 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/server.ts +12 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.ts +1 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIContact/contact-list/index.vue +3 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIGroup/manage-group/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/index.vue +1 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/style/h5.scss +4 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/style/modal.scss +0 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/Overlay/index.vue +5 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/common/Transfer/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/locales/en/TUIChat.ts +4 -1
- package/src/TUIRoom/components/Chat/ChatKit/locales/en/message.ts +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/locales/index.ts +9 -3
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_cn/TUIChat.ts +3 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIChat.ts +154 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIContact.ts +66 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIConversation.ts +24 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIGroup.ts +87 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUISearch.ts +41 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/component.ts +21 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/emoji.ts +2 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/evaluate.ts +11 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/index.ts +41 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/message.ts +62 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/time.ts +37 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/translate.ts +164 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/words.ts +14 -0
- package/src/TUIRoom/components/Chat/ChatKit/utils/riseInput.ts +53 -0
- package/src/TUIRoom/components/Chat/index/index.vue +2 -20
- package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +7 -4
- package/src/TUIRoom/components/PreRoom/PasswordDialog.vue +21 -11
- package/src/TUIRoom/components/RoomContent/StreamContainer/index.vue +107 -384
- package/src/TUIRoom/components/RoomContent/StreamContainer/useStreamContainerHooks.ts +5 -112
- package/src/TUIRoom/components/RoomContent/index.vue +1 -5
- package/src/TUIRoom/components/RoomFooter/AIControl.vue +7 -6
- package/src/TUIRoom/components/RoomFooter/BasicBeauty.vue +1 -1
- package/src/TUIRoom/components/RoomFooter/ChatControl.vue +1 -0
- package/src/TUIRoom/components/RoomFooter/EndControl/index.vue +4 -3
- package/src/TUIRoom/components/RoomFooter/EndControl/useEndControlHooks.ts +4 -10
- package/src/TUIRoom/components/RoomFooter/InviteControl.vue +1 -0
- package/src/TUIRoom/components/RoomFooter/ScreenShareControl/Index.vue +3 -3
- package/src/TUIRoom/components/RoomFooter/VirtualBackground.vue +1 -1
- package/src/TUIRoom/components/RoomFooter/WhiteboardControl.vue +13 -2
- package/src/TUIRoom/components/RoomFooter/index/index.vue +0 -6
- package/src/TUIRoom/components/RoomHeader/UserInfo/index.vue +2 -5
- package/src/TUIRoom/components/RoomHeader/index/index.vue +0 -17
- package/src/TUIRoom/components/RoomHome/RoomControl/index.vue +0 -2
- package/src/TUIRoom/components/RoomInvite/useRoomInviteHooks.ts +2 -2
- package/src/TUIRoom/components/RoomOverlay/RoomOverlay.vue +13 -0
- package/src/TUIRoom/components/RoomOverlay/useRoomOverlayHooks.ts +21 -0
- package/src/TUIRoom/components/RoomSidebar/index.vue +1 -1
- package/src/TUIRoom/components/ScheduleConference/InvitePanel.vue +1 -0
- package/src/TUIRoom/components/ScheduleConference/ScheduleConferencePanel/index.vue +10 -4
- package/src/TUIRoom/components/ScheduleConference/ScheduleRoomControl.vue +1 -0
- package/src/TUIRoom/components/Stream/MultiStreamView/index.vue +161 -0
- package/src/TUIRoom/components/Stream/MultiStreamView/useMultiStreamViewHook.ts +107 -0
- package/src/TUIRoom/components/Stream/SingleStreamView/index.vue +32 -0
- package/src/TUIRoom/components/Stream/common/LocalScreenView/index.vue +150 -0
- package/src/TUIRoom/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue +1 -6
- package/src/TUIRoom/components/{RoomContent → Stream/common}/StreamList/index.vue +74 -124
- package/src/TUIRoom/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue +28 -13
- package/src/TUIRoom/components/{RoomContent → Stream/common}/StreamRegion/index.vue +27 -32
- package/src/TUIRoom/components/common/base/Swiper.vue +20 -6
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AISubtitles.vue +2 -2
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AITranscription.vue +3 -3
- package/src/TUIRoom/conference.ts +14 -0
- package/src/TUIRoom/conference.vue +10 -23
- package/src/TUIRoom/hooks/useMasterApplyControl.ts +2 -1
- package/src/TUIRoom/index.ts +3 -1
- package/src/TUIRoom/locales/en-US.ts +4 -3
- package/src/TUIRoom/locales/zh-CN.ts +3 -1
- package/src/TUIRoom/preConference.vue +3 -1
- package/src/TUIRoom/services/index.ts +1 -0
- package/src/TUIRoom/services/manager/chatManager.ts +7 -16
- package/src/TUIRoom/services/manager/{MediaManager.ts → mediaManager.ts} +125 -136
- package/src/TUIRoom/services/manager/roomActionManager.ts +5 -0
- package/src/TUIRoom/services/manager/scheduleConferenceManager.ts +24 -1
- package/src/TUIRoom/services/manager/trackingManager.ts +22 -0
- package/src/TUIRoom/services/manager/userManager.ts +201 -7
- package/src/TUIRoom/services/roomService.ts +5 -24
- package/src/TUIRoom/stores/basic.ts +6 -0
- package/src/TUIRoom/stores/room.ts +60 -71
- package/src/TUIRoom/utils/domOperation.ts +27 -0
- package/src/TUIRoom/utils/utils.ts +61 -0
- package/es/components/Chat/ChatEditor/index.vue.mjs +0 -7
- package/es/components/Chat/ChatEditor/index.vue2.mjs +0 -45
- package/es/components/Chat/ChatEditor/useChatEditor.mjs +0 -83
- package/es/components/Chat/EditorTools/index.vue.d.ts +0 -6
- package/es/components/Chat/EditorTools/index.vue.mjs +0 -7
- package/es/components/Chat/EditorTools/index.vue2.mjs +0 -59
- package/es/components/Chat/MessageList/index.vue2.mjs +0 -101
- package/es/components/Chat/MessageList/useMessageListHook.mjs +0 -142
- package/es/components/Chat/MessageTypes/MessageText.vue.d.ts +0 -8
- package/es/components/Chat/MessageTypes/MessageText.vue.mjs +0 -7
- package/es/components/Chat/MessageTypes/MessageText.vue2.mjs +0 -31
- package/es/components/Chat/util.mjs +0 -432
- package/es/components/RoomContent/StreamList/index.vue.d.ts +0 -39
- package/es/components/RoomContent/StreamRegion/LocalScreenView/index.vue.d.ts +0 -14
- package/es/components/RoomContent/StreamRegion/index.vue.d.ts +0 -42
- package/es/components/common/icons/EmojiIcon.vue.mjs +0 -21
- package/lib/components/Chat/ChatEditor/index.vue.js +0 -7
- package/lib/components/Chat/ChatEditor/index.vue2.js +0 -45
- package/lib/components/Chat/ChatEditor/useChatEditor.js +0 -83
- package/lib/components/Chat/EditorTools/index.vue.d.ts +0 -6
- package/lib/components/Chat/EditorTools/index.vue.js +0 -7
- package/lib/components/Chat/EditorTools/index.vue2.js +0 -59
- package/lib/components/Chat/MessageList/index.vue.d.ts +0 -2
- package/lib/components/Chat/MessageList/index.vue2.js +0 -101
- package/lib/components/Chat/MessageList/useMessageListHook.js +0 -142
- package/lib/components/Chat/MessageTypes/MessageText.vue.d.ts +0 -8
- package/lib/components/Chat/MessageTypes/MessageText.vue.js +0 -7
- package/lib/components/Chat/MessageTypes/MessageText.vue2.js +0 -31
- package/lib/components/Chat/util.js +0 -432
- package/lib/components/RoomContent/StreamList/index.vue.d.ts +0 -39
- package/lib/components/RoomContent/StreamRegion/LocalScreenView/index.vue.d.ts +0 -14
- package/lib/components/RoomContent/StreamRegion/index.vue.d.ts +0 -42
- package/lib/components/common/icons/EmojiIcon.vue.d.ts +0 -2
- package/lib/components/common/icons/EmojiIcon.vue.js +0 -21
- /package/es/components/{AITools/AISubtitles.vue.d.ts → RoomOverlay/RoomOverlay.vue.d.ts} +0 -0
- /package/es/components/{Chat/ChatEditor → Stream/common/LocalScreenView}/index.vue.d.ts +0 -0
- /package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.d.ts +0 -0
- /package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue2.mjs +0 -0
- /package/{lib/components → es/components/common/widgets}/AITools/AISubtitles.vue.d.ts +0 -0
- /package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.d.ts +0 -0
- /package/{es/components/Chat/MessageList/index.vue.d.ts → lib/components/RoomOverlay/RoomOverlay.vue.d.ts} +0 -0
- /package/lib/components/{Chat/ChatEditor → Stream/common/LocalScreenView}/index.vue.d.ts +0 -0
- /package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.d.ts +0 -0
- /package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue2.js +0 -0
- /package/{es/components/common/icons/EmojiIcon.vue.d.ts → lib/components/common/widgets/AITools/AISubtitles.vue.d.ts} +0 -0
- /package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.d.ts +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface ITrackingManager {
|
|
2
|
+
sendMessage: (cmd: string) => void;
|
|
3
|
+
registerProvider: (provider: any) => void;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class TrackingManager implements ITrackingManager {
|
|
7
|
+
private provider: any;
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
this.provider = null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public registerProvider = (provider: any): void => {
|
|
14
|
+
this.provider = provider;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
public sendMessage = (cmd: string): void => {
|
|
18
|
+
if (this.provider) {
|
|
19
|
+
this.provider.sendMessage(cmd, {});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -4,9 +4,18 @@ import TUIRoomEngine, {
|
|
|
4
4
|
TUIChangeReason,
|
|
5
5
|
TUIVideoStreamType,
|
|
6
6
|
TUISeatInfo,
|
|
7
|
+
TRTCVolumeInfo,
|
|
8
|
+
TUIRole,
|
|
7
9
|
} from '@tencentcloud/tuiroom-engine-electron';
|
|
8
10
|
import { IRoomService } from '../types';
|
|
9
|
-
import { UserInfo } from '../../stores/room';
|
|
11
|
+
import { StreamInfo, UserInfo } from '../../stores/room';
|
|
12
|
+
import { isMobile } from '../../utils/environment';
|
|
13
|
+
import {
|
|
14
|
+
throttle,
|
|
15
|
+
createComparator,
|
|
16
|
+
combineComparators,
|
|
17
|
+
Comparator,
|
|
18
|
+
} from '../../utils/utils';
|
|
10
19
|
interface IUserManager {
|
|
11
20
|
setSelfInfo(options: SelfInfoOptions): Promise<void>;
|
|
12
21
|
setCustomInfoForUser(options: CustomInfoForUser): Promise<void>;
|
|
@@ -25,8 +34,24 @@ export type SelfInfoOptions = {
|
|
|
25
34
|
export class UserManager implements IUserManager {
|
|
26
35
|
private service: IRoomService;
|
|
27
36
|
|
|
37
|
+
private userListCompareFunction:
|
|
38
|
+
| ((userInfoA: UserInfo, userInfoB: UserInfo) => number)
|
|
39
|
+
| null;
|
|
40
|
+
|
|
41
|
+
private streamListCompareFunction:
|
|
42
|
+
| ((streamInfoA: StreamInfo, streamInfoB: StreamInfo) => number)
|
|
43
|
+
| null;
|
|
44
|
+
|
|
28
45
|
constructor(service: IRoomService) {
|
|
29
46
|
this.service = service;
|
|
47
|
+
this.userListCompareFunction = null;
|
|
48
|
+
this.streamListCompareFunction = null;
|
|
49
|
+
this.onRemoteUserEnterRoom = this.onRemoteUserEnterRoom.bind(this);
|
|
50
|
+
this.onRemoteUserLeaveRoom = this.onRemoteUserLeaveRoom.bind(this);
|
|
51
|
+
this.onSeatListChanged = this.onSeatListChanged.bind(this);
|
|
52
|
+
this.onUserVideoStateChanged = this.onUserVideoStateChanged.bind(this);
|
|
53
|
+
this.onUserAudioStateChanged = this.onUserAudioStateChanged.bind(this);
|
|
54
|
+
this.onUserVoiceVolumeChanged = this.onUserVoiceVolumeChanged.bind(this);
|
|
30
55
|
this.bindRoomEngineEvents();
|
|
31
56
|
}
|
|
32
57
|
|
|
@@ -58,10 +83,76 @@ export class UserManager implements IUserManager {
|
|
|
58
83
|
);
|
|
59
84
|
}
|
|
60
85
|
|
|
86
|
+
public setUserListSortComparator(comparator: Comparator<UserInfo>) {
|
|
87
|
+
this.userListCompareFunction = comparator;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public getUserListSortComparator() {
|
|
91
|
+
const defaultUserListCompareFunction = combineComparators(
|
|
92
|
+
createComparator((userInfo: UserInfo) =>
|
|
93
|
+
Boolean(userInfo.userId === this.service.basicStore.userId)
|
|
94
|
+
),
|
|
95
|
+
createComparator((userInfo: UserInfo) =>
|
|
96
|
+
Boolean(userInfo.userRole === TUIRole.kRoomOwner)
|
|
97
|
+
),
|
|
98
|
+
createComparator((userInfo: UserInfo) =>
|
|
99
|
+
Boolean(userInfo.userRole === TUIRole.kAdministrator)
|
|
100
|
+
),
|
|
101
|
+
createComparator((userInfo: UserInfo) =>
|
|
102
|
+
Boolean(userInfo.hasScreenStream)
|
|
103
|
+
),
|
|
104
|
+
createComparator((userInfo: UserInfo) =>
|
|
105
|
+
Boolean(userInfo.hasVideoStream && userInfo.hasAudioStream)
|
|
106
|
+
),
|
|
107
|
+
createComparator((userInfo: UserInfo) =>
|
|
108
|
+
Boolean(userInfo.hasVideoStream)
|
|
109
|
+
),
|
|
110
|
+
createComparator((userInfo: UserInfo) =>
|
|
111
|
+
Boolean(userInfo.hasAudioStream)
|
|
112
|
+
),
|
|
113
|
+
createComparator((userInfo: UserInfo) => Boolean(userInfo.onSeat)),
|
|
114
|
+
createComparator((userInfoA: UserInfo, userInfoB: UserInfo) =>
|
|
115
|
+
Boolean(Number(userInfoA.timestamp) < Number(userInfoB.timestamp))
|
|
116
|
+
)
|
|
117
|
+
);
|
|
118
|
+
return this.userListCompareFunction || defaultUserListCompareFunction;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public setStreamListSortComparator(comparator: Comparator<StreamInfo>) {
|
|
122
|
+
this.streamListCompareFunction = comparator;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public getStreamListSortComparator() {
|
|
126
|
+
const defaultUserListCompareFunction = combineComparators(
|
|
127
|
+
createComparator((streamInfo: StreamInfo) =>
|
|
128
|
+
Boolean(streamInfo.streamType === TUIVideoStreamType.kScreenStream)
|
|
129
|
+
),
|
|
130
|
+
createComparator((streamInfo: StreamInfo) =>
|
|
131
|
+
Boolean(streamInfo.userId === this.service.roomStore.masterUserId)
|
|
132
|
+
),
|
|
133
|
+
createComparator((streamInfo: StreamInfo) =>
|
|
134
|
+
Boolean(streamInfo.userId === this.service.basicStore.userId)
|
|
135
|
+
),
|
|
136
|
+
createComparator((streamInfoA: StreamInfo) =>
|
|
137
|
+
Boolean(streamInfoA.hasAudioStream && streamInfoA.hasVideoStream)
|
|
138
|
+
),
|
|
139
|
+
createComparator((streamInfoA: StreamInfo) =>
|
|
140
|
+
Boolean(streamInfoA.hasVideoStream)
|
|
141
|
+
),
|
|
142
|
+
createComparator((streamInfoA: StreamInfo) =>
|
|
143
|
+
Boolean(streamInfoA.hasAudioStream)
|
|
144
|
+
),
|
|
145
|
+
createComparator((streamInfoA: StreamInfo, streamInfoB: StreamInfo) =>
|
|
146
|
+
Boolean(Number(streamInfoA.timestamp) - Number(streamInfoB.timestamp))
|
|
147
|
+
)
|
|
148
|
+
);
|
|
149
|
+
return this.streamListCompareFunction || defaultUserListCompareFunction;
|
|
150
|
+
}
|
|
151
|
+
|
|
61
152
|
private onRemoteUserEnterRoom(eventInfo: { userInfo: TUIUserInfo }) {
|
|
62
153
|
const { userInfo } = eventInfo;
|
|
63
154
|
this.service.roomStore.addUserInfo(
|
|
64
|
-
Object.assign(userInfo, { isInRoom: true })
|
|
155
|
+
Object.assign(userInfo, { isInRoom: true, timestamp: Date.now() })
|
|
65
156
|
);
|
|
66
157
|
if (this.service.roomStore.isFreeSpeakMode) {
|
|
67
158
|
this.service.roomStore.addStreamInfo(
|
|
@@ -202,27 +293,126 @@ export class UserManager implements IUserManager {
|
|
|
202
293
|
}
|
|
203
294
|
};
|
|
204
295
|
|
|
296
|
+
// Calculate the userId of the loudest speaker in the room
|
|
297
|
+
// Calculate the userId of the remote user who speaks the loudest in the current room.
|
|
298
|
+
private handleUserVoiceVolume(userVolumeList: Array<typeof TRTCVolumeInfo>) {
|
|
299
|
+
const localUserVolume = {
|
|
300
|
+
userId: this.service.basicStore.userId,
|
|
301
|
+
volume: 0,
|
|
302
|
+
};
|
|
303
|
+
const largestRemoteUserVolume = {
|
|
304
|
+
userId: '',
|
|
305
|
+
volume: 0,
|
|
306
|
+
};
|
|
307
|
+
userVolumeList.forEach((item: typeof TRTCVolumeInfo) => {
|
|
308
|
+
if (
|
|
309
|
+
item.userId === this.service.basicStore.userId &&
|
|
310
|
+
this.service.roomStore.localStream?.hasAudioStream
|
|
311
|
+
) {
|
|
312
|
+
localUserVolume.volume = item.volume;
|
|
313
|
+
} else if (
|
|
314
|
+
item.userId !== this.service.basicStore.userId &&
|
|
315
|
+
this.service.roomStore.userInfoObj[item.userId]?.hasAudioStream
|
|
316
|
+
) {
|
|
317
|
+
const { userId, volume } = item;
|
|
318
|
+
if (volume > largestRemoteUserVolume.volume) {
|
|
319
|
+
largestRemoteUserVolume.userId = userId;
|
|
320
|
+
largestRemoteUserVolume.volume = volume;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
const largestUserVolume =
|
|
326
|
+
localUserVolume.volume > largestRemoteUserVolume.volume
|
|
327
|
+
? localUserVolume
|
|
328
|
+
: largestRemoteUserVolume;
|
|
329
|
+
|
|
330
|
+
if (this.service.roomStore.currentSpeakerInfo.remoteSpeakerUserId) {
|
|
331
|
+
const lastRemoteSpeakerUserVolumeInfo = userVolumeList.find(
|
|
332
|
+
(item: typeof TRTCVolumeInfo) =>
|
|
333
|
+
item.userId ===
|
|
334
|
+
this.service.roomStore.currentSpeakerInfo.remoteSpeakerUserId
|
|
335
|
+
);
|
|
336
|
+
if (
|
|
337
|
+
!lastRemoteSpeakerUserVolumeInfo ||
|
|
338
|
+
(lastRemoteSpeakerUserVolumeInfo?.volume === 0 &&
|
|
339
|
+
largestRemoteUserVolume.volume > 0)
|
|
340
|
+
) {
|
|
341
|
+
this.service.roomStore.setCurrentSpeakerInfo({
|
|
342
|
+
remoteSpeakerUserId: largestRemoteUserVolume.userId,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
} else {
|
|
346
|
+
if (largestRemoteUserVolume.volume > 0) {
|
|
347
|
+
this.service.roomStore.setCurrentSpeakerInfo({
|
|
348
|
+
remoteSpeakerUserId: largestRemoteUserVolume.userId,
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (this.service.roomStore.currentSpeakerInfo.speakerUserId) {
|
|
354
|
+
const lastSpeakerUserVolumeInfo: typeof TRTCVolumeInfo | undefined =
|
|
355
|
+
userVolumeList.find(
|
|
356
|
+
(item: typeof TRTCVolumeInfo) =>
|
|
357
|
+
item.userId ===
|
|
358
|
+
this.service.roomStore.currentSpeakerInfo.speakerUserId
|
|
359
|
+
);
|
|
360
|
+
if (
|
|
361
|
+
!lastSpeakerUserVolumeInfo ||
|
|
362
|
+
(lastSpeakerUserVolumeInfo.volume === 0 && largestUserVolume.volume > 0)
|
|
363
|
+
) {
|
|
364
|
+
this.service.roomStore.setCurrentSpeakerInfo({
|
|
365
|
+
speakerUserId: largestUserVolume.userId,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
} else {
|
|
369
|
+
if (largestUserVolume.volume > 0) {
|
|
370
|
+
this.service.roomStore.setCurrentSpeakerInfo({
|
|
371
|
+
speakerUserId: largestUserVolume.userId,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
private handleUserVoiceVolumeThrottle = throttle(
|
|
378
|
+
this.handleUserVoiceVolume,
|
|
379
|
+
1000
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
private onUserVoiceVolumeChanged(eventInfo: { userVolumeList: [] }) {
|
|
383
|
+
const { userVolumeList } = eventInfo;
|
|
384
|
+
this.service.roomStore.setAudioVolume(userVolumeList);
|
|
385
|
+
// Mobile needs to count the current speaker
|
|
386
|
+
if (isMobile) {
|
|
387
|
+
this.handleUserVoiceVolumeThrottle(userVolumeList);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
205
391
|
private bindRoomEngineEvents() {
|
|
206
392
|
TUIRoomEngine.once('ready', () => {
|
|
207
393
|
this.service.roomEngine.instance?.on(
|
|
208
394
|
TUIRoomEvents.onRemoteUserEnterRoom,
|
|
209
|
-
this.onRemoteUserEnterRoom
|
|
395
|
+
this.onRemoteUserEnterRoom
|
|
210
396
|
);
|
|
211
397
|
this.service.roomEngine.instance?.on(
|
|
212
398
|
TUIRoomEvents.onRemoteUserLeaveRoom,
|
|
213
|
-
this.onRemoteUserLeaveRoom
|
|
399
|
+
this.onRemoteUserLeaveRoom
|
|
214
400
|
);
|
|
215
401
|
this.service.roomEngine.instance?.on(
|
|
216
402
|
TUIRoomEvents.onSeatListChanged,
|
|
217
|
-
this.onSeatListChanged
|
|
403
|
+
this.onSeatListChanged
|
|
218
404
|
);
|
|
219
405
|
this.service.roomEngine.instance?.on(
|
|
220
406
|
TUIRoomEvents.onUserVideoStateChanged,
|
|
221
|
-
this.onUserVideoStateChanged
|
|
407
|
+
this.onUserVideoStateChanged
|
|
222
408
|
);
|
|
223
409
|
this.service.roomEngine.instance?.on(
|
|
224
410
|
TUIRoomEvents.onUserAudioStateChanged,
|
|
225
|
-
this.onUserAudioStateChanged
|
|
411
|
+
this.onUserAudioStateChanged
|
|
412
|
+
);
|
|
413
|
+
this.service.roomEngine.instance?.on(
|
|
414
|
+
TUIRoomEvents.onUserVoiceVolumeChanged,
|
|
415
|
+
this.onUserVoiceVolumeChanged
|
|
226
416
|
);
|
|
227
417
|
});
|
|
228
418
|
}
|
|
@@ -248,5 +438,9 @@ export class UserManager implements IUserManager {
|
|
|
248
438
|
TUIRoomEvents.onUserAudioStateChanged,
|
|
249
439
|
this.onUserAudioStateChanged
|
|
250
440
|
);
|
|
441
|
+
this.service.roomEngine.instance?.off(
|
|
442
|
+
TUIRoomEvents.onUserVoiceVolumeChanged,
|
|
443
|
+
this.onUserVoiceVolumeChanged
|
|
444
|
+
);
|
|
251
445
|
}
|
|
252
446
|
}
|
|
@@ -25,7 +25,8 @@ import {
|
|
|
25
25
|
import { ConfigManager, LanguageOption, Theme } from './manager/configManager';
|
|
26
26
|
import { SelfInfoOptions, UserManager } from './manager/userManager';
|
|
27
27
|
import { LifeCycleManager } from './manager/lifeCycleManager';
|
|
28
|
-
import { MediaManager } from './manager/
|
|
28
|
+
import { MediaManager } from './manager/mediaManager';
|
|
29
|
+
import { TrackingManager } from './manager/trackingManager';
|
|
29
30
|
import {
|
|
30
31
|
JoinParams,
|
|
31
32
|
RoomActionManager,
|
|
@@ -70,6 +71,7 @@ export class RoomService implements IRoomService {
|
|
|
70
71
|
public errorHandler: ErrorHandler = new ErrorHandler(this);
|
|
71
72
|
public chatManager: ChatManager = new ChatManager(this);
|
|
72
73
|
public aiTask: AITask = new AITask(this);
|
|
74
|
+
public trackingManager: TrackingManager = new TrackingManager();
|
|
73
75
|
|
|
74
76
|
get basicStore() {
|
|
75
77
|
return useBasicStore();
|
|
@@ -96,7 +98,6 @@ export class RoomService implements IRoomService {
|
|
|
96
98
|
private initEventCtx() {
|
|
97
99
|
this.onError = this.onError.bind(this);
|
|
98
100
|
this.onRoomDismissed = this.onRoomDismissed.bind(this);
|
|
99
|
-
this.onUserVoiceVolumeChanged = this.onUserVoiceVolumeChanged.bind(this);
|
|
100
101
|
this.onUserNetworkQualityChanged =
|
|
101
102
|
this.onUserNetworkQualityChanged.bind(this);
|
|
102
103
|
this.onKickedOutOfRoom = this.onKickedOutOfRoom.bind(this);
|
|
@@ -157,10 +158,6 @@ export class RoomService implements IRoomService {
|
|
|
157
158
|
TUIRoomEvents.onRoomDismissed,
|
|
158
159
|
this.onRoomDismissed
|
|
159
160
|
);
|
|
160
|
-
roomEngine.instance?.on(
|
|
161
|
-
TUIRoomEvents.onUserVoiceVolumeChanged,
|
|
162
|
-
this.onUserVoiceVolumeChanged
|
|
163
|
-
);
|
|
164
161
|
roomEngine.instance?.on(
|
|
165
162
|
TUIRoomEvents.onUserNetworkQualityChanged,
|
|
166
163
|
this.onUserNetworkQualityChanged
|
|
@@ -205,10 +202,6 @@ export class RoomService implements IRoomService {
|
|
|
205
202
|
TUIRoomEvents.onRoomDismissed,
|
|
206
203
|
this.onRoomDismissed
|
|
207
204
|
);
|
|
208
|
-
roomEngine.instance?.off(
|
|
209
|
-
TUIRoomEvents.onUserVoiceVolumeChanged,
|
|
210
|
-
this.onUserVoiceVolumeChanged
|
|
211
|
-
);
|
|
212
205
|
roomEngine.instance?.off(
|
|
213
206
|
TUIRoomEvents.onUserNetworkQualityChanged,
|
|
214
207
|
this.onUserNetworkQualityChanged
|
|
@@ -267,11 +260,6 @@ export class RoomService implements IRoomService {
|
|
|
267
260
|
});
|
|
268
261
|
}
|
|
269
262
|
|
|
270
|
-
private onUserVoiceVolumeChanged(eventInfo: { userVolumeList: [] }) {
|
|
271
|
-
const { userVolumeList } = eventInfo;
|
|
272
|
-
this.roomStore.setAudioVolume(userVolumeList);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
263
|
private onUserNetworkQualityChanged(eventInfo: { userNetworkList: [] }) {
|
|
276
264
|
this.basicStore.setLocalQuality(eventInfo.userNetworkList);
|
|
277
265
|
}
|
|
@@ -289,7 +277,7 @@ export class RoomService implements IRoomService {
|
|
|
289
277
|
notice = t('kicked out of the room by the host');
|
|
290
278
|
break;
|
|
291
279
|
case TUIKickedOutOfRoomReason.kKickedByLoggedOnOtherDevice:
|
|
292
|
-
notice = t('kicked out of the room
|
|
280
|
+
notice = t('kicked out of the room');
|
|
293
281
|
break;
|
|
294
282
|
case TUIKickedOutOfRoomReason.kKickedByServer:
|
|
295
283
|
notice = t('kicked out of the room by serve');
|
|
@@ -453,13 +441,7 @@ export class RoomService implements IRoomService {
|
|
|
453
441
|
|
|
454
442
|
public async initRoomKit(option: RoomInitData) {
|
|
455
443
|
this.storeInit(option);
|
|
456
|
-
const {
|
|
457
|
-
sdkAppId,
|
|
458
|
-
userId,
|
|
459
|
-
userSig,
|
|
460
|
-
userName = userId,
|
|
461
|
-
avatarUrl = '',
|
|
462
|
-
} = option;
|
|
444
|
+
const { sdkAppId, userId, userSig } = option;
|
|
463
445
|
TUILogin.login({
|
|
464
446
|
SDKAppID: sdkAppId,
|
|
465
447
|
userID: userId,
|
|
@@ -468,7 +450,6 @@ export class RoomService implements IRoomService {
|
|
|
468
450
|
});
|
|
469
451
|
const { chat } = TUILogin.getContext();
|
|
470
452
|
await TUIRoomEngine.login({ sdkAppId, userId, userSig, tim: chat });
|
|
471
|
-
await TUIRoomEngine.setSelfInfo({ userName, avatarUrl });
|
|
472
453
|
this.emit(EventType.ROOM_LOGIN);
|
|
473
454
|
}
|
|
474
455
|
|
|
@@ -71,6 +71,7 @@ interface BasicState {
|
|
|
71
71
|
[key: string]: any;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
+
showRoomTool: boolean;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
export const useBasicStore = defineStore('basic', {
|
|
@@ -121,6 +122,7 @@ export const useBasicStore = defineStore('basic', {
|
|
|
121
122
|
},
|
|
122
123
|
},
|
|
123
124
|
scene: 'default',
|
|
125
|
+
showRoomTool: true,
|
|
124
126
|
}),
|
|
125
127
|
getters: {},
|
|
126
128
|
actions: {
|
|
@@ -239,6 +241,9 @@ export const useBasicStore = defineStore('basic', {
|
|
|
239
241
|
setScene(scene: SceneType) {
|
|
240
242
|
this.scene = scene;
|
|
241
243
|
},
|
|
244
|
+
setShowRoomTool(isShow: boolean) {
|
|
245
|
+
this.showRoomTool = isShow;
|
|
246
|
+
},
|
|
242
247
|
reset() {
|
|
243
248
|
this.isSidebarOpen = false;
|
|
244
249
|
this.layout = getDefaultLayout();
|
|
@@ -256,6 +261,7 @@ export const useBasicStore = defineStore('basic', {
|
|
|
256
261
|
this.showHeaderTool = true;
|
|
257
262
|
this.shareLink = '';
|
|
258
263
|
this.isOpenMic = false;
|
|
264
|
+
this.showRoomTool = false;
|
|
259
265
|
},
|
|
260
266
|
},
|
|
261
267
|
});
|
|
@@ -11,20 +11,25 @@ import {
|
|
|
11
11
|
import { useBasicStore } from './basic';
|
|
12
12
|
import { set, del } from '../utils/vue';
|
|
13
13
|
import { isMobile } from '../utils/environment';
|
|
14
|
+
import { roomService } from '../services';
|
|
14
15
|
|
|
15
|
-
function getNewStreamInfo(
|
|
16
|
+
export function getNewStreamInfo(
|
|
17
|
+
userId: string,
|
|
18
|
+
streamType?: TUIVideoStreamType
|
|
19
|
+
) {
|
|
16
20
|
const newStreamInfo = {
|
|
17
21
|
userId,
|
|
18
22
|
hasAudioStream: false,
|
|
19
23
|
hasVideoStream: false,
|
|
20
24
|
streamType: streamType || TUIVideoStreamType.kCameraStream,
|
|
21
25
|
isLoading: false,
|
|
22
|
-
|
|
26
|
+
playDomMap: new Map(),
|
|
27
|
+
timestamp: Date.now(),
|
|
23
28
|
};
|
|
24
29
|
return newStreamInfo;
|
|
25
30
|
}
|
|
26
31
|
|
|
27
|
-
function getNewUserInfo(userId: string) {
|
|
32
|
+
export function getNewUserInfo(userId: string) {
|
|
28
33
|
const newUserInfo = {
|
|
29
34
|
userId,
|
|
30
35
|
userName: '',
|
|
@@ -40,6 +45,7 @@ function getNewUserInfo(userId: string) {
|
|
|
40
45
|
isInvitingUserToAnchor: false,
|
|
41
46
|
isInRoom: false,
|
|
42
47
|
status: TUIInvitationStatus.kNone,
|
|
48
|
+
timestamp: Date.now(),
|
|
43
49
|
};
|
|
44
50
|
return newUserInfo;
|
|
45
51
|
}
|
|
@@ -51,32 +57,14 @@ function getRecordStreamType(streamType: TUIVideoStreamType) {
|
|
|
51
57
|
return streamType;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
|
-
function sortStreamList(streamList: StreamInfo[]) {
|
|
55
|
-
const basicStore = useBasicStore();
|
|
56
|
-
return streamList.sort((item1: StreamInfo, item2: StreamInfo) => {
|
|
57
|
-
if (item1.userId === basicStore.userId) {
|
|
58
|
-
return -1;
|
|
59
|
-
}
|
|
60
|
-
if (item2.userId === basicStore.userId) {
|
|
61
|
-
return 1;
|
|
62
|
-
}
|
|
63
|
-
if (item1.streamType === TUIVideoStreamType.kScreenStream) {
|
|
64
|
-
return -1;
|
|
65
|
-
}
|
|
66
|
-
if (item2.streamType === TUIVideoStreamType.kScreenStream) {
|
|
67
|
-
return 1;
|
|
68
|
-
}
|
|
69
|
-
return 0;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
60
|
export type StreamInfo = {
|
|
74
61
|
userId: string;
|
|
75
62
|
streamType: TUIVideoStreamType;
|
|
76
63
|
hasAudioStream?: boolean;
|
|
77
64
|
hasVideoStream?: boolean;
|
|
78
65
|
isLoading?: boolean;
|
|
79
|
-
|
|
66
|
+
playDomMap?: Map<HTMLElement, TUIVideoStreamType>;
|
|
67
|
+
timestamp?: number;
|
|
80
68
|
};
|
|
81
69
|
|
|
82
70
|
export type UserInfo = {
|
|
@@ -111,12 +99,14 @@ export type UserInfo = {
|
|
|
111
99
|
inviteToAnchorRequestId?: string;
|
|
112
100
|
isInRoom?: boolean;
|
|
113
101
|
status?: TUIInvitationStatus;
|
|
102
|
+
timestamp?: number;
|
|
114
103
|
};
|
|
115
104
|
|
|
116
105
|
interface RoomState {
|
|
117
106
|
userInfoObj: Record<string, UserInfo>;
|
|
118
107
|
streamInfoObj: Record<string, StreamInfo>;
|
|
119
108
|
userVolumeObj: Record<string, number>;
|
|
109
|
+
currentSpeakerInfo: Record<string, string>;
|
|
120
110
|
// Moderators can unmute audio/video by themselves when they have all users unmuted, but when they unmute a user individually.
|
|
121
111
|
canControlSelfAudio: boolean;
|
|
122
112
|
canControlSelfVideo: boolean;
|
|
@@ -137,7 +127,6 @@ interface RoomState {
|
|
|
137
127
|
maxSeatCount: number;
|
|
138
128
|
password: string;
|
|
139
129
|
roomName: string;
|
|
140
|
-
hasOtherScreenShare: boolean;
|
|
141
130
|
isOnStateTabActive: boolean;
|
|
142
131
|
isLocalUserSharing: boolean;
|
|
143
132
|
isWhiteboardVisiable: boolean;
|
|
@@ -150,6 +139,10 @@ export const useRoomStore = defineStore('room', {
|
|
|
150
139
|
userInfoObj: {},
|
|
151
140
|
streamInfoObj: {},
|
|
152
141
|
userVolumeObj: {},
|
|
142
|
+
currentSpeakerInfo: {
|
|
143
|
+
speakerUserId: '',
|
|
144
|
+
remoteSpeakerUserId: '',
|
|
145
|
+
},
|
|
153
146
|
canControlSelfAudio: true,
|
|
154
147
|
canControlSelfVideo: true,
|
|
155
148
|
localVideoQuality: isMobile
|
|
@@ -171,8 +164,6 @@ export const useRoomStore = defineStore('room', {
|
|
|
171
164
|
maxSeatCount: 20,
|
|
172
165
|
password: '',
|
|
173
166
|
roomName: '',
|
|
174
|
-
// Visual area user flow list
|
|
175
|
-
hasOtherScreenShare: false,
|
|
176
167
|
isOnStateTabActive: true,
|
|
177
168
|
isLocalUserSharing: false,
|
|
178
169
|
isWhiteboardVisiable: false,
|
|
@@ -187,16 +178,18 @@ export const useRoomStore = defineStore('room', {
|
|
|
187
178
|
getNewUserInfo(basicStore.userId)
|
|
188
179
|
);
|
|
189
180
|
},
|
|
190
|
-
localStream(state: RoomState): StreamInfo {
|
|
181
|
+
localStream(state: RoomState): StreamInfo | undefined {
|
|
191
182
|
const basicStore = useBasicStore();
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
183
|
+
if (this.isFreeSpeakMode || this.localUser.onSeat) {
|
|
184
|
+
return (
|
|
185
|
+
state.streamInfoObj[
|
|
186
|
+
`${basicStore.userId}_${TUIVideoStreamType.kCameraStream}`
|
|
187
|
+
] ||
|
|
188
|
+
getNewStreamInfo(basicStore.userId, TUIVideoStreamType.kCameraStream)
|
|
189
|
+
);
|
|
190
|
+
}
|
|
198
191
|
},
|
|
199
|
-
localScreenStream(state: RoomState): StreamInfo {
|
|
192
|
+
localScreenStream(state: RoomState): StreamInfo | undefined {
|
|
200
193
|
const basicStore = useBasicStore();
|
|
201
194
|
return state.streamInfoObj[
|
|
202
195
|
`${basicStore.userId}_${TUIVideoStreamType.kScreenStream}`
|
|
@@ -257,7 +250,9 @@ export const useRoomStore = defineStore('room', {
|
|
|
257
250
|
return this.userInfoObj[item.userId].onSeat;
|
|
258
251
|
});
|
|
259
252
|
}
|
|
260
|
-
return
|
|
253
|
+
return streamList.sort(
|
|
254
|
+
roomService.userManager.getStreamListSortComparator()
|
|
255
|
+
);
|
|
261
256
|
},
|
|
262
257
|
remoteStreamList(): Array<StreamInfo> {
|
|
263
258
|
const basicStore = useBasicStore();
|
|
@@ -268,32 +263,20 @@ export const useRoomStore = defineStore('room', {
|
|
|
268
263
|
stream => stream.streamType === TUIVideoStreamType.kCameraStream
|
|
269
264
|
);
|
|
270
265
|
},
|
|
266
|
+
remoteScreenStream(): StreamInfo | undefined {
|
|
267
|
+
return this.remoteStreamList.find(
|
|
268
|
+
stream =>
|
|
269
|
+
stream.streamType === TUIVideoStreamType.kScreenStream &&
|
|
270
|
+
stream.hasVideoStream
|
|
271
|
+
);
|
|
272
|
+
},
|
|
271
273
|
streamNumber(): number {
|
|
272
274
|
return this.streamList.length;
|
|
273
275
|
},
|
|
274
276
|
userList(): Array<UserInfo> {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return -1;
|
|
279
|
-
}
|
|
280
|
-
if (item2.userId === basicStore.userId) {
|
|
281
|
-
return 1;
|
|
282
|
-
}
|
|
283
|
-
if (item1.userRole === TUIRole.kRoomOwner) {
|
|
284
|
-
return -1;
|
|
285
|
-
}
|
|
286
|
-
if (item2.userRole === TUIRole.kRoomOwner) {
|
|
287
|
-
return 1;
|
|
288
|
-
}
|
|
289
|
-
if (item1.userRole === TUIRole.kAdministrator) {
|
|
290
|
-
return -1;
|
|
291
|
-
}
|
|
292
|
-
if (item2.userRole === TUIRole.kAdministrator) {
|
|
293
|
-
return 1;
|
|
294
|
-
}
|
|
295
|
-
return 0;
|
|
296
|
-
});
|
|
277
|
+
return [...Object.values(this.userInfoObj)].sort(
|
|
278
|
+
roomService.userManager.getUserListSortComparator()
|
|
279
|
+
);
|
|
297
280
|
},
|
|
298
281
|
userNumber(): number {
|
|
299
282
|
return this.userList.filter(item => item.isInRoom).length;
|
|
@@ -453,6 +436,9 @@ export const useRoomStore = defineStore('room', {
|
|
|
453
436
|
set(this.userVolumeObj, userId, volume);
|
|
454
437
|
});
|
|
455
438
|
},
|
|
439
|
+
setCurrentSpeakerInfo(speakerInfo: Record<string, string>) {
|
|
440
|
+
Object.assign(this.currentSpeakerInfo, speakerInfo);
|
|
441
|
+
},
|
|
456
442
|
setCurrentDeviceId(type: TUIMediaDeviceType, deviceId: string) {
|
|
457
443
|
switch (type) {
|
|
458
444
|
case TUIMediaDeviceType.kMediaDeviceTypeVideoCamera:
|
|
@@ -477,7 +463,7 @@ export const useRoomStore = defineStore('room', {
|
|
|
477
463
|
setCurrentSpeakerId(deviceId: string) {
|
|
478
464
|
this.currentSpeakerId = deviceId;
|
|
479
465
|
},
|
|
480
|
-
setRoomInfo(roomInfo: TUIRoomInfo) {
|
|
466
|
+
setRoomInfo(roomInfo: Partial<TUIRoomInfo>) {
|
|
481
467
|
if (!roomInfo) return;
|
|
482
468
|
|
|
483
469
|
const {
|
|
@@ -530,9 +516,6 @@ export const useRoomStore = defineStore('room', {
|
|
|
530
516
|
updateVideoQuality(quality: TUIVideoQuality) {
|
|
531
517
|
this.localVideoQuality = quality;
|
|
532
518
|
},
|
|
533
|
-
setLocalUser(obj: Record<string, any>) {
|
|
534
|
-
Object.assign(this.localUser, obj);
|
|
535
|
-
},
|
|
536
519
|
setDeviceList(
|
|
537
520
|
type: TUIMediaDeviceType,
|
|
538
521
|
deviceList: { deviceId: string; deviceName: string }[]
|
|
@@ -650,9 +633,6 @@ export const useRoomStore = defineStore('room', {
|
|
|
650
633
|
remoteUserInfo.inviteToAnchorRequestId = '';
|
|
651
634
|
}
|
|
652
635
|
},
|
|
653
|
-
setHasOtherScreenShare(hasScreenShare: boolean) {
|
|
654
|
-
this.hasOtherScreenShare = hasScreenShare;
|
|
655
|
-
},
|
|
656
636
|
setOnStageTabStatus(isOnStateTabActive: boolean) {
|
|
657
637
|
this.isOnStateTabActive = isOnStateTabActive;
|
|
658
638
|
},
|
|
@@ -669,25 +649,26 @@ export const useRoomStore = defineStore('room', {
|
|
|
669
649
|
reset() {
|
|
670
650
|
const basicStore = useBasicStore();
|
|
671
651
|
basicStore.setIsOpenMic(false);
|
|
652
|
+
this.resetRoomData();
|
|
653
|
+
this.resetDeviceData();
|
|
654
|
+
},
|
|
655
|
+
resetRoomData() {
|
|
672
656
|
this.streamInfoObj = {};
|
|
673
657
|
this.userInfoObj = {};
|
|
674
658
|
this.userVolumeObj = {};
|
|
659
|
+
this.currentSpeakerInfo = {
|
|
660
|
+
speakerUserId: '',
|
|
661
|
+
remoteSpeakerUserId: '',
|
|
662
|
+
};
|
|
675
663
|
this.canControlSelfAudio = true;
|
|
676
664
|
this.canControlSelfVideo = true;
|
|
677
665
|
this.localVideoQuality = TUIVideoQuality.kVideoQuality_720p;
|
|
678
|
-
this.currentCameraId = '';
|
|
679
|
-
this.currentMicrophoneId = '';
|
|
680
|
-
this.currentSpeakerId = '';
|
|
681
|
-
this.cameraList = [];
|
|
682
|
-
this.microphoneList = [];
|
|
683
|
-
this.speakerList = [];
|
|
684
666
|
this.masterUserId = '';
|
|
685
667
|
this.isMicrophoneDisableForAllUser = false;
|
|
686
668
|
this.isCameraDisableForAllUser = false;
|
|
687
669
|
this.isScreenShareDisableForAllUser = false;
|
|
688
670
|
this.isSeatEnabled = undefined;
|
|
689
671
|
this.seatMode = TUISeatMode.kFreeToTake;
|
|
690
|
-
this.hasOtherScreenShare = false;
|
|
691
672
|
this.isOnStateTabActive = true;
|
|
692
673
|
this.maxSeatCount = 20;
|
|
693
674
|
this.password = '';
|
|
@@ -697,5 +678,13 @@ export const useRoomStore = defineStore('room', {
|
|
|
697
678
|
this.isSharingScreen = false;
|
|
698
679
|
this.isAnnotationVisiable = false;
|
|
699
680
|
},
|
|
681
|
+
resetDeviceData() {
|
|
682
|
+
this.currentCameraId = '';
|
|
683
|
+
this.currentMicrophoneId = '';
|
|
684
|
+
this.currentSpeakerId = '';
|
|
685
|
+
this.cameraList = [];
|
|
686
|
+
this.microphoneList = [];
|
|
687
|
+
this.speakerList = [];
|
|
688
|
+
},
|
|
700
689
|
},
|
|
701
690
|
});
|