@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/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue2.js
RENAMED
|
@@ -1,43 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
|
-
const pinia = require("pinia");
|
|
5
|
-
const electron = require("electron");
|
|
6
4
|
const SvgIcon = require("../../../common/base/SvgIcon.vue.js");
|
|
7
5
|
const ScreenSharingIcon = require("../../../common/icons/ScreenSharingIcon.vue.js");
|
|
8
6
|
const Button = require("../../../common/base/Button.vue.js");
|
|
9
7
|
const index$1 = require("../../../common/base/Dialog/index.vue.js");
|
|
10
8
|
const useMitt = require("../../../../hooks/useMitt.js");
|
|
11
9
|
const index = require("../../../../locales/index.js");
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
require("../../../../services/main.js");
|
|
15
|
-
const roomService = require("../../../../services/roomService.js");
|
|
16
|
-
require("@tencentcloud/tuiroom-engine-electron");
|
|
17
|
-
require("mitt");
|
|
18
|
-
require("../../../../services/manager/roomActionManager.js");
|
|
19
|
-
require("@tencentcloud/tui-core");
|
|
20
|
-
require("../../../../utils/environment.js");
|
|
21
|
-
const _hoisted_1 = { class: "local-screen-container" };
|
|
22
|
-
const _hoisted_2 = { class: "local-screen-info" };
|
|
23
|
-
const _hoisted_3 = { class: "text" };
|
|
10
|
+
const _hoisted_1 = { class: "local-screen-info" };
|
|
11
|
+
const _hoisted_2 = { class: "text" };
|
|
24
12
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
25
13
|
__name: "index",
|
|
26
|
-
props: {
|
|
27
|
-
isMiniRegion: { type: Boolean }
|
|
28
|
-
},
|
|
29
14
|
setup(__props) {
|
|
30
|
-
var _a;
|
|
31
|
-
const roomStore = room.useRoomStore();
|
|
32
15
|
const { t } = index.useI18n();
|
|
33
16
|
const showStopShareRegion = Vue.ref(false);
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
return isAnnotationVisiable.value ? t("End annotating") : t("Start annotating");
|
|
37
|
-
});
|
|
38
|
-
Vue.onMounted(() => {
|
|
39
|
-
isAnnotationVisiable.value = false;
|
|
40
|
-
});
|
|
17
|
+
const localScreenContainerRef = Vue.ref();
|
|
18
|
+
const isMiniRegion = Vue.ref(false);
|
|
41
19
|
function openStopConfirmDialog() {
|
|
42
20
|
showStopShareRegion.value = true;
|
|
43
21
|
}
|
|
@@ -45,30 +23,28 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
45
23
|
showStopShareRegion.value = false;
|
|
46
24
|
useMitt.default.emit("ScreenShare:stopScreenShare");
|
|
47
25
|
}
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
roomService.roomService.dataReportManager.reportCount(dataReportManager.MetricsKey.startAnnotating);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
(_a = electron.ipcRenderer) == null ? void 0 : _a.on("annotation:stop-from-annotation-window", () => {
|
|
61
|
-
isAnnotationVisiable.value = false;
|
|
62
|
-
roomService.roomService.dataReportManager.reportCount(dataReportManager.MetricsKey.stopAnnotating);
|
|
26
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
27
|
+
var _a;
|
|
28
|
+
isMiniRegion.value = ((_a = localScreenContainerRef.value) == null ? void 0 : _a.offsetHeight) <= 200;
|
|
29
|
+
});
|
|
30
|
+
Vue.onMounted(() => {
|
|
31
|
+
resizeObserver.observe(localScreenContainerRef.value);
|
|
32
|
+
});
|
|
33
|
+
Vue.onBeforeUnmount(() => {
|
|
34
|
+
resizeObserver.unobserve(localScreenContainerRef.value);
|
|
63
35
|
});
|
|
64
36
|
return (_ctx, _cache) => {
|
|
65
|
-
return Vue.openBlock(), Vue.createElementBlock("div",
|
|
37
|
+
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
38
|
+
class: "local-screen-container",
|
|
39
|
+
ref_key: "localScreenContainerRef",
|
|
40
|
+
ref: localScreenContainerRef
|
|
41
|
+
}, [
|
|
66
42
|
Vue.createElementVNode("div", {
|
|
67
|
-
class: Vue.normalizeClass(["local-screen-control-container", { mini:
|
|
43
|
+
class: Vue.normalizeClass(["local-screen-control-container", { mini: isMiniRegion.value }])
|
|
68
44
|
}, [
|
|
69
|
-
Vue.createElementVNode("div",
|
|
45
|
+
Vue.createElementVNode("div", _hoisted_1, [
|
|
70
46
|
Vue.createVNode(SvgIcon.default, { icon: ScreenSharingIcon.default }),
|
|
71
|
-
Vue.createElementVNode("span",
|
|
47
|
+
Vue.createElementVNode("span", _hoisted_2, Vue.toDisplayString(Vue.unref(t)("You are sharing the screen...")), 1)
|
|
72
48
|
]),
|
|
73
49
|
Vue.createVNode(Button.default, {
|
|
74
50
|
size: "default",
|
|
@@ -80,17 +56,6 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
80
56
|
]),
|
|
81
57
|
_: 1
|
|
82
58
|
}),
|
|
83
|
-
Vue.unref(isSharingScreen) ? (Vue.openBlock(), Vue.createBlock(Button.default, {
|
|
84
|
-
key: 0,
|
|
85
|
-
size: "default",
|
|
86
|
-
class: "toggle-annotating-button",
|
|
87
|
-
onClick: toggleAnnotationWindow
|
|
88
|
-
}, {
|
|
89
|
-
default: Vue.withCtx(() => [
|
|
90
|
-
Vue.createTextVNode(Vue.toDisplayString(annotationSwitchLabel.value), 1)
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
})) : Vue.createCommentVNode("", true),
|
|
94
59
|
Vue.createVNode(index$1.default, {
|
|
95
60
|
modelValue: showStopShareRegion.value,
|
|
96
61
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showStopShareRegion.value = $event),
|
|
@@ -132,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
132
97
|
_: 1
|
|
133
98
|
}, 8, ["modelValue", "title"])
|
|
134
99
|
], 2)
|
|
135
|
-
]);
|
|
100
|
+
], 512);
|
|
136
101
|
};
|
|
137
102
|
}
|
|
138
103
|
});
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const StreamCover = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const StreamCover = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-fad4ad60"]]);
|
|
7
7
|
exports.default = StreamCover;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StreamInfo } from '../../../../stores/room';
|
|
2
|
+
import { StreamPlayMode, StreamPlayQuality } from '../../../../services/manager/mediaManager';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
streamInfoList?: StreamInfo[];
|
|
6
|
+
column: number;
|
|
7
|
+
row: number;
|
|
8
|
+
fillMode?: 'fill' | 'contain';
|
|
9
|
+
aspectRatio?: string;
|
|
10
|
+
streamPlayQuality?: StreamPlayQuality;
|
|
11
|
+
streamPlayMode?: StreamPlayMode;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"stream-view-dblclick": (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
16
|
+
"onStream-view-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("
|
|
6
|
-
const StreamList = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
+
const StreamList = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-98fb6ce5"]]);
|
|
7
7
|
exports.default = StreamList;
|
|
@@ -2,42 +2,60 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
const index = require("../StreamRegion/index.vue.js");
|
|
5
|
-
const environment = require("
|
|
5
|
+
const environment = require("../../../../utils/environment.js");
|
|
6
|
+
const domOperation = require("../../../../utils/domOperation.js");
|
|
7
|
+
const utils = require("../../../../utils/utils.js");
|
|
6
8
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
7
9
|
__name: "index",
|
|
8
10
|
props: {
|
|
9
11
|
streamInfoList: {},
|
|
12
|
+
column: {},
|
|
13
|
+
row: {},
|
|
14
|
+
fillMode: {},
|
|
10
15
|
aspectRatio: {},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isNeedPlayStream: { type: Boolean, default: true },
|
|
14
|
-
observerViewInVisible: { type: Boolean }
|
|
16
|
+
streamPlayQuality: {},
|
|
17
|
+
streamPlayMode: {}
|
|
15
18
|
},
|
|
16
|
-
emits: ["
|
|
17
|
-
setup(__props) {
|
|
19
|
+
emits: ["stream-view-dblclick"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
const singleStreamMargin = environment.isPC ? 8 : 4;
|
|
18
23
|
const props = __props;
|
|
19
24
|
const streamListContainerRef = Vue.ref();
|
|
20
25
|
const streamListRef = Vue.ref();
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
() => props.horizontalCount * props.verticalCount
|
|
24
|
-
);
|
|
25
|
-
const isGridLayout = Vue.computed(
|
|
26
|
-
() => props.horizontalCount !== Infinity && props.verticalCount !== Infinity
|
|
26
|
+
const isEqualPointsLayout = Vue.computed(
|
|
27
|
+
() => props.column !== Infinity && props.row !== Infinity
|
|
27
28
|
);
|
|
29
|
+
const isHorizontalInfinityLayout = Vue.computed(() => props.column === Infinity);
|
|
30
|
+
const isVerticalInfinityLayout = Vue.computed(() => props.row === Infinity);
|
|
28
31
|
Vue.watch(
|
|
29
|
-
() => props.
|
|
30
|
-
(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
currentPageIndex.value = Math.ceil(val / maxCountEveryPage.value) - 1;
|
|
36
|
-
handleEqualPointsLayout();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
32
|
+
() => [props.column, props.row],
|
|
33
|
+
async () => {
|
|
34
|
+
await Vue.nextTick();
|
|
35
|
+
handleLayout();
|
|
36
|
+
},
|
|
37
|
+
{ immediate: true }
|
|
39
38
|
);
|
|
40
|
-
const
|
|
39
|
+
const validStreamInfoList = Vue.computed(() => {
|
|
40
|
+
var _a;
|
|
41
|
+
return (_a = props.streamInfoList) == null ? void 0 : _a.filter(
|
|
42
|
+
(item) => item && item.userId && !utils.isUndefined(item.streamType)
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
function handleLayout() {
|
|
46
|
+
if (isHorizontalInfinityLayout.value) {
|
|
47
|
+
handleHorizontalInfinityLayout();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (isVerticalInfinityLayout.value) {
|
|
51
|
+
handleVerticalInfinityLayout();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (isEqualPointsLayout.value) {
|
|
55
|
+
handleEqualPointsLayout();
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
41
59
|
const streamListStyle = Vue.ref({
|
|
42
60
|
width: "0",
|
|
43
61
|
height: "0"
|
|
@@ -61,19 +79,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
61
79
|
return Number(props.aspectRatio.split(":")[1]);
|
|
62
80
|
});
|
|
63
81
|
async function handleEqualPointsLayout() {
|
|
64
|
-
|
|
65
|
-
if (number <= 0 || !streamListContainerRef.value) {
|
|
82
|
+
if (!props.streamInfoList || !streamListContainerRef.value) {
|
|
66
83
|
return;
|
|
67
84
|
}
|
|
68
85
|
const containerRect = streamListContainerRef.value.getBoundingClientRect();
|
|
69
86
|
const containerWidth = Math.floor(containerRect.width);
|
|
70
87
|
const containerHeight = Math.floor(containerRect.height);
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
let width = containerWidth;
|
|
76
|
-
let height = containerWidth;
|
|
88
|
+
const contentWidth = (containerWidth - props.column * singleStreamMargin) / props.column;
|
|
89
|
+
const contentHeight = (containerHeight - props.row * singleStreamMargin) / props.row;
|
|
90
|
+
let width = contentWidth;
|
|
91
|
+
let height = contentHeight;
|
|
77
92
|
if (widthRatio.value && heightRatio.value) {
|
|
78
93
|
const scaleWidth = contentWidth / widthRatio.value;
|
|
79
94
|
const scaleHeight = contentHeight / heightRatio.value;
|
|
@@ -88,76 +103,26 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
88
103
|
}
|
|
89
104
|
streamStyle.value.width = `${width}px`;
|
|
90
105
|
streamStyle.value.height = `${height}px`;
|
|
91
|
-
streamListStyle.value.width = `${
|
|
92
|
-
streamListStyle.value.height = `${
|
|
93
|
-
}
|
|
94
|
-
function getContentSize(element) {
|
|
95
|
-
const computedStyle = getComputedStyle(element);
|
|
96
|
-
const paddingTop = Number(computedStyle.paddingTop.replace("px", ""));
|
|
97
|
-
const paddingBottom = Number(computedStyle.paddingBottom.replace("px", ""));
|
|
98
|
-
const borderTop = Number(computedStyle.borderTopWidth.replace("px", ""));
|
|
99
|
-
const borderBottom = Number(
|
|
100
|
-
computedStyle.borderBottomWidth.replace("px", "")
|
|
101
|
-
);
|
|
102
|
-
const paddingLeft = Number(computedStyle.paddingLeft.replace("px", ""));
|
|
103
|
-
const paddingRight = Number(computedStyle.paddingRight.replace("px", ""));
|
|
104
|
-
const borderLeft = Number(computedStyle.borderLeftWidth.replace("px", ""));
|
|
105
|
-
const borderRight = Number(computedStyle.borderRightWidth.replace("px", ""));
|
|
106
|
-
const contentWidth = element.offsetWidth - paddingLeft - paddingRight - borderLeft - borderRight;
|
|
107
|
-
const contentHeight = element.offsetHeight - paddingTop - paddingBottom - borderTop - borderBottom;
|
|
108
|
-
return { width: contentWidth, height: contentHeight };
|
|
106
|
+
streamListStyle.value.width = `${props.column * (width + singleStreamMargin)}px`;
|
|
107
|
+
streamListStyle.value.height = `${props.row * (height + singleStreamMargin)}px`;
|
|
109
108
|
}
|
|
110
109
|
function handleHorizontalInfinityLayout() {
|
|
111
110
|
streamListStyle.value = {};
|
|
112
|
-
const contentHeight = getContentSize(streamListContainerRef.value).height;
|
|
113
|
-
const contentWidth = contentHeight *
|
|
111
|
+
const contentHeight = domOperation.getContentSize(streamListContainerRef.value).height;
|
|
112
|
+
const contentWidth = contentHeight * widthRatio.value / heightRatio.value;
|
|
114
113
|
streamStyle.value.width = `${contentWidth}px`;
|
|
115
114
|
streamStyle.value.height = `${contentHeight}px`;
|
|
116
115
|
}
|
|
117
116
|
function handleVerticalInfinityLayout() {
|
|
118
117
|
streamListStyle.value = {};
|
|
119
|
-
const contentWidth = getContentSize(streamListContainerRef.value).width;
|
|
120
|
-
const contentHeight = contentWidth *
|
|
118
|
+
const contentWidth = domOperation.getContentSize(streamListContainerRef.value).width;
|
|
119
|
+
const contentHeight = contentWidth * heightRatio.value / widthRatio.value;
|
|
121
120
|
streamStyle.value.width = `${contentWidth}px`;
|
|
122
121
|
streamStyle.value.height = `${contentHeight}px`;
|
|
123
122
|
}
|
|
124
|
-
|
|
125
|
-
()
|
|
126
|
-
);
|
|
127
|
-
const isVerticalInfinityLayout = Vue.computed(
|
|
128
|
-
() => props.verticalCount === Infinity
|
|
129
|
-
);
|
|
130
|
-
const isEqualPointsLayout = Vue.computed(
|
|
131
|
-
() => props.horizontalCount !== Infinity && props.verticalCount !== Infinity
|
|
132
|
-
);
|
|
133
|
-
function handleLayout() {
|
|
134
|
-
if (isHorizontalInfinityLayout.value) {
|
|
135
|
-
handleHorizontalInfinityLayout();
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
if (isVerticalInfinityLayout.value) {
|
|
139
|
-
handleVerticalInfinityLayout();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
if (isEqualPointsLayout.value) {
|
|
143
|
-
handleEqualPointsLayout();
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
123
|
+
function handleStreamDblClick(streamInfo) {
|
|
124
|
+
emits("stream-view-dblclick", streamInfo);
|
|
146
125
|
}
|
|
147
|
-
Vue.onMounted(() => {
|
|
148
|
-
handleLayout();
|
|
149
|
-
});
|
|
150
|
-
Vue.watch(
|
|
151
|
-
() => [
|
|
152
|
-
props.horizontalCount,
|
|
153
|
-
props.verticalCount,
|
|
154
|
-
props.streamInfoList.length
|
|
155
|
-
],
|
|
156
|
-
() => {
|
|
157
|
-
handleLayout();
|
|
158
|
-
},
|
|
159
|
-
{ immediate: true }
|
|
160
|
-
);
|
|
161
126
|
const resizeObserver = new ResizeObserver(() => {
|
|
162
127
|
handleLayout();
|
|
163
128
|
});
|
|
@@ -187,17 +152,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
187
152
|
style: Vue.normalizeStyle(streamListStyle.value),
|
|
188
153
|
onWheel: handleWheel
|
|
189
154
|
}, [
|
|
190
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(
|
|
155
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(validStreamInfoList.value, (streamInfo) => {
|
|
191
156
|
return Vue.openBlock(), Vue.createBlock(index.default, {
|
|
192
157
|
class: "stream-list-item",
|
|
193
158
|
key: `${streamInfo.userId}_${streamInfo.streamType}`,
|
|
194
|
-
onRoomDblclick: ($event) => _ctx.$emit("room-dblclick", streamInfo),
|
|
195
159
|
streamInfo,
|
|
196
160
|
style: Vue.normalizeStyle(streamStyle.value),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, null, 8, ["
|
|
161
|
+
streamPlayMode: _ctx.streamPlayMode,
|
|
162
|
+
streamPlayQuality: _ctx.streamPlayQuality,
|
|
163
|
+
onStreamViewDblclick: handleStreamDblClick
|
|
164
|
+
}, null, 8, ["streamInfo", "style", "streamPlayMode", "streamPlayQuality"]);
|
|
201
165
|
}), 128))
|
|
202
166
|
], 36)
|
|
203
167
|
], 2);
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { StreamInfo } from '../../../../stores/room';
|
|
2
|
+
import { StreamPlayMode, StreamPlayQuality } from '../../../../services/manager/mediaManager';
|
|
2
3
|
|
|
3
4
|
interface Props {
|
|
4
5
|
streamInfo: StreamInfo;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
observerViewInVisible?: boolean;
|
|
6
|
+
streamPlayQuality?: StreamPlayQuality;
|
|
7
|
+
streamPlayMode?: StreamPlayMode;
|
|
8
8
|
}
|
|
9
9
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
-
|
|
10
|
+
streamPlayQuality: StreamPlayQuality;
|
|
11
|
+
streamPlayMode: StreamPlayMode;
|
|
11
12
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
-
|
|
13
|
+
streamPlayQuality: StreamPlayQuality;
|
|
14
|
+
streamPlayMode: StreamPlayMode;
|
|
13
15
|
}>>>, {
|
|
14
|
-
|
|
16
|
+
streamPlayQuality: StreamPlayQuality;
|
|
17
|
+
streamPlayMode: StreamPlayMode;
|
|
15
18
|
}, {}>;
|
|
16
19
|
export default _default;
|
|
17
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const StreamPlay = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const StreamPlay = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-8eda9173"]]);
|
|
7
7
|
exports.default = StreamPlay;
|
|
@@ -4,6 +4,7 @@ const Vue = require("vue");
|
|
|
4
4
|
const TUIRoomEngine = require("@tencentcloud/tuiroom-engine-electron");
|
|
5
5
|
const room = require("../../../../stores/room.js");
|
|
6
6
|
const roomService = require("../../../../services/roomService.js");
|
|
7
|
+
const mediaManager = require("../../../../services/manager/mediaManager.js");
|
|
7
8
|
const basic = require("../../../../stores/basic.js");
|
|
8
9
|
const pinia = require("pinia");
|
|
9
10
|
const utils = require("../../../../utils/utils.js");
|
|
@@ -12,12 +13,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
12
13
|
__name: "index",
|
|
13
14
|
props: {
|
|
14
15
|
streamInfo: {},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
observerViewInVisible: { type: Boolean }
|
|
16
|
+
streamPlayQuality: { default: mediaManager.StreamPlayQuality.Default },
|
|
17
|
+
streamPlayMode: { default: mediaManager.StreamPlayMode.PLAY }
|
|
18
18
|
},
|
|
19
19
|
setup(__props) {
|
|
20
|
-
const mediaManager = roomService.roomService.getMediaManager();
|
|
20
|
+
const mediaManager$1 = roomService.roomService.getMediaManager();
|
|
21
21
|
const basicStore = basic.useBasicStore();
|
|
22
22
|
const roomStore = room.useRoomStore();
|
|
23
23
|
const { defaultStreamType, streamInfoObj } = pinia.storeToRefs(roomStore);
|
|
@@ -27,15 +27,21 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
27
27
|
const playRegionDomId = Vue.computed(
|
|
28
28
|
() => `${props.streamInfo.userId}_${props.streamInfo.streamType}_${nanoId}`
|
|
29
29
|
);
|
|
30
|
+
const isNeedPlayStream = Vue.computed(
|
|
31
|
+
() => props.streamPlayMode !== mediaManager.StreamPlayMode.STOP && props.streamInfo.hasVideoStream
|
|
32
|
+
);
|
|
30
33
|
const streamTypeToFetch = Vue.computed(() => {
|
|
31
34
|
const { streamType, userId } = props.streamInfo;
|
|
32
35
|
const { userId: localUserId } = basicStore;
|
|
33
36
|
if (streamType === TUIRoomEngine.TUIVideoStreamType.kScreenStream) {
|
|
34
37
|
return TUIRoomEngine.TUIVideoStreamType.kScreenStream;
|
|
35
38
|
}
|
|
36
|
-
if (props.
|
|
39
|
+
if (props.streamPlayQuality === mediaManager.StreamPlayQuality.HIGH || userId === localUserId) {
|
|
37
40
|
return TUIRoomEngine.TUIVideoStreamType.kCameraStream;
|
|
38
41
|
}
|
|
42
|
+
if (props.streamPlayQuality === mediaManager.StreamPlayQuality.LOW) {
|
|
43
|
+
return TUIRoomEngine.TUIVideoStreamType.kCameraStreamLow;
|
|
44
|
+
}
|
|
39
45
|
return defaultStreamType.value;
|
|
40
46
|
});
|
|
41
47
|
async function startPlayVideo() {
|
|
@@ -43,17 +49,17 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
43
49
|
return;
|
|
44
50
|
}
|
|
45
51
|
await Vue.nextTick();
|
|
46
|
-
if (
|
|
47
|
-
await mediaManager.startPlayVideo({
|
|
52
|
+
if (isNeedPlayStream.value) {
|
|
53
|
+
await mediaManager$1.startPlayVideo({
|
|
48
54
|
userId: props.streamInfo.userId,
|
|
49
55
|
streamType: streamTypeToFetch.value,
|
|
50
56
|
view: playRegionDomRef.value,
|
|
51
|
-
observerViewInVisible: props.
|
|
57
|
+
observerViewInVisible: props.streamPlayMode === mediaManager.StreamPlayMode.PLAY_IN_VISIBLE
|
|
52
58
|
});
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
async function stopPlayVideo() {
|
|
56
|
-
await mediaManager.stopPlayVideo({
|
|
62
|
+
await mediaManager$1.stopPlayVideo({
|
|
57
63
|
userId: props.streamInfo.userId,
|
|
58
64
|
streamType: streamTypeToFetch.value,
|
|
59
65
|
view: playRegionDomRef.value
|
|
@@ -63,19 +69,18 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
63
69
|
() => [
|
|
64
70
|
props.streamInfo.userId,
|
|
65
71
|
props.streamInfo.streamType,
|
|
66
|
-
|
|
67
|
-
props.isNeedPlayStream
|
|
72
|
+
isNeedPlayStream.value
|
|
68
73
|
],
|
|
69
74
|
async (val, oldVal) => {
|
|
70
75
|
const [oldUserId, oldStreamType] = oldVal;
|
|
71
76
|
if (oldUserId !== props.streamInfo.userId || oldStreamType !== props.streamInfo.streamType) {
|
|
72
|
-
mediaManager.stopPlayVideo({
|
|
77
|
+
mediaManager$1.stopPlayVideo({
|
|
73
78
|
userId: oldUserId,
|
|
74
79
|
streamType: oldStreamType,
|
|
75
80
|
view: playRegionDomRef.value
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
|
-
if (
|
|
83
|
+
if (isNeedPlayStream.value) {
|
|
79
84
|
await startPlayVideo();
|
|
80
85
|
} else {
|
|
81
86
|
await stopPlayVideo();
|
|
@@ -85,18 +90,18 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
85
90
|
Vue.watch(
|
|
86
91
|
() => streamTypeToFetch,
|
|
87
92
|
async () => {
|
|
88
|
-
if (
|
|
93
|
+
if (isNeedPlayStream.value) {
|
|
89
94
|
await startPlayVideo();
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
);
|
|
93
98
|
Vue.onMounted(async () => {
|
|
94
|
-
if (
|
|
99
|
+
if (isNeedPlayStream.value) {
|
|
95
100
|
await startPlayVideo();
|
|
96
101
|
}
|
|
97
102
|
});
|
|
98
103
|
Vue.onBeforeUnmount(async () => {
|
|
99
|
-
if (
|
|
104
|
+
if (isNeedPlayStream.value) {
|
|
100
105
|
await stopPlayVideo();
|
|
101
106
|
}
|
|
102
107
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StreamInfo } from '../../../../stores/room';
|
|
2
|
+
import { StreamPlayMode, StreamPlayQuality } from '../../../../services/manager/mediaManager';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
streamInfo: StreamInfo;
|
|
6
|
+
streamPlayQuality?: StreamPlayQuality;
|
|
7
|
+
streamPlayMode?: StreamPlayMode;
|
|
8
|
+
aspectRatio?: string;
|
|
9
|
+
supportTouchScale?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"stream-view-dblclick": (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
14
|
+
"onStream-view-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("
|
|
6
|
-
const StreamRegion = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
+
const StreamRegion = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-31a2e486"]]);
|
|
7
7
|
exports.default = StreamRegion;
|