@tencentcloud/roomkit-electron-vue3 2.7.2 → 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/chat-header/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/default-emoji.mjs +4 -4
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/index.mjs +1 -1
- 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 +24 -11
- 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/message-input-quote/index.vue2.mjs +1 -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/emoji-picker/emoji-picker-dialog.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/image-upload/index.vue2.mjs +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-input-toolbar/video-upload/index.vue2.mjs +1 -1
- 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 +4 -4
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-audio.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-record/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-group-application/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/offlinePushInfoManager/offlinePushInfoManager.mjs +1 -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 +3 -2
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.mjs +3 -3
- package/es/components/Chat/ChatKit/components/common/Dialog/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Drawer/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Icon.vue2.mjs +1 -1
- 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/Overlay/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.vue.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.vue2.mjs +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 +4 -4
- 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 +5 -3
- 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/plugins/plugin-components/message-plugin.vue2.mjs +1 -1
- 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/index.vue2.mjs +1 -1
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.d.ts +2 -2
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +4 -4
- package/es/components/ManageMember/MemberInvite/MemberInvite.vue2.mjs +1 -1
- package/es/components/ManageMember/index.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 +2 -2
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +1 -1
- package/es/components/RoomFooter/AudioControl.vue2.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue2.mjs +8 -5
- 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 +5 -7
- 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 +4 -4
- package/es/components/RoomFooter/ScreenShareControl/ScreenWindowSelectDialog.vue2.mjs +1 -1
- package/es/components/RoomFooter/VideoControl.vue2.mjs +2 -2
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +6 -3
- package/es/components/RoomFooter/WhiteboardControl.vue.mjs +14 -4
- 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.vue2.mjs +1 -1
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +2 -2
- 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 +3 -4
- package/es/components/RoomInvite/InvitationNotification.vue2.mjs +2 -2
- package/es/components/RoomInvite/index.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/RoomSetting/index.vue2.mjs +1 -1
- package/es/components/RoomSidebar/index.vue.mjs +1 -1
- package/es/components/ScheduleConference/Contacts.vue2.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 +12 -8
- package/es/components/ScheduleConference/ScheduleRoomControl.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleRoomControl.vue2.mjs +4 -4
- package/es/components/ScheduleConference/ScheduleRoomList.vue2.mjs +2 -2
- package/es/components/ScheduleConference/ShareLink.vue2.mjs +2 -2
- 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 +18 -13
- 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/VideoProfile.vue2.mjs +1 -1
- package/es/components/common/VideoSettingTab.vue2.mjs +2 -2
- package/es/components/common/base/Button.vue.d.ts +1 -1
- package/es/components/common/base/Button.vue2.mjs +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/Dialog/index.vue2.mjs +1 -1
- 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/Input/index.vue2.mjs +1 -1
- package/es/components/common/base/Message/Message.vue.d.ts +4 -4
- package/es/components/common/base/Message/Message.vue2.mjs +1 -1
- package/es/components/common/base/MessageBox/index.vue.d.ts +1 -1
- package/es/components/common/base/MessageBox/index.vue2.mjs +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/common/base/SvgIcon.vue2.mjs +1 -1
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.mjs +7 -6
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue2.mjs +8 -7
- 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/constants/room.mjs +3 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +1 -1
- package/es/extension/chatExtension.mjs +7 -4
- package/es/extension/utils/interact.mjs +1 -1
- package/es/extension/utils/setLanguage.mjs +1 -1
- package/es/hooks/useDeviceManager.mjs +1 -1
- package/es/hooks/useMasterApplyControl.mjs +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +956 -1184
- 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} +111 -114
- package/es/services/manager/roomActionManager.d.ts +3 -0
- package/es/services/manager/roomActionManager.mjs +8 -1
- 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 +24 -42
- package/es/stores/basic.mjs +7 -2
- package/es/stores/room.d.ts +29 -1
- package/es/stores/room.mjs +50 -57
- package/es/utils/common/logger/index.mjs +1 -1
- 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/index.vue2.js +6 -6
- 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 +9 -9
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-quote/index.vue2.js +4 -4
- 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 +11 -11
- 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 +5 -3
- 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/AudioControl.vue2.js +4 -4
- 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 +8 -8
- package/lib/components/RoomFooter/VideoControl.vue2.js +4 -4
- 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.vue2.js +1 -1
- 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 +7 -6
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue2.js +8 -7
- 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 +24 -34
- package/lib/constants/room.js +3 -1
- package/lib/extension/chatExtension.js +5 -2
- package/lib/extension/utils/interact.js +1 -1
- package/lib/extension/utils/setLanguage.js +1 -1
- package/lib/hooks/useMasterApplyControl.js +11 -10
- package/lib/index.d.ts +1 -0
- package/lib/index.js +956 -1184
- 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 +13 -10
- 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 -56
- 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/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 +1 -1
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AITranscription.vue +2 -2
- 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 -68
- 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
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ declare const _default: {
|
|
|
57
57
|
'Others will no longer see your screen after you stop sharing. Are you sure you want to stop?': string;
|
|
58
58
|
'Others will no longer see your screen after you stop sharing.': string;
|
|
59
59
|
'You currently do not have sharing permission, please raise your hand to apply for sharing permission first': string;
|
|
60
|
+
'You currently do not have whiteboard permission, please raise your hand to apply for whiteboard permission first': string;
|
|
60
61
|
Host: string;
|
|
61
62
|
Admin: string;
|
|
62
63
|
RoomOwner: string;
|
|
@@ -218,7 +219,7 @@ declare const _default: {
|
|
|
218
219
|
'You have been banned from text chat': string;
|
|
219
220
|
'You are allowed to text chat': string;
|
|
220
221
|
'kicked out of the room by the host': string;
|
|
221
|
-
'kicked out of the room
|
|
222
|
+
'kicked out of the room': string;
|
|
222
223
|
'kicked out of the room by serve': string;
|
|
223
224
|
'Reject sb on stage failed, please retry': ({ named }: any) => string;
|
|
224
225
|
'Agree sb on stage failed, please retry': ({ named }: any) => string;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -25,7 +25,7 @@ const EN = {
|
|
|
25
25
|
Room: "Room",
|
|
26
26
|
Join: "Join",
|
|
27
27
|
Sure: "Sure",
|
|
28
|
-
"Switch Theme": "
|
|
28
|
+
"Switch Theme": "Theme",
|
|
29
29
|
Layout: "Layout",
|
|
30
30
|
"New Room": "New Room",
|
|
31
31
|
"Room Type": "Room Type",
|
|
@@ -59,6 +59,7 @@ const EN = {
|
|
|
59
59
|
"Others will no longer see your screen after you stop sharing. Are you sure you want to stop?": "Others will no longer see your screen after you stop sharing. Are you sure you want to stop?",
|
|
60
60
|
"Others will no longer see your screen after you stop sharing.": "Others will no longer see your screen after you stop sharing.",
|
|
61
61
|
"You currently do not have sharing permission, please raise your hand to apply for sharing permission first": "You currently do not have sharing permission, please raise your hand to apply for sharing permission first",
|
|
62
|
+
"You currently do not have whiteboard permission, please raise your hand to apply for whiteboard permission first": "You currently do not have whiteboard permission, please raise your hand to apply for whiteboard permission first",
|
|
62
63
|
Host: "Host",
|
|
63
64
|
Admin: "Admin",
|
|
64
65
|
RoomOwner: "RoomOwner",
|
|
@@ -220,7 +221,7 @@ const EN = {
|
|
|
220
221
|
"You have been banned from text chat": "You have been banned from text chat",
|
|
221
222
|
"You are allowed to text chat": "You are allowed to text chat",
|
|
222
223
|
"kicked out of the room by the host": "kicked out of the room by the host",
|
|
223
|
-
"kicked out of the room
|
|
224
|
+
"kicked out of the room": "kicked out of the room",
|
|
224
225
|
"kicked out of the room by serve": "kicked out of the room by serve",
|
|
225
226
|
"Reject sb on stage failed, please retry": ({ named }) => `Reject ${named("name")} on Stage failed, please retry`,
|
|
226
227
|
"Agree sb on stage failed, please retry": ({ named }) => `Agree ${named("name")} on Stage failed, please retry`,
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare const _default: {
|
|
|
54
54
|
'Others will no longer see your screen after you stop sharing. Are you sure you want to stop?': string;
|
|
55
55
|
'Others will no longer see your screen after you stop sharing.': string;
|
|
56
56
|
'You currently do not have sharing permission, please raise your hand to apply for sharing permission first': string;
|
|
57
|
+
'You currently do not have whiteboard permission, please raise your hand to apply for whiteboard permission first': string;
|
|
57
58
|
Host: string;
|
|
58
59
|
Me: string;
|
|
59
60
|
me: string;
|
|
@@ -218,7 +219,7 @@ declare const _default: {
|
|
|
218
219
|
'You have been banned from text chat': string;
|
|
219
220
|
'You are allowed to text chat': string;
|
|
220
221
|
'kicked out of the room by the host': string;
|
|
221
|
-
'kicked out of the room
|
|
222
|
+
'kicked out of the room': string;
|
|
222
223
|
'kicked out of the room by serve': string;
|
|
223
224
|
'Reject sb on stage failed, please retry': ({ named }: any) => string;
|
|
224
225
|
'Agree sb on stage failed, please retry': ({ named }: any) => string;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -56,6 +56,7 @@ const ZH = {
|
|
|
56
56
|
"Others will no longer see your screen after you stop sharing. Are you sure you want to stop?": "是否结束当前的共享屏幕,停止后所有人将无法继续观看屏幕内容",
|
|
57
57
|
"Others will no longer see your screen after you stop sharing.": "停止后所有人将无法继续观看屏幕内容",
|
|
58
58
|
"You currently do not have sharing permission, please raise your hand to apply for sharing permission first": "您当前没有共享权限,请先举手申请上台获取共享权限",
|
|
59
|
+
"You currently do not have whiteboard permission, please raise your hand to apply for whiteboard permission first": "您当前没有白板权限,请先举手申请上台获取白板权限",
|
|
59
60
|
Host: "房主",
|
|
60
61
|
Me: "我",
|
|
61
62
|
me: "我",
|
|
@@ -220,7 +221,7 @@ const ZH = {
|
|
|
220
221
|
"You have been banned from text chat": "您被禁止文字聊天",
|
|
221
222
|
"You are allowed to text chat": "您被允许文字聊天",
|
|
222
223
|
"kicked out of the room by the host": "被主持人踢出房间",
|
|
223
|
-
"kicked out of the room
|
|
224
|
+
"kicked out of the room": "被踢出房间",
|
|
224
225
|
"kicked out of the room by serve": "被服务端踢出房间",
|
|
225
226
|
"Reject sb on stage failed, please retry": ({ named }) => `拒绝 ${named("name")} 上台失败, 请重试`,
|
|
226
227
|
"Agree sb on stage failed, please retry": ({ named }) => `同意 ${named("name")} 上台失败, 请重试`,
|
|
@@ -8,6 +8,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
roomId: string;
|
|
9
9
|
enableScheduledConference: boolean;
|
|
10
10
|
isShowLogo?: boolean;
|
|
11
|
+
isShowHeaderInfo?: boolean;
|
|
11
12
|
}>, {
|
|
12
13
|
userInfo: () => {
|
|
13
14
|
userId: string;
|
|
@@ -18,6 +19,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
19
|
roomId: string;
|
|
19
20
|
enableScheduledConference: boolean;
|
|
20
21
|
isShowLogo: boolean;
|
|
22
|
+
isShowHeaderInfo: boolean;
|
|
21
23
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
24
|
"on-create-room": (...args: any[]) => void;
|
|
23
25
|
"on-enter-room": (...args: any[]) => void;
|
|
@@ -33,6 +35,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
35
|
roomId: string;
|
|
34
36
|
enableScheduledConference: boolean;
|
|
35
37
|
isShowLogo?: boolean;
|
|
38
|
+
isShowHeaderInfo?: boolean;
|
|
36
39
|
}>, {
|
|
37
40
|
userInfo: () => {
|
|
38
41
|
userId: string;
|
|
@@ -43,6 +46,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
46
|
roomId: string;
|
|
44
47
|
enableScheduledConference: boolean;
|
|
45
48
|
isShowLogo: boolean;
|
|
49
|
+
isShowHeaderInfo: boolean;
|
|
46
50
|
}>>> & {
|
|
47
51
|
"onOn-create-room"?: ((...args: any[]) => any) | undefined;
|
|
48
52
|
"onOn-enter-room"?: ((...args: any[]) => any) | undefined;
|
|
@@ -58,6 +62,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
58
62
|
enableScheduledConference: boolean;
|
|
59
63
|
showEditNameInPc: boolean;
|
|
60
64
|
isShowLogo: boolean;
|
|
65
|
+
isShowHeaderInfo: boolean;
|
|
61
66
|
}, {}>;
|
|
62
67
|
export default _default;
|
|
63
68
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
package/lib/preConference.vue.js
CHANGED
|
@@ -4,5 +4,5 @@ const preConference_vue_vue_type_script_setup_true_lang = require("./preConferen
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("./_virtual/_plugin-vue_export-helper.js");
|
|
7
|
-
const preConference = /* @__PURE__ */ _pluginVue_exportHelper.default(preConference_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
7
|
+
const preConference = /* @__PURE__ */ _pluginVue_exportHelper.default(preConference_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-b6e4d0eb"]]);
|
|
8
8
|
exports.default = preConference;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
|
-
const index
|
|
5
|
-
const index$
|
|
4
|
+
const index = require("./components/RoomHeader/UserInfo/index.vue.js");
|
|
5
|
+
const index$1 = require("./components/RoomHome/RoomControl/index.vue.js");
|
|
6
6
|
const Language_vue_vue_type_script_setup_true_lang = require("./components/common/Language.vue.js");
|
|
7
7
|
const SwitchTheme_vue_vue_type_script_setup_true_lang = require("./components/common/SwitchTheme.vue.js");
|
|
8
8
|
require("./services/main.js");
|
|
@@ -10,13 +10,13 @@ const roomService = require("./services/roomService.js");
|
|
|
10
10
|
const types = require("./services/types.js");
|
|
11
11
|
require("./locales/index.js");
|
|
12
12
|
require("@tencentcloud/tuiroom-engine-electron");
|
|
13
|
+
const environment = require("./utils/environment.js");
|
|
13
14
|
require("mitt");
|
|
14
15
|
require("./services/manager/roomActionManager.js");
|
|
15
16
|
require("@tencentcloud/tui-core");
|
|
16
|
-
const environment = require("./utils/environment.js");
|
|
17
17
|
const ScheduleRoomList = require("./components/ScheduleConference/ScheduleRoomList.vue.js");
|
|
18
18
|
const Logo = require("./components/common/Logo.vue.js");
|
|
19
|
-
const index = require("./components/common/base/MessageBox/index.js");
|
|
19
|
+
const index$2 = require("./components/common/base/MessageBox/index.js");
|
|
20
20
|
const Message = require("./components/common/base/Message/Message.js");
|
|
21
21
|
const InvitationNotification = require("./components/RoomInvite/InvitationNotification.vue.js");
|
|
22
22
|
const _hoisted_1 = { class: "header" };
|
|
@@ -38,7 +38,8 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
38
38
|
showEditNameInPc: { type: Boolean, default: false },
|
|
39
39
|
roomId: { default: "" },
|
|
40
40
|
enableScheduledConference: { type: Boolean, default: true },
|
|
41
|
-
isShowLogo: { type: Boolean, default: true }
|
|
41
|
+
isShowLogo: { type: Boolean, default: true },
|
|
42
|
+
isShowHeaderInfo: { type: Boolean, default: true }
|
|
42
43
|
},
|
|
43
44
|
emits: [
|
|
44
45
|
"on-create-room",
|
|
@@ -75,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
75
76
|
callback = () => {
|
|
76
77
|
}
|
|
77
78
|
} = data;
|
|
78
|
-
index.default({
|
|
79
|
+
index$2.default({
|
|
79
80
|
title,
|
|
80
81
|
message,
|
|
81
82
|
duration,
|
|
@@ -105,13 +106,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
105
106
|
id: "pre-conference-container",
|
|
106
107
|
class: Vue.normalizeClass(["pre-conference-container", tuiRoomThemeClass.value])
|
|
107
108
|
}, [
|
|
108
|
-
Vue.createElementVNode("div", _hoisted_1, [
|
|
109
|
+
Vue.withDirectives(Vue.createElementVNode("div", _hoisted_1, [
|
|
109
110
|
Vue.createElementVNode("div", _hoisted_2, [
|
|
110
111
|
Vue.createVNode(SwitchTheme_vue_vue_type_script_setup_true_lang.default, { class: "header-item" })
|
|
111
112
|
]),
|
|
112
113
|
Vue.createElementVNode("div", _hoisted_3, [
|
|
113
114
|
Vue.createVNode(Language_vue_vue_type_script_setup_true_lang.default, { class: "header-item language" }),
|
|
114
|
-
Vue.createVNode(index
|
|
115
|
+
Vue.createVNode(index.default, {
|
|
115
116
|
class: "header-item user-info",
|
|
116
117
|
"user-id": props.userInfo.userId,
|
|
117
118
|
"user-name": props.userInfo.userName,
|
|
@@ -121,8 +122,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
121
122
|
onLogOut: handleLogOut
|
|
122
123
|
}, null, 8, ["user-id", "user-name", "avatar-url", "is-show-edit-name"])
|
|
123
124
|
])
|
|
125
|
+
], 512), [
|
|
126
|
+
[Vue.vShow, props.isShowHeaderInfo]
|
|
124
127
|
]),
|
|
125
|
-
Vue.unref(environment.isMobile) ? (Vue.openBlock(), Vue.createBlock(index$
|
|
128
|
+
Vue.unref(environment.isMobile) ? (Vue.openBlock(), Vue.createBlock(index$1.default, {
|
|
126
129
|
key: 0,
|
|
127
130
|
ref_key: "roomControlRef",
|
|
128
131
|
ref: roomControlRef,
|
|
@@ -136,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
136
139
|
[Vue.vShow, props.isShowLogo]
|
|
137
140
|
]),
|
|
138
141
|
Vue.createElementVNode("div", _hoisted_5, [
|
|
139
|
-
Vue.createVNode(index$
|
|
142
|
+
Vue.createVNode(index$1.default, {
|
|
140
143
|
ref_key: "roomControlRef",
|
|
141
144
|
ref: roomControlRef,
|
|
142
145
|
"given-room-id": props.roomId,
|
package/lib/services/index.d.ts
CHANGED
|
@@ -3,13 +3,11 @@ import { IRoomService } from '../types';
|
|
|
3
3
|
export declare class ChatManager {
|
|
4
4
|
static instance?: ChatManager;
|
|
5
5
|
private service;
|
|
6
|
-
private isRoomType;
|
|
7
6
|
constructor(service: IRoomService);
|
|
8
7
|
static getInstance(ctx: IRoomService): ChatManager;
|
|
9
8
|
static destroyInstance(): void;
|
|
10
9
|
dispose(): void;
|
|
11
10
|
reset(): void;
|
|
12
|
-
setChatType(type: boolean): void;
|
|
13
11
|
onNotifyEvent(eventName: string, subKey: string, options?: any): Promise<void>;
|
|
14
12
|
private onLanguageChanged;
|
|
15
13
|
private onThemeChanged;
|
|
@@ -14,7 +14,6 @@ const THEME = {
|
|
|
14
14
|
const _ChatManager = class _ChatManager {
|
|
15
15
|
constructor(service) {
|
|
16
16
|
__publicField(this, "service");
|
|
17
|
-
__publicField(this, "isRoomType", false);
|
|
18
17
|
this.service = service;
|
|
19
18
|
this.bindEventContext();
|
|
20
19
|
this.bindEvent();
|
|
@@ -43,20 +42,15 @@ const _ChatManager = class _ChatManager {
|
|
|
43
42
|
this
|
|
44
43
|
);
|
|
45
44
|
}
|
|
46
|
-
setChatType(type) {
|
|
47
|
-
this.isRoomType = type;
|
|
48
|
-
}
|
|
49
45
|
async onNotifyEvent(eventName, subKey, options) {
|
|
50
|
-
if (
|
|
46
|
+
if (options.groupID !== this.service.basicStore.roomId) return;
|
|
51
47
|
if (eventName === TUICore.TUIConstants.TUIChat.EVENT.CHAT_STATE_CHANGED) {
|
|
52
48
|
if (subKey === TUICore.TUIConstants.TUIChat.EVENT_SUB_KEY.CHAT_OPENED) {
|
|
53
|
-
TUICore.TUICore.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
});
|
|
49
|
+
TUICore.TUICore.notifyEvent(
|
|
50
|
+
TUICore.TUIConstants.TUIChat.EVENT.CHAT_TYPE_CHANGED,
|
|
51
|
+
TUICore.TUIConstants.TUIChat.EVENT_SUB_KEY.CHANGE_SUCCESS,
|
|
52
|
+
{ chatType: TUICore.TUIConstants.TUIChat.TYPE.ROOM }
|
|
53
|
+
);
|
|
60
54
|
const result = Object.fromEntries(
|
|
61
55
|
this.service.roomStore.userList.map((item) => [
|
|
62
56
|
item.userId,
|
|
@@ -6,36 +6,39 @@ interface ObserverData {
|
|
|
6
6
|
streamType: TUIVideoStreamType;
|
|
7
7
|
isIntersection?: boolean;
|
|
8
8
|
}
|
|
9
|
+
export declare enum StreamPlayMode {
|
|
10
|
+
PLAY = "play",
|
|
11
|
+
STOP = "stop",
|
|
12
|
+
PLAY_IN_VISIBLE = "playInVisible"
|
|
13
|
+
}
|
|
14
|
+
export declare enum StreamPlayQuality {
|
|
15
|
+
HIGH = "high",
|
|
16
|
+
LOW = "low",
|
|
17
|
+
Default = "default"
|
|
18
|
+
}
|
|
9
19
|
export declare class MediaManager {
|
|
10
20
|
private service;
|
|
11
21
|
intersectionObserver: IntersectionObserver | null;
|
|
12
22
|
observerDataMap: Map<HTMLElement | string, ObserverData>;
|
|
13
23
|
observerRoot: HTMLElement | null;
|
|
14
24
|
constructor(service: IRoomService);
|
|
15
|
-
private getRecordStreamType;
|
|
16
|
-
private intersectionObserverCallback;
|
|
17
|
-
private initIntersectionObserver;
|
|
18
25
|
startPlayVideo(options: {
|
|
19
26
|
userId: string;
|
|
20
27
|
streamType: TUIVideoStreamType;
|
|
21
28
|
view: HTMLElement;
|
|
22
29
|
observerViewInVisible: boolean;
|
|
23
30
|
}): Promise<void>;
|
|
24
|
-
doStartPlayVideo(options: {
|
|
25
|
-
userId: string;
|
|
26
|
-
streamType: TUIVideoStreamType;
|
|
27
|
-
view: (HTMLElement | string | null)[];
|
|
28
|
-
}): Promise<void>;
|
|
29
|
-
private setVideoRenderParams;
|
|
30
31
|
stopPlayVideo(options: {
|
|
31
32
|
userId: string;
|
|
32
33
|
streamType: TUIVideoStreamType;
|
|
33
34
|
view: HTMLElement;
|
|
34
35
|
}): Promise<void>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
private initIntersectionObserver;
|
|
37
|
+
private intersectionObserverCallback;
|
|
38
|
+
private getPlayStreamType;
|
|
39
|
+
private doStartPlayVideo;
|
|
40
|
+
private setVideoRenderParams;
|
|
41
|
+
private doStopPlayVideo;
|
|
39
42
|
private onUserAudioStateChanged;
|
|
40
43
|
private onUserVideoStateChanged;
|
|
41
44
|
dispose(): void;
|
|
@@ -8,6 +8,18 @@ const types = require("../types.js");
|
|
|
8
8
|
const environment = require("../../utils/environment.js");
|
|
9
9
|
const message = require("../../constants/message.js");
|
|
10
10
|
const index = require("../../utils/common/logger/index.js");
|
|
11
|
+
var StreamPlayMode = /* @__PURE__ */ ((StreamPlayMode2) => {
|
|
12
|
+
StreamPlayMode2["PLAY"] = "play";
|
|
13
|
+
StreamPlayMode2["STOP"] = "stop";
|
|
14
|
+
StreamPlayMode2["PLAY_IN_VISIBLE"] = "playInVisible";
|
|
15
|
+
return StreamPlayMode2;
|
|
16
|
+
})(StreamPlayMode || {});
|
|
17
|
+
var StreamPlayQuality = /* @__PURE__ */ ((StreamPlayQuality2) => {
|
|
18
|
+
StreamPlayQuality2["HIGH"] = "high";
|
|
19
|
+
StreamPlayQuality2["LOW"] = "low";
|
|
20
|
+
StreamPlayQuality2["Default"] = "default";
|
|
21
|
+
return StreamPlayQuality2;
|
|
22
|
+
})(StreamPlayQuality || {});
|
|
11
23
|
class MediaManager {
|
|
12
24
|
constructor(service) {
|
|
13
25
|
__publicField(this, "service");
|
|
@@ -41,11 +53,75 @@ class MediaManager {
|
|
|
41
53
|
this.service = service;
|
|
42
54
|
this.bindRoomEngineEvents();
|
|
43
55
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
async startPlayVideo(options) {
|
|
57
|
+
var _a, _b, _c;
|
|
58
|
+
const { userId, streamType, view, observerViewInVisible } = options;
|
|
59
|
+
index.default.info(
|
|
60
|
+
"MediaManager.startPlayVideo",
|
|
61
|
+
userId,
|
|
62
|
+
streamType,
|
|
63
|
+
view,
|
|
64
|
+
observerViewInVisible
|
|
65
|
+
);
|
|
66
|
+
const streamInfo = this.service.roomStore.getStreamInfo(userId, streamType);
|
|
67
|
+
if (!streamInfo) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
(_a = streamInfo.playDomMap) == null ? void 0 : _a.set(view, streamType);
|
|
71
|
+
if (!observerViewInVisible) {
|
|
72
|
+
await this.doStartPlayVideo({ userId, streamType });
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.initIntersectionObserver();
|
|
76
|
+
this.observerDataMap.set(
|
|
77
|
+
view,
|
|
78
|
+
Object.assign(this.observerDataMap.get(view) || {}, {
|
|
79
|
+
userId,
|
|
80
|
+
streamType
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
(_b = this.intersectionObserver) == null ? void 0 : _b.observe(view);
|
|
84
|
+
if ((_c = this.observerDataMap.get(view)) == null ? void 0 : _c.isIntersection) {
|
|
85
|
+
await this.doStartPlayVideo({ userId, streamType });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// If only one view wants to stop playing, update the viewList, but don't stop the stream.
|
|
89
|
+
// If no view is passed in, the stream is stopped.
|
|
90
|
+
async stopPlayVideo(options) {
|
|
91
|
+
var _a;
|
|
92
|
+
const { userId, streamType, view } = options;
|
|
93
|
+
index.default.info("MediaManager.stopPlayVideo", userId, streamType, view);
|
|
94
|
+
const streamInfo = this.service.roomStore.getStreamInfo(userId, streamType);
|
|
95
|
+
if (!(streamInfo == null ? void 0 : streamInfo.playDomMap) || (streamInfo == null ? void 0 : streamInfo.playDomMap.size) === 0) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (this.observerDataMap.get(view)) {
|
|
99
|
+
this.observerDataMap.delete(view);
|
|
100
|
+
(_a = this.intersectionObserver) == null ? void 0 : _a.unobserve(view);
|
|
101
|
+
}
|
|
102
|
+
streamInfo == null ? void 0 : streamInfo.playDomMap.delete(view);
|
|
103
|
+
if ((streamInfo == null ? void 0 : streamInfo.playDomMap.size) > 0) {
|
|
104
|
+
await this.doStartPlayVideo({
|
|
105
|
+
userId,
|
|
106
|
+
streamType
|
|
107
|
+
});
|
|
108
|
+
} else {
|
|
109
|
+
await this.doStopPlayVideo(options);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
initIntersectionObserver() {
|
|
113
|
+
if (!this.intersectionObserver || document.getElementById("roomContainer") !== this.observerRoot) {
|
|
114
|
+
const observerRoot = document.getElementById("roomContainer");
|
|
115
|
+
this.intersectionObserver = new IntersectionObserver(
|
|
116
|
+
this.intersectionObserverCallback.bind(this),
|
|
117
|
+
{
|
|
118
|
+
root: observerRoot,
|
|
119
|
+
rootMargin: "0px"
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
this.observerDataMap = /* @__PURE__ */ new Map();
|
|
123
|
+
this.observerRoot = observerRoot;
|
|
47
124
|
}
|
|
48
|
-
return streamType;
|
|
49
125
|
}
|
|
50
126
|
intersectionObserverCallback(entries) {
|
|
51
127
|
entries.forEach((entry) => {
|
|
@@ -63,16 +139,19 @@ class MediaManager {
|
|
|
63
139
|
if (!streamInfo) {
|
|
64
140
|
return;
|
|
65
141
|
}
|
|
66
|
-
|
|
67
|
-
if (isIntersecting && (playDomList == null ? void 0 : playDomList.length)) {
|
|
142
|
+
if (isIntersecting) {
|
|
68
143
|
observerData.isIntersection = true;
|
|
69
|
-
|
|
144
|
+
if ((streamInfo == null ? void 0 : streamInfo.playDomMap) && (streamInfo == null ? void 0 : streamInfo.playDomMap.size) > 0) {
|
|
145
|
+
this.doStartPlayVideo({ userId, streamType });
|
|
146
|
+
}
|
|
70
147
|
} else {
|
|
71
148
|
observerData.isIntersection = false;
|
|
72
|
-
const isContinuePlay =
|
|
149
|
+
const isContinuePlay = Array.from(
|
|
150
|
+
((_a = streamInfo == null ? void 0 : streamInfo.playDomMap) == null ? void 0 : _a.keys()) || []
|
|
151
|
+
).find(
|
|
73
152
|
(item) => {
|
|
74
153
|
var _a2;
|
|
75
|
-
return (_a2 = this.observerDataMap.get(item)) == null ? void 0 : _a2.isIntersection;
|
|
154
|
+
return !this.observerDataMap.get(item) || ((_a2 = this.observerDataMap.get(item)) == null ? void 0 : _a2.isIntersection);
|
|
76
155
|
}
|
|
77
156
|
);
|
|
78
157
|
if (!isContinuePlay) {
|
|
@@ -81,79 +160,30 @@ class MediaManager {
|
|
|
81
160
|
}
|
|
82
161
|
});
|
|
83
162
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
this.intersectionObserverCallback.bind(this),
|
|
89
|
-
{
|
|
90
|
-
root: observerRoot,
|
|
91
|
-
rootMargin: "0px"
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
this.observerDataMap = /* @__PURE__ */ new Map();
|
|
95
|
-
this.observerRoot = observerRoot;
|
|
163
|
+
getPlayStreamType(userId, streamType) {
|
|
164
|
+
var _a;
|
|
165
|
+
if (streamType === TUIRoomEngine.TUIVideoStreamType.kScreenStream) {
|
|
166
|
+
return streamType;
|
|
96
167
|
}
|
|
97
|
-
}
|
|
98
|
-
async startPlayVideo(options) {
|
|
99
|
-
var _a, _b, _c, _d;
|
|
100
|
-
const { userId, streamType, view, observerViewInVisible } = options;
|
|
101
|
-
index.default.info(
|
|
102
|
-
"MediaManager.startPlayVideo",
|
|
103
|
-
userId,
|
|
104
|
-
streamType,
|
|
105
|
-
view,
|
|
106
|
-
observerViewInVisible
|
|
107
|
-
);
|
|
108
168
|
const streamInfo = this.service.roomStore.getStreamInfo(userId, streamType);
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
newPlayDomList.push(view);
|
|
114
|
-
newPlayDomList = [...new Set(newPlayDomList)];
|
|
115
|
-
if (!observerViewInVisible) {
|
|
116
|
-
this.service.roomStore.updateStreamInfo({
|
|
117
|
-
userId,
|
|
118
|
-
streamType,
|
|
119
|
-
playDomList: newPlayDomList
|
|
120
|
-
});
|
|
121
|
-
await this.doStartPlayVideo({ userId, streamType, view: newPlayDomList });
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
this.initIntersectionObserver();
|
|
125
|
-
(_b = streamInfo == null ? void 0 : streamInfo.playDomList) == null ? void 0 : _b.forEach((playDom) => {
|
|
126
|
-
var _a2, _b2, _c2;
|
|
127
|
-
if (!newPlayDomList.includes(playDom)) {
|
|
128
|
-
if (((_a2 = this.observerDataMap.get(playDom)) == null ? void 0 : _a2.userId) === userId && this.getRecordStreamType(
|
|
129
|
-
(_b2 = this.observerDataMap.get(playDom)) == null ? void 0 : _b2.streamType
|
|
130
|
-
) === this.getRecordStreamType(streamType)) {
|
|
131
|
-
this.observerDataMap.delete(playDom);
|
|
132
|
-
(_c2 = this.intersectionObserver) == null ? void 0 : _c2.unobserve(playDom);
|
|
133
|
-
}
|
|
169
|
+
if ((streamInfo == null ? void 0 : streamInfo.playDomMap) && (streamInfo == null ? void 0 : streamInfo.playDomMap.size) > 0) {
|
|
170
|
+
const playStreamTypeList = Array.from((_a = streamInfo == null ? void 0 : streamInfo.playDomMap) == null ? void 0 : _a.values());
|
|
171
|
+
if (playStreamTypeList.includes(TUIRoomEngine.TUIVideoStreamType.kCameraStream)) {
|
|
172
|
+
return TUIRoomEngine.TUIVideoStreamType.kCameraStream;
|
|
134
173
|
}
|
|
135
|
-
|
|
136
|
-
this.service.roomStore.updateStreamInfo({
|
|
137
|
-
userId,
|
|
138
|
-
streamType,
|
|
139
|
-
playDomList: newPlayDomList
|
|
140
|
-
});
|
|
141
|
-
this.observerDataMap.set(
|
|
142
|
-
view,
|
|
143
|
-
Object.assign(this.observerDataMap.get(view) || {}, {
|
|
144
|
-
userId,
|
|
145
|
-
streamType
|
|
146
|
-
})
|
|
147
|
-
);
|
|
148
|
-
(_c = this.intersectionObserver) == null ? void 0 : _c.observe(view);
|
|
149
|
-
if ((_d = this.observerDataMap.get(view)) == null ? void 0 : _d.isIntersection) {
|
|
150
|
-
await this.doStartPlayVideo({ userId, streamType, view: newPlayDomList });
|
|
174
|
+
return TUIRoomEngine.TUIVideoStreamType.kCameraStreamLow;
|
|
151
175
|
}
|
|
176
|
+
return streamType;
|
|
152
177
|
}
|
|
153
178
|
async doStartPlayVideo(options) {
|
|
154
179
|
var _a, _b, _c;
|
|
155
|
-
const { userId, streamType
|
|
156
|
-
const
|
|
180
|
+
const { userId, streamType } = options;
|
|
181
|
+
const streamInfo = this.service.roomStore.getStreamInfo(userId, streamType);
|
|
182
|
+
if (!streamInfo) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const playStreamType = this.getPlayStreamType(userId, streamType);
|
|
186
|
+
const viewIdList = Array.from(streamInfo.playDomMap.keys()).map((item) => {
|
|
157
187
|
if (item instanceof HTMLElement) {
|
|
158
188
|
return item == null ? void 0 : item.id;
|
|
159
189
|
}
|
|
@@ -169,13 +199,13 @@ class MediaManager {
|
|
|
169
199
|
} else {
|
|
170
200
|
(_b = this.service.roomEngine.instance) == null ? void 0 : _b.setRemoteVideoView({
|
|
171
201
|
userId,
|
|
172
|
-
streamType,
|
|
202
|
+
streamType: playStreamType,
|
|
173
203
|
view: viewIdList
|
|
174
204
|
});
|
|
175
205
|
await this.setVideoRenderParams({ userId, streamType });
|
|
176
206
|
await ((_c = this.service.roomEngine.instance) == null ? void 0 : _c.startPlayRemoteVideo({
|
|
177
207
|
userId,
|
|
178
|
-
streamType
|
|
208
|
+
streamType: playStreamType
|
|
179
209
|
}));
|
|
180
210
|
}
|
|
181
211
|
this.service.roomStore.updateStreamInfo({
|
|
@@ -201,41 +231,6 @@ class MediaManager {
|
|
|
201
231
|
}));
|
|
202
232
|
}
|
|
203
233
|
}
|
|
204
|
-
// If only one view wants to stop playing, update the viewList, but don't stop the stream.
|
|
205
|
-
// If no view is passed in, the stream is stopped.
|
|
206
|
-
async stopPlayVideo(options) {
|
|
207
|
-
var _a;
|
|
208
|
-
const { userId, streamType, view } = options;
|
|
209
|
-
index.default.info("MediaManager.stopPlayVideo", userId, streamType, view);
|
|
210
|
-
const streamInfo = this.service.roomStore.getStreamInfo(userId, streamType);
|
|
211
|
-
if (!(streamInfo == null ? void 0 : streamInfo.playDomList) || (streamInfo == null ? void 0 : streamInfo.playDomList.length) === 0) {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
if (this.observerDataMap.get(view)) {
|
|
215
|
-
this.observerDataMap.delete(view);
|
|
216
|
-
(_a = this.intersectionObserver) == null ? void 0 : _a.unobserve(view);
|
|
217
|
-
}
|
|
218
|
-
const newPlayDomList = streamInfo == null ? void 0 : streamInfo.playDomList.slice(0).filter((item) => item !== view);
|
|
219
|
-
if (newPlayDomList.length > 0) {
|
|
220
|
-
this.service.roomStore.updateStreamInfo({
|
|
221
|
-
userId,
|
|
222
|
-
streamType,
|
|
223
|
-
playDomList: newPlayDomList
|
|
224
|
-
});
|
|
225
|
-
await this.doStartPlayVideo({
|
|
226
|
-
userId,
|
|
227
|
-
streamType,
|
|
228
|
-
view: newPlayDomList
|
|
229
|
-
});
|
|
230
|
-
} else {
|
|
231
|
-
this.service.roomStore.updateStreamInfo({
|
|
232
|
-
userId,
|
|
233
|
-
streamType,
|
|
234
|
-
playDomList: []
|
|
235
|
-
});
|
|
236
|
-
await this.doStopPlayVideo(options);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
234
|
async doStopPlayVideo(options) {
|
|
240
235
|
var _a, _b;
|
|
241
236
|
const { userId, streamType } = options;
|
|
@@ -296,3 +291,5 @@ class MediaManager {
|
|
|
296
291
|
}
|
|
297
292
|
}
|
|
298
293
|
exports.MediaManager = MediaManager;
|
|
294
|
+
exports.StreamPlayMode = StreamPlayMode;
|
|
295
|
+
exports.StreamPlayQuality = StreamPlayQuality;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TUIRoomType } from '@tencentcloud/tuiroom-engine-electron';
|
|
2
2
|
import { IRoomService, RoomParam } from '../types';
|
|
3
3
|
|
|
4
|
+
export declare enum FetchRoomInfoErrorCode {
|
|
5
|
+
ROOM_NOT_EXIST = -2100
|
|
6
|
+
}
|
|
4
7
|
export interface DeviceParams {
|
|
5
8
|
isOpenCamera?: boolean;
|
|
6
9
|
isOpenMicrophone?: boolean;
|
|
@@ -12,6 +12,10 @@ const smallParam = new TUIRoomEngine.TRTCVideoEncParam();
|
|
|
12
12
|
smallParam.videoResolution = TUIRoomEngine.TRTCVideoResolution.TRTCVideoResolution_640_360;
|
|
13
13
|
smallParam.videoFps = 10;
|
|
14
14
|
smallParam.videoBitrate = 550;
|
|
15
|
+
var FetchRoomInfoErrorCode = /* @__PURE__ */ ((FetchRoomInfoErrorCode2) => {
|
|
16
|
+
FetchRoomInfoErrorCode2[FetchRoomInfoErrorCode2["ROOM_NOT_EXIST"] = -2100] = "ROOM_NOT_EXIST";
|
|
17
|
+
return FetchRoomInfoErrorCode2;
|
|
18
|
+
})(FetchRoomInfoErrorCode || {});
|
|
15
19
|
class RoomActionManager {
|
|
16
20
|
constructor(service) {
|
|
17
21
|
__publicField(this, "service");
|
|
@@ -29,6 +33,7 @@ class RoomActionManager {
|
|
|
29
33
|
password
|
|
30
34
|
} = params;
|
|
31
35
|
const roomMode = isSeatEnabled ? "SpeakAfterTakingSeat" : "FreeToSpeak";
|
|
36
|
+
this.service.roomStore.resetRoomData();
|
|
32
37
|
await this.createRoom({
|
|
33
38
|
roomId,
|
|
34
39
|
roomName,
|
|
@@ -64,6 +69,7 @@ class RoomActionManager {
|
|
|
64
69
|
defaultSpeakerId,
|
|
65
70
|
password
|
|
66
71
|
} = params;
|
|
72
|
+
this.service.roomStore.resetRoomData();
|
|
67
73
|
await this.enterRoom({
|
|
68
74
|
roomId,
|
|
69
75
|
roomParam: {
|
|
@@ -382,4 +388,5 @@ class RoomActionManager {
|
|
|
382
388
|
return await ((_a = this.service.roomEngine.instance) == null ? void 0 : _a.fetchRoomInfo(options));
|
|
383
389
|
}
|
|
384
390
|
}
|
|
391
|
+
exports.FetchRoomInfoErrorCode = FetchRoomInfoErrorCode;
|
|
385
392
|
exports.RoomActionManager = RoomActionManager;
|
|
@@ -82,6 +82,7 @@ export declare class ScheduleConferenceManager implements IScheduleConferenceMan
|
|
|
82
82
|
avatar: string;
|
|
83
83
|
nick: string;
|
|
84
84
|
}>): void;
|
|
85
|
+
generateRoomId(attempt?: number): Promise<string>;
|
|
85
86
|
scheduleConference(options: IScheduleConferenceOptions): Promise<any>;
|
|
86
87
|
cancelConference(options: {
|
|
87
88
|
roomId: string;
|