educast-classroom-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/lib/edu_sdk.bundle.js +2 -0
- package/lib/edu_sdk.bundle.js.LICENSE.txt +164 -0
- package/lib/infra/api/index.d.ts +50 -0
- package/lib/infra/api/lock.d.ts +8 -0
- package/lib/infra/api/polyfills.d.ts +0 -0
- package/lib/infra/api/providers.d.ts +7 -0
- package/lib/infra/api/rtc-extensions/index.d.ts +29 -0
- package/lib/infra/api/type.d.ts +107 -0
- package/lib/infra/capabilities/config.d.ts +21 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/hands-up.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/mic.d.ts +5 -0
- package/lib/infra/capabilities/containers/action-sheet-mobile/share.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/aside/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/award/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/camera-preview/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-driver.d.ts +13 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-help.d.ts +2 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-minimize.d.ts +3 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-more-menu.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/cloud-toolbar.d.ts +21 -0
- package/lib/infra/capabilities/containers/cloud-driver/index.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/person-resource.d.ts +6 -0
- package/lib/infra/capabilities/containers/cloud-driver/public-resource.d.ts +2 -0
- package/lib/infra/capabilities/containers/device-setting/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/confirm-dialog.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/confirm-panel.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/fragments/group-select.d.ts +7 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/fragments/start.d.ts +10 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/group.d.ts +17 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/panel.d.ts +23 -0
- package/lib/infra/capabilities/containers/dialog/breakout-room/user.d.ts +18 -0
- package/lib/infra/capabilities/containers/dialog/confirm.d.ts +13 -0
- package/lib/infra/capabilities/containers/dialog/error-generic.d.ts +9 -0
- package/lib/infra/capabilities/containers/dialog/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/kick-out.d.ts +5 -0
- package/lib/infra/capabilities/containers/dialog/quit.d.ts +6 -0
- package/lib/infra/capabilities/containers/dialog/remote-control-confirm/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/dialog/screen-picker/index.d.ts +30 -0
- package/lib/infra/capabilities/containers/dialog/screen-share/index.d.ts +8 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/hooks.d.ts +33 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/index.d.ts +22 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/pager.d.ts +9 -0
- package/lib/infra/capabilities/containers/dialog/video-gallery/setting.d.ts +11 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/context.d.ts +5 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/hooks.d.ts +35 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/index.d.ts +4 -0
- package/lib/infra/capabilities/containers/fragments/video-gallery/renderer.d.ts +22 -0
- package/lib/infra/capabilities/containers/hand-up/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/hand-up/invite-confirm.d.ts +13 -0
- package/lib/infra/capabilities/containers/hand-up/invite-container.d.ts +7 -0
- package/lib/infra/capabilities/containers/hand-up/invite-table.d.ts +7 -0
- package/lib/infra/capabilities/containers/hand-up/manager.d.ts +12 -0
- package/lib/infra/capabilities/containers/hand-up/sender.d.ts +34 -0
- package/lib/infra/capabilities/containers/hand-up/types.d.ts +14 -0
- package/lib/infra/capabilities/containers/loading/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/nav/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/pretest/form-field/index.d.ts +23 -0
- package/lib/infra/capabilities/containers/pretest/form-field/select.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/index.d.ts +11 -0
- package/lib/infra/capabilities/containers/pretest/pretest-audio.d.ts +2 -0
- package/lib/infra/capabilities/containers/pretest/pretest-footer.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/pretest-stage.d.ts +2 -0
- package/lib/infra/capabilities/containers/pretest/pretest-video.d.ts +5 -0
- package/lib/infra/capabilities/containers/pretest/volume.d.ts +8 -0
- package/lib/infra/capabilities/containers/root-box/fixed-aspect-ratio.d.ts +24 -0
- package/lib/infra/capabilities/containers/root-box/hooks.d.ts +4 -0
- package/lib/infra/capabilities/containers/root-box/index.d.ts +1 -0
- package/lib/infra/capabilities/containers/roster/button.d.ts +3 -0
- package/lib/infra/capabilities/containers/roster/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/roster/lecture-user-list.d.ts +5 -0
- package/lib/infra/capabilities/containers/roster/user-list.d.ts +5 -0
- package/lib/infra/capabilities/containers/scene-switch/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/scenes-controller/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/screen-share/index.d.ts +12 -0
- package/lib/infra/capabilities/containers/screen-share/index.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/stream/cdn-player.d.ts +24 -0
- package/lib/infra/capabilities/containers/stream/draggable-stream.d.ts +10 -0
- package/lib/infra/capabilities/containers/stream/index.d.ts +41 -0
- package/lib/infra/capabilities/containers/stream/index.mobile.d.ts +23 -0
- package/lib/infra/capabilities/containers/stream/room-1v1-player.d.ts +4 -0
- package/lib/infra/capabilities/containers/stream/room-big-class-player.mobile.d.ts +12 -0
- package/lib/infra/capabilities/containers/stream/room-big-player.d.ts +3 -0
- package/lib/infra/capabilities/containers/stream/room-mid-player.d.ts +4 -0
- package/lib/infra/capabilities/containers/stream/stream-tool.d.ts +12 -0
- package/lib/infra/capabilities/containers/stream/track-player.d.ts +21 -0
- package/lib/infra/capabilities/containers/stream/video-live-player.d.ts +16 -0
- package/lib/infra/capabilities/containers/stream-window/index.d.ts +9 -0
- package/lib/infra/capabilities/containers/toast/index.d.ts +3 -0
- package/lib/infra/capabilities/containers/toast/index.mobile.d.ts +3 -0
- package/lib/infra/capabilities/containers/toolbar/board-cleaners/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/pens/index.d.ts +5 -0
- package/lib/infra/capabilities/containers/toolbar/slice/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/toolbar/tool-cabinet/index.d.ts +2 -0
- package/lib/infra/capabilities/containers/widget/index.d.ts +7 -0
- package/lib/infra/capabilities/containers/widget/index.mobile.d.ts +6 -0
- package/lib/infra/capabilities/containers/widget/slots.d.ts +8 -0
- package/lib/infra/capabilities/containers/widget/track.d.ts +22 -0
- package/lib/infra/capabilities/scenarios/1v1/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/big-class/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/big-class-mobile/index.mobile.d.ts +12 -0
- package/lib/infra/capabilities/scenarios/index.d.ts +10 -0
- package/lib/infra/capabilities/scenarios/mid-class/index.d.ts +2 -0
- package/lib/infra/capabilities/scenarios/room/index.d.ts +6 -0
- package/lib/infra/configs/base-theme.d.ts +391 -0
- package/lib/infra/configs/base-ui.d.ts +14 -0
- package/lib/infra/contexts/index.d.ts +15 -0
- package/lib/infra/contexts/ui-store-factory.d.ts +6 -0
- package/lib/infra/hooks/cabinet.d.ts +4 -0
- package/lib/infra/hooks/index.d.ts +6 -0
- package/lib/infra/hooks/ui-store.d.ts +10 -0
- package/lib/infra/hooks/utilites.d.ts +3 -0
- package/lib/infra/protocol/board.d.ts +70 -0
- package/lib/infra/protocol/events.d.ts +67 -0
- package/lib/infra/protocol/index.d.ts +24 -0
- package/lib/infra/protocol/type.d.ts +70 -0
- package/lib/infra/stores/common/base.d.ts +46 -0
- package/lib/infra/stores/common/board/index.d.ts +41 -0
- package/lib/infra/stores/common/cloud-drive/helper.d.ts +14 -0
- package/lib/infra/stores/common/cloud-drive/index.d.ts +178 -0
- package/lib/infra/stores/common/cloud-drive/struct.d.ts +109 -0
- package/lib/infra/stores/common/cloud-drive/type.d.ts +23 -0
- package/lib/infra/stores/common/device-setting/index.d.ts +68 -0
- package/lib/infra/stores/common/getters.d.ts +61 -0
- package/lib/infra/stores/common/group/index.d.ts +139 -0
- package/lib/infra/stores/common/hand-up/index.d.ts +119 -0
- package/lib/infra/stores/common/hand-up/type.d.ts +18 -0
- package/lib/infra/stores/common/index.d.ts +78 -0
- package/lib/infra/stores/common/layout/helper.d.ts +4 -0
- package/lib/infra/stores/common/layout/index.d.ts +20 -0
- package/lib/infra/stores/common/nav/index.d.ts +184 -0
- package/lib/infra/stores/common/notification/index.d.ts +55 -0
- package/lib/infra/stores/common/pretest/helper.d.ts +1 -0
- package/lib/infra/stores/common/pretest/index.d.ts +299 -0
- package/lib/infra/stores/common/pretest/type.d.ts +8 -0
- package/lib/infra/stores/common/roster/index.d.ts +162 -0
- package/lib/infra/stores/common/roster/type.d.ts +55 -0
- package/lib/infra/stores/common/share/index.d.ts +149 -0
- package/lib/infra/stores/common/stream/index.d.ts +257 -0
- package/lib/infra/stores/common/stream/state-keeper.d.ts +18 -0
- package/lib/infra/stores/common/stream/struct.d.ts +63 -0
- package/lib/infra/stores/common/stream/tool.d.ts +32 -0
- package/lib/infra/stores/common/stream-window/helper.d.ts +101 -0
- package/lib/infra/stores/common/stream-window/index.d.ts +223 -0
- package/lib/infra/stores/common/stream-window/struct.d.ts +95 -0
- package/lib/infra/stores/common/stream-window/type.d.ts +32 -0
- package/lib/infra/stores/common/subscription/abstract.d.ts +43 -0
- package/lib/infra/stores/common/subscription/index.d.ts +14 -0
- package/lib/infra/stores/common/subscription/main-room.d.ts +14 -0
- package/lib/infra/stores/common/subscription/type.d.ts +10 -0
- package/lib/infra/stores/common/toolbar/index.d.ts +145 -0
- package/lib/infra/stores/common/toolbar/type.d.ts +45 -0
- package/lib/infra/stores/common/type.d.ts +10 -0
- package/lib/infra/stores/common/video-gallery/index.d.ts +42 -0
- package/lib/infra/stores/common/widget/index.d.ts +40 -0
- package/lib/infra/stores/interactive/board.d.ts +6 -0
- package/lib/infra/stores/interactive/index.d.ts +7 -0
- package/lib/infra/stores/interactive/stream.d.ts +33 -0
- package/lib/infra/stores/lecture/board.d.ts +7 -0
- package/lib/infra/stores/lecture/index.d.ts +9 -0
- package/lib/infra/stores/lecture/roster.d.ts +57 -0
- package/lib/infra/stores/lecture/stream.d.ts +29 -0
- package/lib/infra/stores/lecture/toolbar.d.ts +11 -0
- package/lib/infra/stores/lecture-mobile/board.d.ts +16 -0
- package/lib/infra/stores/lecture-mobile/device-setting.d.ts +9 -0
- package/lib/infra/stores/lecture-mobile/index.d.ts +13 -0
- package/lib/infra/stores/lecture-mobile/layout.d.ts +40 -0
- package/lib/infra/stores/lecture-mobile/stream.d.ts +54 -0
- package/lib/infra/stores/one-on-one/index.d.ts +7 -0
- package/lib/infra/stores/one-on-one/stream.d.ts +12 -0
- package/lib/infra/stores/one-on-one/toolbar.d.ts +7 -0
- package/lib/infra/translate/en.d.ts +802 -0
- package/lib/infra/translate/zh.d.ts +802 -0
- package/lib/infra/utils/async-queue.d.ts +16 -0
- package/lib/infra/utils/board-utils.d.ts +22 -0
- package/lib/infra/utils/colors.d.ts +13 -0
- package/lib/infra/utils/config-loader.d.ts +9 -0
- package/lib/infra/utils/error.d.ts +12 -0
- package/lib/infra/utils/event-center.d.ts +20 -0
- package/lib/infra/utils/extract.d.ts +6 -0
- package/lib/infra/utils/index.d.ts +16 -0
- package/lib/infra/utils/interaction.d.ts +6 -0
- package/lib/infra/utils/ipc-channels.d.ts +39 -0
- package/lib/infra/utils/ipc.d.ts +48 -0
- package/lib/ui-kit/components/button/abutton.d.ts +6 -0
- package/lib/ui-kit/components/button/index.d.ts +18 -0
- package/lib/ui-kit/components/card/index.d.ts +14 -0
- package/lib/ui-kit/components/checkbox/index.d.ts +14 -0
- package/lib/ui-kit/components/float/index.d.ts +13 -0
- package/lib/ui-kit/components/index.d.ts +27 -0
- package/lib/ui-kit/components/input/ainput.d.ts +6 -0
- package/lib/ui-kit/components/input/index.d.ts +31 -0
- package/lib/ui-kit/components/input-number/index.d.ts +10 -0
- package/lib/ui-kit/components/layout/index.d.ts +12 -0
- package/lib/ui-kit/components/loading/index.d.ts +37 -0
- package/lib/ui-kit/components/modal/index.d.ts +32 -0
- package/lib/ui-kit/components/overlay-wrap/index.d.ts +15 -0
- package/lib/ui-kit/components/pagination/index.d.ts +5 -0
- package/lib/ui-kit/components/placeholder/index.d.ts +18 -0
- package/lib/ui-kit/components/popover/index.d.ts +9 -0
- package/lib/ui-kit/components/progress/index.d.ts +19 -0
- package/lib/ui-kit/components/radio/index.d.ts +21 -0
- package/lib/ui-kit/components/root-box/index.d.ts +5 -0
- package/lib/ui-kit/components/roster/carousel-setting.d.ts +5 -0
- package/lib/ui-kit/components/roster/columns.d.ts +7 -0
- package/lib/ui-kit/components/roster/hooks.d.ts +3 -0
- package/lib/ui-kit/components/roster/index.d.ts +140 -0
- package/lib/ui-kit/components/roster/roster.d.ts +3 -0
- package/lib/ui-kit/components/roster/table.d.ts +21 -0
- package/lib/ui-kit/components/select/index.d.ts +24 -0
- package/lib/ui-kit/components/slider/index.d.ts +17 -0
- package/lib/ui-kit/components/sound-player/index.d.ts +6 -0
- package/lib/ui-kit/components/svg-img/generate.d.ts +0 -0
- package/lib/ui-kit/components/svg-img/index.d.ts +37 -0
- package/lib/ui-kit/components/svg-img/paths/add-scene.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/add.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/alf.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/answer.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/arrow.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ask-for-help.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/audio.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/authorized-solid.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/authorized.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/auto-play-failed.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/backward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/bad-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/beta.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/board-not-granted.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/buffing.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/calendar.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-disabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-enabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-off-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera-on-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/chat.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/checked.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/chevron-right.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/circle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clear.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clicker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/clock.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/close.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-file-help.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-more.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud-refresh.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/cloud.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/collapse-stream-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/copy.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/countdown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/delete.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/dropdown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/edit.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/emoji.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/eraser.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/excel.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/exit.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/extension-actived.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fcr-ppt-broken.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/forward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fullscreen-shrink.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/fullscreen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/gooffstage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/goonstage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/group-discuss.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/h5.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hand.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hands-up-active.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/hands-up.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/id.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/image.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/indicator.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/invite-on-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/invite-to-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/kick-out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/landscape.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/laser-pointer.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/line.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/link-solid.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/link.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/log.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-camera-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-micphone-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-micphone.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/m-switch-camera.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mark.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/matrix.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/max.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/maximize.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/menu-fold.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/menu-unfold.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mic-disabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mic-enabled.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-off-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-on-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/microphone.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/min.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/minimize.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/more.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/mute-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/no-authorized.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/no-discussion.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/none.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/normal-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/on-podium.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pdf.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-arrow.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-circle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-curve.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-line.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-pentagram.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-rhombus.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-square.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen-triangle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pentagram.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pic.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pip-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pip-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-broken.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-no-body.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-camera-off.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-ask.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-file.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-message.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-search.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-no-setup.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/placeholder-not-present.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ppt.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-check.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-checked.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/pretest-speaker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/record.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/recording.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/red-caution.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/redo.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/register.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/replay.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/reset.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/restore.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/review.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/reward.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/rhombus.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/room-label.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/ruddy.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/save-ghost.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/search.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/select.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/set-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/set.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/settings.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-close.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-default.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-hover.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/share-screen.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/slice-window.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/slice.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/speaker.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/square.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/stage.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/star-outline.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/star.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/stream-window-on.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/switch-screen-share-active.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/switch-screen-share.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/text.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/toast-info.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/toast-success.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/tools.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-down.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-right.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle-solid-up.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/triangle.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/txt.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/undo.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unknown-signal.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unknown.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/unmute-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video-gallery.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video-switch-mobile.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/video.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/vote.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/whiteboard.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/whitening.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/word.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/zoom-in.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/paths/zoom-out.d.ts +4 -0
- package/lib/ui-kit/components/svg-img/svg-dict.d.ts +12 -0
- package/lib/ui-kit/components/svg-img/type.d.ts +182 -0
- package/lib/ui-kit/components/svga-player/index.d.ts +11 -0
- package/lib/ui-kit/components/svga-player/svga-types.d.ts +1 -0
- package/lib/ui-kit/components/table/index.d.ts +40 -0
- package/lib/ui-kit/components/tabs/index.d.ts +7 -0
- package/lib/ui-kit/components/toast/index.d.ts +16 -0
- package/lib/ui-kit/components/toolbar/board-cleaners.d.ts +15 -0
- package/lib/ui-kit/components/toolbar/index.d.ts +14 -0
- package/lib/ui-kit/components/toolbar/pens.d.ts +19 -0
- package/lib/ui-kit/components/toolbar/slice.d.ts +14 -0
- package/lib/ui-kit/components/toolbar/tool-cabinet.d.ts +7 -0
- package/lib/ui-kit/components/toolbar/tool.d.ts +19 -0
- package/lib/ui-kit/components/toolbar/util.d.ts +3 -0
- package/lib/ui-kit/components/tooltip/index.d.ts +30 -0
- package/lib/ui-kit/components/tooltip/placements.d.ts +17 -0
- package/lib/ui-kit/components/tree/index.d.ts +34 -0
- package/lib/ui-kit/components/util/colors.d.ts +3 -0
- package/lib/ui-kit/components/util/getRenderPropValue.d.ts +3 -0
- package/lib/ui-kit/components/util/motion.d.ts +5 -0
- package/lib/ui-kit/components/util/type.d.ts +13 -0
- package/lib/ui-kit/components/volume/index.d.ts +17 -0
- package/lib/ui-kit/index.d.ts +2 -0
- package/lib/ui-kit/utilities/hooks.d.ts +22 -0
- package/lib/ui-kit/utilities/index.d.ts +31 -0
- package/lib/ui-kit/utilities/state-color.d.ts +17 -0
- package/lib/ui-kit/utilities/style-config.d.ts +60 -0
- package/lib/ui-kit/utilities/types.d.ts +8 -0
- package/lib/worker-entry.bundle.worker.js.LICENSE.txt +3 -0
- package/package.json +152 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { EduStream } from 'agora-edu-core';
|
|
2
|
+
import { IReactionDisposer, Lambda } from 'mobx';
|
|
3
|
+
import { DraggableData } from 'react-draggable';
|
|
4
|
+
import { EduUIStoreBase } from '../base';
|
|
5
|
+
import { StreamBounds } from '../stream/struct';
|
|
6
|
+
import { StreamWindowWidget } from './struct';
|
|
7
|
+
import { StreamWindow } from './type';
|
|
8
|
+
export declare class StreamWindowUIStore extends EduUIStoreBase {
|
|
9
|
+
private _dataStore;
|
|
10
|
+
protected _disposers: (IReactionDisposer | Lambda)[];
|
|
11
|
+
private _snapshotPosition;
|
|
12
|
+
private _streamWindowFirstOffset;
|
|
13
|
+
private _streamWindowUpdatedFromRoom;
|
|
14
|
+
private _lowUuids;
|
|
15
|
+
private _highUuids;
|
|
16
|
+
private _streamWindowContainerBounds;
|
|
17
|
+
get minRect(): {
|
|
18
|
+
calculateCount: number;
|
|
19
|
+
minWidth: number;
|
|
20
|
+
minHeight: number;
|
|
21
|
+
};
|
|
22
|
+
get streamDraggable(): boolean;
|
|
23
|
+
get needDraggable(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
get streamWindowMap(): Map<string, StreamWindowWidget>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
get transitionStreams(): Map<string, boolean>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
get tempStreamWindowPosMap(): Map<string, StreamWindowWidget>;
|
|
36
|
+
/**
|
|
37
|
+
* 正在拖拉的 streamUuid
|
|
38
|
+
*/
|
|
39
|
+
get draggingStreamUuid(): string;
|
|
40
|
+
/**
|
|
41
|
+
* 讲台状态
|
|
42
|
+
*/
|
|
43
|
+
get stageVisible(): boolean;
|
|
44
|
+
get streamWindowStreamUuids(): string[];
|
|
45
|
+
get streamWindowRealBoundsMap(): Map<string, StreamWindow>;
|
|
46
|
+
/**
|
|
47
|
+
* 用于 UI 展示
|
|
48
|
+
*/
|
|
49
|
+
get streamWindows(): [string, StreamWindow][];
|
|
50
|
+
/**
|
|
51
|
+
* 是否有全屏展示的 streamWindow
|
|
52
|
+
*/
|
|
53
|
+
get containedStreamWindow(): StreamWindowWidget | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* 覆盖组件透明度(底部工具栏,侧边工具栏,举手按钮,聊天按钮)
|
|
56
|
+
*/
|
|
57
|
+
get containedStreamWindowCoverOpacity(): 1 | 0.9;
|
|
58
|
+
/**
|
|
59
|
+
* 全屏展示的 streamWindow 数量
|
|
60
|
+
*/
|
|
61
|
+
get containedStreamWindowSize(): number;
|
|
62
|
+
/**
|
|
63
|
+
* 返回没有在指定区域展示的 streams
|
|
64
|
+
*/
|
|
65
|
+
get streamsShouldOffPodium(): EduStream[];
|
|
66
|
+
/**
|
|
67
|
+
* 小流ID
|
|
68
|
+
*/
|
|
69
|
+
get lowStreamUuids(): Set<string>;
|
|
70
|
+
/**
|
|
71
|
+
* 拖拉权限控制
|
|
72
|
+
*/
|
|
73
|
+
streamWindowLocked: (stream: EduStream) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 是否存在 streamWindow widget
|
|
76
|
+
* true 代表大窗里有 stream
|
|
77
|
+
* false 代表大窗里没有 stream
|
|
78
|
+
*/
|
|
79
|
+
visibleStream: (streamUuid: string) => boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 设置大窗显示区域
|
|
82
|
+
* @param bounds
|
|
83
|
+
*/
|
|
84
|
+
setMiddleContainerBounds(bounds: StreamBounds): void;
|
|
85
|
+
/**
|
|
86
|
+
* for drag
|
|
87
|
+
* @param param0
|
|
88
|
+
*/
|
|
89
|
+
setStreamDragInformation({ stream, active, pos, }: {
|
|
90
|
+
stream: EduStream;
|
|
91
|
+
active: boolean;
|
|
92
|
+
pos: [number, number];
|
|
93
|
+
}): void;
|
|
94
|
+
/**
|
|
95
|
+
* 是否在多视频的容器内
|
|
96
|
+
* @param x
|
|
97
|
+
* @param y
|
|
98
|
+
* @returns
|
|
99
|
+
*/
|
|
100
|
+
private _isMatchWindowContainer;
|
|
101
|
+
private _createStreamWindowByUuid;
|
|
102
|
+
private _addStreamWindowByUuid;
|
|
103
|
+
private _removeStreamWindowByUuid;
|
|
104
|
+
private _initStreamWindowSize;
|
|
105
|
+
/**
|
|
106
|
+
* 从小视频向拉创建 stream window
|
|
107
|
+
* @param streamUuid
|
|
108
|
+
*/
|
|
109
|
+
private _createStreamWindow;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param streamUuid
|
|
113
|
+
* @param pos
|
|
114
|
+
*/
|
|
115
|
+
private _updateStreamWindow;
|
|
116
|
+
private _setValidStreamWindowOffset;
|
|
117
|
+
/**
|
|
118
|
+
* 值都是具体的数值
|
|
119
|
+
* @param streamUuid
|
|
120
|
+
* @param param1
|
|
121
|
+
*/
|
|
122
|
+
private _setStreamWindowMap;
|
|
123
|
+
private _handleTempStreamWindowMap;
|
|
124
|
+
_setStreamWindowUpdate(status: boolean): void;
|
|
125
|
+
/**
|
|
126
|
+
* 双击视频窗口逻辑处理
|
|
127
|
+
* @param stream
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
130
|
+
handleDBClickStreamWindow(stream: EduStream): void;
|
|
131
|
+
/**
|
|
132
|
+
* 双击全屏的时候
|
|
133
|
+
* 1. 讲台展示直接删除 streamwindow widget,
|
|
134
|
+
* 2. 讲台隐藏的时候需要查看之前窗口的位置,
|
|
135
|
+
* 2.1 如果有位置那么返回之前的位置
|
|
136
|
+
* 2.2 如果么位置那么创建一个位置不要重叠
|
|
137
|
+
* @param stream
|
|
138
|
+
* @returns
|
|
139
|
+
*/
|
|
140
|
+
handleStreamWindowContain(stream: EduStream): void;
|
|
141
|
+
/**
|
|
142
|
+
* 设置重新计算后的 widget rect
|
|
143
|
+
* 需要要没有全屏的 widget 删除
|
|
144
|
+
*/
|
|
145
|
+
private _handleCalculateContains;
|
|
146
|
+
/**
|
|
147
|
+
* 单击处理 zIndex 问题
|
|
148
|
+
* @param streamUuid
|
|
149
|
+
*/
|
|
150
|
+
handleStreamWindowSingalClick(stream: EduStream): void;
|
|
151
|
+
/**
|
|
152
|
+
* https://github.com/facebook/react/issues/3185
|
|
153
|
+
* @param streamUuid
|
|
154
|
+
* @returns
|
|
155
|
+
*/
|
|
156
|
+
handleStreamWindowClick(stream: EduStream): () => void;
|
|
157
|
+
private _calculateSize;
|
|
158
|
+
/**
|
|
159
|
+
* 获取全屏的视频
|
|
160
|
+
*/
|
|
161
|
+
private _getStreamWindowContain;
|
|
162
|
+
setTransitionStreams(streamUuid: string): void;
|
|
163
|
+
removeTransitionStreams(streamUuid: string): void;
|
|
164
|
+
private _handleStageStreamAdded;
|
|
165
|
+
private _handleStageStreamRemoved;
|
|
166
|
+
private _handleClassroomUIEvents;
|
|
167
|
+
private _handleOffAllStreamWindow;
|
|
168
|
+
private _handleToggleTeacherStreamWindow;
|
|
169
|
+
/**
|
|
170
|
+
* 发送数据到远端,teacher only
|
|
171
|
+
*/
|
|
172
|
+
sendWidgetDataToServer(streamUuid?: string): void;
|
|
173
|
+
/**
|
|
174
|
+
* 删除 widget streamwindow
|
|
175
|
+
* @param widgetUuid
|
|
176
|
+
*/
|
|
177
|
+
private _deleteStreamWindowWidgetToServer;
|
|
178
|
+
/**
|
|
179
|
+
* for stream window drag
|
|
180
|
+
* @param e
|
|
181
|
+
* @param data
|
|
182
|
+
* @param streamUuid
|
|
183
|
+
* @param offsetX
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
handleDrag(e: any, data: DraggableData, streamUuid: string, offsetX: number): void;
|
|
187
|
+
/**
|
|
188
|
+
* 区域内更新 streamsWindowMap 信息
|
|
189
|
+
* @param streamUuid
|
|
190
|
+
* @param streamWindowInfo
|
|
191
|
+
*/
|
|
192
|
+
handleStreamWindowInfo(stream: EduStream, streamWindowInfo: {
|
|
193
|
+
x?: number;
|
|
194
|
+
y?: number;
|
|
195
|
+
width?: number;
|
|
196
|
+
height?: number;
|
|
197
|
+
zIndex?: number;
|
|
198
|
+
contain?: boolean;
|
|
199
|
+
}, sendToServer?: boolean): void;
|
|
200
|
+
private _handldeStreamWindowCollisionDetection;
|
|
201
|
+
/**
|
|
202
|
+
* 转换为 widget 坐标
|
|
203
|
+
* @returns
|
|
204
|
+
*/
|
|
205
|
+
private _encodeWidgetRect;
|
|
206
|
+
private _createNewTempStreamWindow;
|
|
207
|
+
private _getTempStreamWindowPosCache;
|
|
208
|
+
private _handleToggleWhiteboard;
|
|
209
|
+
private _setRemoteStreamType;
|
|
210
|
+
removeStreamWindowByUuid(streamUuid: string): void;
|
|
211
|
+
handleWidgetInformationFromServer(widgets: any): void;
|
|
212
|
+
updateDraggingStreamUuid(streamUuid: string): void;
|
|
213
|
+
resetDraggingStreamUuid(): void;
|
|
214
|
+
/**
|
|
215
|
+
* 转换 widget 坐标方式
|
|
216
|
+
* @param widgetProps
|
|
217
|
+
* @returns
|
|
218
|
+
*/
|
|
219
|
+
private _decodeWidgetRect;
|
|
220
|
+
private _setEventHandler;
|
|
221
|
+
onInstall(): void;
|
|
222
|
+
onDestroy(): void;
|
|
223
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* streamWindow widget
|
|
3
|
+
*/
|
|
4
|
+
export declare class StreamWindowWidget {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
/**
|
|
10
|
+
* view 层级关系
|
|
11
|
+
*/
|
|
12
|
+
zIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* 是否填充到多视频区域
|
|
15
|
+
*/
|
|
16
|
+
contain: boolean;
|
|
17
|
+
constructor({ width, height, x, y, zIndex, contain, }: {
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
x?: number;
|
|
21
|
+
y?: number;
|
|
22
|
+
zIndex?: number;
|
|
23
|
+
contain?: boolean;
|
|
24
|
+
});
|
|
25
|
+
get information(): {
|
|
26
|
+
width?: number;
|
|
27
|
+
height?: number;
|
|
28
|
+
x?: number;
|
|
29
|
+
y?: number;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
contain?: boolean;
|
|
32
|
+
};
|
|
33
|
+
set information({ width, height, x, y, zIndex, contain, }: {
|
|
34
|
+
width?: number;
|
|
35
|
+
height?: number;
|
|
36
|
+
x?: number;
|
|
37
|
+
y?: number;
|
|
38
|
+
zIndex?: number;
|
|
39
|
+
contain?: boolean;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 从服务端来的 widget 数据
|
|
44
|
+
*/
|
|
45
|
+
export declare class WidgetInfo {
|
|
46
|
+
state: 1 | 0;
|
|
47
|
+
ownerUserUuid: string;
|
|
48
|
+
position: {
|
|
49
|
+
xaxis: number;
|
|
50
|
+
yaxis: number;
|
|
51
|
+
};
|
|
52
|
+
size: {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
};
|
|
56
|
+
extra: {
|
|
57
|
+
contain: boolean;
|
|
58
|
+
zIndex: number;
|
|
59
|
+
userUuid: string;
|
|
60
|
+
};
|
|
61
|
+
constructor({ position, size, extra, ownerUserUuid, state, }: {
|
|
62
|
+
ownerUserUuid: string;
|
|
63
|
+
position: {
|
|
64
|
+
xaxis: number;
|
|
65
|
+
yaxis: number;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
width: number;
|
|
69
|
+
height: number;
|
|
70
|
+
};
|
|
71
|
+
extra: {
|
|
72
|
+
contain: boolean;
|
|
73
|
+
zIndex: number;
|
|
74
|
+
userUuid: string;
|
|
75
|
+
};
|
|
76
|
+
state: 1 | 0;
|
|
77
|
+
});
|
|
78
|
+
get information(): {
|
|
79
|
+
state: 0 | 1;
|
|
80
|
+
ownerUserUuid: string;
|
|
81
|
+
position: {
|
|
82
|
+
xaxis: number;
|
|
83
|
+
yaxis: number;
|
|
84
|
+
};
|
|
85
|
+
size: {
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
};
|
|
89
|
+
extra: {
|
|
90
|
+
contain: boolean;
|
|
91
|
+
zIndex: number;
|
|
92
|
+
userUuid: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface StreamWindow {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
/**
|
|
7
|
+
* view 层级关系
|
|
8
|
+
*/
|
|
9
|
+
zIndex: number;
|
|
10
|
+
/**
|
|
11
|
+
* 是否填充到多视频区域
|
|
12
|
+
*/
|
|
13
|
+
contain: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare type StreamWindowBounds = Omit<StreamWindow, 'userUuid'>;
|
|
16
|
+
export interface WidgetTrackStruct {
|
|
17
|
+
state: number;
|
|
18
|
+
position: {
|
|
19
|
+
xaxis: number;
|
|
20
|
+
yaxis: number;
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
extra: {
|
|
27
|
+
contain: boolean;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
userUuid: string;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AgoraMediaControl, AgoraRteScene, AgoraStream, AGRtcChannel, AGRtcConnectionType, Logger } from 'agora-rte-sdk';
|
|
2
|
+
import { IReactionDisposer } from 'mobx';
|
|
3
|
+
import { Getters } from '../getters';
|
|
4
|
+
import { RemoteStreamMuteStatus } from './type';
|
|
5
|
+
export declare abstract class SceneSubscription {
|
|
6
|
+
protected scene: AgoraRteScene;
|
|
7
|
+
protected getters: Getters;
|
|
8
|
+
logger: Logger;
|
|
9
|
+
protected _disposers: IReactionDisposer[];
|
|
10
|
+
protected _active: boolean;
|
|
11
|
+
protected _rtcChannel: AGRtcChannel;
|
|
12
|
+
protected _mediaControl: AgoraMediaControl;
|
|
13
|
+
protected _muteRegistry: Map<string, {
|
|
14
|
+
muteVideo: boolean;
|
|
15
|
+
muteAudio: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
get active(): boolean;
|
|
18
|
+
get subscribeAll(): boolean;
|
|
19
|
+
constructor(scene: AgoraRteScene, getters: Getters);
|
|
20
|
+
protected abstract handleLocalStreamAdded(streams: AgoraStream[]): void;
|
|
21
|
+
protected abstract handleLocalStreamUpdated(streams: AgoraStream[]): void;
|
|
22
|
+
protected abstract handleLocalStreamRemoved(streams: AgoraStream[]): void;
|
|
23
|
+
protected abstract handleRemoteStreamAdded(streams: AgoraStream[]): void;
|
|
24
|
+
protected abstract handleRemoteStreamUpdated(streams: AgoraStream[]): void;
|
|
25
|
+
protected abstract handleRemoteStreamRemoved(streams: AgoraStream[]): void;
|
|
26
|
+
setActive(active: boolean): void;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
printStat(): void;
|
|
29
|
+
private _handleUserRemoved;
|
|
30
|
+
protected putRegistry(streamUuid: string, { muteVideo, muteAudio }: {
|
|
31
|
+
muteVideo?: boolean;
|
|
32
|
+
muteAudio?: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
protected removeRegistry(streamUuid: string): void;
|
|
35
|
+
protected isMuted(stream: AgoraStream): {
|
|
36
|
+
muteVideo: boolean;
|
|
37
|
+
muteAudio: boolean;
|
|
38
|
+
};
|
|
39
|
+
protected muteRemoteStream(scene: AgoraRteScene, stream: AgoraStream, muteStatus: RemoteStreamMuteStatus): RemoteStreamMuteStatus;
|
|
40
|
+
protected getStreamConnType(stream: AgoraStream): AGRtcConnectionType;
|
|
41
|
+
protected muteLocalStream(scene: AgoraRteScene, stream: AgoraStream): void;
|
|
42
|
+
protected muteRemoteStreams(scene: AgoraRteScene, streams: AgoraStream[]): void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgoraRteScene } from 'agora-rte-sdk';
|
|
2
|
+
import { SceneSubscription } from './abstract';
|
|
3
|
+
import { EduUIStoreBase } from '../base';
|
|
4
|
+
export declare class SubscriptionUIStore extends EduUIStoreBase {
|
|
5
|
+
private _disposers;
|
|
6
|
+
private _sceneSubscriptions;
|
|
7
|
+
setActive(sceneId: string): void;
|
|
8
|
+
createSceneSubscription(scene: AgoraRteScene): SceneSubscription | undefined;
|
|
9
|
+
removeSceneSubscription(scene: AgoraRteScene): void;
|
|
10
|
+
clearSubscription(): void;
|
|
11
|
+
printStat(): void;
|
|
12
|
+
onInstall(): void;
|
|
13
|
+
onDestroy(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgoraStream } from 'agora-rte-sdk';
|
|
2
|
+
import { SceneSubscription } from './abstract';
|
|
3
|
+
export declare class MainRoomSubscription extends SceneSubscription {
|
|
4
|
+
protected handleLocalStreamAdded(streams: AgoraStream[]): void;
|
|
5
|
+
protected handleLocalStreamUpdated(streams: AgoraStream[]): void;
|
|
6
|
+
protected handleLocalStreamRemoved(streams: AgoraStream[]): void;
|
|
7
|
+
protected handleRemoteStreamAdded(streams: AgoraStream[]): void;
|
|
8
|
+
protected handleRemoteStreamUpdated(streams: AgoraStream[]): void;
|
|
9
|
+
protected handleRemoteStreamRemoved(streams: AgoraStream[]): void;
|
|
10
|
+
get active(): boolean;
|
|
11
|
+
setActive(active: boolean): void;
|
|
12
|
+
protected unsubscribeAll(): void;
|
|
13
|
+
protected subscribe(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgoraRteVideoSourceType, AGRtcConnectionType } from 'agora-rte-sdk';
|
|
2
|
+
export declare type RemoteStreamMuteStatus = {
|
|
3
|
+
muteVideo?: boolean;
|
|
4
|
+
muteAudio?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare type LocalVideoStreamSubscribeOption = {
|
|
7
|
+
mute: boolean;
|
|
8
|
+
connectionType: AGRtcConnectionType;
|
|
9
|
+
sourceType: AgoraRteVideoSourceType;
|
|
10
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { EduUIStoreBase } from '../base';
|
|
2
|
+
import { EduStreamUI } from '../stream/struct';
|
|
3
|
+
import { CabinetItem, ToolbarItem } from './type';
|
|
4
|
+
export declare class ToolbarUIStore extends EduUIStoreBase {
|
|
5
|
+
readonly defaultColors: string[];
|
|
6
|
+
readonly defaultPens: string[];
|
|
7
|
+
readonly paletteMap: Record<string, string>;
|
|
8
|
+
readonly module: string;
|
|
9
|
+
readonly allowedCabinetItems: string[];
|
|
10
|
+
private _disposers;
|
|
11
|
+
onInstall(): void;
|
|
12
|
+
activeMap: Record<string, boolean>;
|
|
13
|
+
private _activeCabinetItems;
|
|
14
|
+
/**
|
|
15
|
+
* 当前激活的工具
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
get activeTool(): "circle" | "line" | "text" | "square" | "triangle" | "arrow" | "pentagram" | "rhombus" | "pen" | "eraser" | "clicker" | "selection" | "hand" | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 当前激活的画笔类工具
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
get selectedPenTool(): "circle" | "line" | "text" | "square" | "triangle" | "arrow" | "pentagram" | "rhombus" | "pen" | "eraser" | "clicker" | "selection" | "hand" | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* 画笔工具是否激活
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
get isPenToolActive(): boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* 选中的画笔颜色
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
get currentColor(): string;
|
|
34
|
+
/**
|
|
35
|
+
* 选中的画笔粗细
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
get strokeWidth(): number;
|
|
39
|
+
/**
|
|
40
|
+
* 是否正在进行屏幕共享
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
get isScreenSharing(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 是否打开白板
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
get isWhiteboardOpening(): boolean;
|
|
49
|
+
handleBoradCleaner(id: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* 老师流信息列表
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
get teacherStreams(): Set<EduStreamUI>;
|
|
55
|
+
/**
|
|
56
|
+
* 老师流信息(教室内只有一个老师时使用,如果有一个以上老师请使用 teacherStreams)
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
get teacherCameraStream(): EduStreamUI | undefined;
|
|
60
|
+
startLocalScreenShare(): void;
|
|
61
|
+
selectScreenShareDevice(): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* 打开内建工具
|
|
64
|
+
* @param id
|
|
65
|
+
*/
|
|
66
|
+
openBuiltinCabinet(id: string): Promise<void>;
|
|
67
|
+
handleSliceItem(id: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* 选中工具
|
|
70
|
+
* @param tool
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
setTool(tool: string): void;
|
|
74
|
+
private _openCloudDrive;
|
|
75
|
+
private _openRoster;
|
|
76
|
+
private _saveBoardSnapshot;
|
|
77
|
+
private _setToolActive;
|
|
78
|
+
private _setToolInactive;
|
|
79
|
+
readonly penTools: string[];
|
|
80
|
+
/**
|
|
81
|
+
* 设置画笔粗细
|
|
82
|
+
* @param value
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
changeStroke(value: number): void;
|
|
86
|
+
/**
|
|
87
|
+
* 设置画笔颜色,支持 RGB 色值
|
|
88
|
+
* @param value
|
|
89
|
+
* @returns
|
|
90
|
+
*/
|
|
91
|
+
changeHexColor(value: string): void;
|
|
92
|
+
/**
|
|
93
|
+
* 当前激活的工具
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
get activeCabinetItems(): Set<string>;
|
|
97
|
+
/**
|
|
98
|
+
* 工具箱列表
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
101
|
+
get cabinetItems(): CabinetItem[];
|
|
102
|
+
/**
|
|
103
|
+
* 白板清除选项列表
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
get boardCleanerItems(): CabinetItem[];
|
|
107
|
+
/**
|
|
108
|
+
* 工具栏工具列表
|
|
109
|
+
* @returns
|
|
110
|
+
*/
|
|
111
|
+
get tools(): ToolbarItem[];
|
|
112
|
+
/**
|
|
113
|
+
* 截图选项列表
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
get sliceItems(): CabinetItem[];
|
|
117
|
+
/**
|
|
118
|
+
* 老师工具栏工具列表
|
|
119
|
+
* @returns
|
|
120
|
+
*/
|
|
121
|
+
get teacherTools(): ToolbarItem[];
|
|
122
|
+
/**
|
|
123
|
+
* 学生工具栏工具列表
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
get studentTools(): ToolbarItem[];
|
|
127
|
+
/**
|
|
128
|
+
* 转 Edu 工具 对象
|
|
129
|
+
* @param tool
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
private _convertUITools2EduTools;
|
|
133
|
+
/**
|
|
134
|
+
* 转 UI 工具对象
|
|
135
|
+
* @param tool
|
|
136
|
+
* @returns
|
|
137
|
+
*/
|
|
138
|
+
private _convertEduTools2UITools;
|
|
139
|
+
/**
|
|
140
|
+
* 把截图贴到白板中
|
|
141
|
+
* @param dataURL
|
|
142
|
+
*/
|
|
143
|
+
private _pastToBoard;
|
|
144
|
+
onDestroy(): void;
|
|
145
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ToolbarItemCategory {
|
|
2
|
+
PenPicker = 0,
|
|
3
|
+
ColorPicker = 1,
|
|
4
|
+
Cabinet = 2,
|
|
5
|
+
Eraser = 3,
|
|
6
|
+
Slice = 4,
|
|
7
|
+
Roster = 5,
|
|
8
|
+
Text = 6,
|
|
9
|
+
Clicker = 7,
|
|
10
|
+
Selector = 8,
|
|
11
|
+
CloudStorage = 9,
|
|
12
|
+
Save = 10,
|
|
13
|
+
Hand = 11
|
|
14
|
+
}
|
|
15
|
+
export declare enum CabinetItemEnum {
|
|
16
|
+
ScreenShare = "screenShare",
|
|
17
|
+
BreakoutRoom = "breakoutRoom",
|
|
18
|
+
Laser = "laser",
|
|
19
|
+
Whiteboard = "whiteboard",
|
|
20
|
+
VideoGallery = "videoGallery"
|
|
21
|
+
}
|
|
22
|
+
export interface CabinetItem {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
iconType?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class ToolbarItem {
|
|
28
|
+
static fromData(data: {
|
|
29
|
+
value: string;
|
|
30
|
+
label: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
category: ToolbarItemCategory;
|
|
33
|
+
className?: string;
|
|
34
|
+
}): ToolbarItem;
|
|
35
|
+
value: string;
|
|
36
|
+
label: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
category: ToolbarItemCategory;
|
|
39
|
+
className?: string;
|
|
40
|
+
constructor(icon: string, value: string, label: string, category: ToolbarItemCategory, className?: string);
|
|
41
|
+
}
|
|
42
|
+
export declare enum ScreenShareRoleType {
|
|
43
|
+
Teacher = "teacher",
|
|
44
|
+
Student = "student"
|
|
45
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EduUIStoreBase } from '../base';
|
|
2
|
+
import { EduStreamUI } from '../stream/struct';
|
|
3
|
+
export declare class VideoGalleryUIStore extends EduUIStoreBase {
|
|
4
|
+
private _disposers;
|
|
5
|
+
private _dialogId?;
|
|
6
|
+
readonly videoGalleryConfig: {
|
|
7
|
+
'2x2': number;
|
|
8
|
+
'3x3': number;
|
|
9
|
+
'4x4': number;
|
|
10
|
+
};
|
|
11
|
+
curPage: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
open: boolean;
|
|
15
|
+
externalOpen: boolean;
|
|
16
|
+
localPreview: boolean;
|
|
17
|
+
get localCameraStream(): EduStreamUI | null;
|
|
18
|
+
get isLocalRendered(): boolean;
|
|
19
|
+
get stageUserUuids(): string[];
|
|
20
|
+
get videoGalleryConfigOptions(): {
|
|
21
|
+
text: string;
|
|
22
|
+
value: number;
|
|
23
|
+
}[];
|
|
24
|
+
get allVideoUserList(): string[];
|
|
25
|
+
get totalPageNum(): number;
|
|
26
|
+
get curVideoUserList(): string[];
|
|
27
|
+
get curStreamList(): EduStreamUI[];
|
|
28
|
+
nextPage(): void;
|
|
29
|
+
prevPage(): void;
|
|
30
|
+
setPageSize(pageSize: number): void;
|
|
31
|
+
setOpen(open: boolean, id?: string): void;
|
|
32
|
+
private _updateUsers;
|
|
33
|
+
openExternalWindow(): void;
|
|
34
|
+
closeExternalWindow(): void;
|
|
35
|
+
private _setLoading;
|
|
36
|
+
private _setCurPage;
|
|
37
|
+
private _setLocalPreview;
|
|
38
|
+
private _rtcRawDataCallback;
|
|
39
|
+
private _sendVideoGalleryState;
|
|
40
|
+
onInstall(): void;
|
|
41
|
+
onDestroy(): void;
|
|
42
|
+
}
|