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,149 @@
|
|
|
1
|
+
import { WindowID } from '@classroom/infra/api';
|
|
2
|
+
import { AGError, Logger } from 'agora-rte-sdk';
|
|
3
|
+
import { ConfirmDialogAction, OrientationEnum } from '../type';
|
|
4
|
+
export declare enum DialogCategory {
|
|
5
|
+
CloudDriver = 0,
|
|
6
|
+
Roster = 1,
|
|
7
|
+
LectureRoster = 2,
|
|
8
|
+
KickOut = 3,
|
|
9
|
+
ErrorGeneric = 4,
|
|
10
|
+
Confirm = 5,
|
|
11
|
+
DeviceSetting = 6,
|
|
12
|
+
ScreenPicker = 7,
|
|
13
|
+
BreakoutRoom = 8,
|
|
14
|
+
Quit = 9,
|
|
15
|
+
ScreenShare = 10,
|
|
16
|
+
RemoteControlConfirm = 11,
|
|
17
|
+
VideoGallery = 12,
|
|
18
|
+
InvitePodium = 13,
|
|
19
|
+
InviteConfirm = 14
|
|
20
|
+
}
|
|
21
|
+
export interface ToastType {
|
|
22
|
+
id: string;
|
|
23
|
+
desc: string;
|
|
24
|
+
type?: ToastTypeEnum;
|
|
25
|
+
}
|
|
26
|
+
export declare type ToastTypeEnum = 'success' | 'error' | 'warning' | 'info' | 'normal';
|
|
27
|
+
export interface DialogType {
|
|
28
|
+
id: string;
|
|
29
|
+
category: DialogCategory;
|
|
30
|
+
props?: unknown;
|
|
31
|
+
}
|
|
32
|
+
export declare class EduShareUIStore {
|
|
33
|
+
protected readonly logger: Logger;
|
|
34
|
+
readonly classroomViewportClassName = "classroom-viewport";
|
|
35
|
+
readonly classroomViewportTransitionDuration = 300;
|
|
36
|
+
readonly navHeight = 27;
|
|
37
|
+
private _viewportAspectRatio;
|
|
38
|
+
private _classroomMinimumSize;
|
|
39
|
+
private _containerNode;
|
|
40
|
+
private _matchMedia;
|
|
41
|
+
private _resizeEventListenerAdded;
|
|
42
|
+
/**
|
|
43
|
+
* 教室UI布局完毕
|
|
44
|
+
*/
|
|
45
|
+
layoutReady: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 模态框列表
|
|
48
|
+
*/
|
|
49
|
+
dialogQueue: DialogType[];
|
|
50
|
+
/**
|
|
51
|
+
* Toast 列表
|
|
52
|
+
*/
|
|
53
|
+
toastQueue: ToastType[];
|
|
54
|
+
/**
|
|
55
|
+
* 视口尺寸信息
|
|
56
|
+
*/
|
|
57
|
+
classroomViewportSize: {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
h5Width?: number;
|
|
61
|
+
h5Height?: number;
|
|
62
|
+
};
|
|
63
|
+
orientation: OrientationEnum;
|
|
64
|
+
forceLandscape: boolean;
|
|
65
|
+
get isLandscape(): boolean;
|
|
66
|
+
setForceLandscape(forceLandscape: boolean): void;
|
|
67
|
+
/**
|
|
68
|
+
* 添加一条 单例 Toast 信息
|
|
69
|
+
* @param desc
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
addSingletonToast(desc: string, type: ToastTypeEnum): string;
|
|
73
|
+
/**
|
|
74
|
+
* 显示一条 Toast 信息
|
|
75
|
+
* @param desc
|
|
76
|
+
* @param type
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
addToast(desc: string, type?: ToastTypeEnum): string;
|
|
80
|
+
/**
|
|
81
|
+
* 移除 Toast 信息
|
|
82
|
+
* @param id
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
removeToast(id: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* 显示错误提示模态框
|
|
88
|
+
* @param error
|
|
89
|
+
* @param opts
|
|
90
|
+
*/
|
|
91
|
+
addGenericErrorDialog(error: AGError, opts?: {
|
|
92
|
+
onOK?: () => void;
|
|
93
|
+
okBtnText?: string;
|
|
94
|
+
}): void;
|
|
95
|
+
/**
|
|
96
|
+
* 显示确认模态框
|
|
97
|
+
* @param title
|
|
98
|
+
* @param content
|
|
99
|
+
* @param onOK
|
|
100
|
+
* @param actions
|
|
101
|
+
* @param onCancel
|
|
102
|
+
*/
|
|
103
|
+
addConfirmDialog(title: string, content: string, { onOK, actions, onCancel, btnText, timeout, }?: {
|
|
104
|
+
onOK?: () => void;
|
|
105
|
+
actions?: ConfirmDialogAction[];
|
|
106
|
+
onCancel?: () => void;
|
|
107
|
+
btnText?: Record<ConfirmDialogAction, string>;
|
|
108
|
+
timeout?: number;
|
|
109
|
+
}): string;
|
|
110
|
+
/**
|
|
111
|
+
* 显示模态框
|
|
112
|
+
* @param category
|
|
113
|
+
* @param props
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
addDialog(category: DialogCategory, props?: any): any;
|
|
117
|
+
/**
|
|
118
|
+
* 移除模态框
|
|
119
|
+
* @param id
|
|
120
|
+
*/
|
|
121
|
+
removeDialog(id: string): void;
|
|
122
|
+
/** Actions */
|
|
123
|
+
/**
|
|
124
|
+
* 更新教室视口尺寸信息
|
|
125
|
+
*/
|
|
126
|
+
updateClassroomViewportSize(): void;
|
|
127
|
+
handleOrientationchange(): void;
|
|
128
|
+
/**
|
|
129
|
+
设置 Resize 事件处理器
|
|
130
|
+
*/
|
|
131
|
+
addWindowResizeEventListener(): void;
|
|
132
|
+
/**
|
|
133
|
+
* 移除 Resize 事件处理器
|
|
134
|
+
*/
|
|
135
|
+
removeWindowResizeEventListener(): void;
|
|
136
|
+
addOrientationchange(): void;
|
|
137
|
+
removeOrientationchange(): void;
|
|
138
|
+
showWindow(windowID: WindowID): void;
|
|
139
|
+
hideWindow(windowID: WindowID): void;
|
|
140
|
+
openWindow(windowID: WindowID, payload: {
|
|
141
|
+
args?: Record<string, string | number | boolean>;
|
|
142
|
+
options?: Record<string, string | number | boolean>;
|
|
143
|
+
}): void;
|
|
144
|
+
moveWindowToTargetScreen(windowID: WindowID, screenId: string, options: Record<string, string | number | boolean>): void;
|
|
145
|
+
moveWindowAlignToWindow(windowID: WindowID, windowIDAlignTo: WindowID, options: Record<string, string | number | boolean>): void;
|
|
146
|
+
closeWindow(windowID: WindowID): void;
|
|
147
|
+
addViewportResizeObserver(callback: () => void): ResizeObserver;
|
|
148
|
+
setLayoutReady(ready: boolean): void;
|
|
149
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { AgoraRteMediaSourceState, AGRenderMode } from 'agora-rte-sdk';
|
|
2
|
+
import { IReactionDisposer, Lambda } from 'mobx';
|
|
3
|
+
import { EduUIStoreBase } from '../base';
|
|
4
|
+
import { CameraPlaceholderType, EduStreamUI, StreamBounds } from './struct';
|
|
5
|
+
import { EduStreamTool } from './tool';
|
|
6
|
+
import { AgoraEduClassroomEvent, ClassroomState, EduStream } from 'agora-edu-core';
|
|
7
|
+
import { ShareStreamStateKeeper } from './state-keeper';
|
|
8
|
+
export declare enum StreamIconColor {
|
|
9
|
+
active = "#357bf6",
|
|
10
|
+
deactive = "#bdbdca",
|
|
11
|
+
activeWarn = "#f04c36"
|
|
12
|
+
}
|
|
13
|
+
export declare class StreamUIStore extends EduUIStoreBase {
|
|
14
|
+
protected _disposers: (IReactionDisposer | Lambda)[];
|
|
15
|
+
/**
|
|
16
|
+
* 视频窗位置信息
|
|
17
|
+
*/
|
|
18
|
+
/** @en
|
|
19
|
+
* video stream bounds
|
|
20
|
+
*/
|
|
21
|
+
streamsBounds: Map<string, StreamBounds>;
|
|
22
|
+
shareScreenStateKeeperMap: Map<string, ShareStreamStateKeeper>;
|
|
23
|
+
settingsOpened: boolean;
|
|
24
|
+
get screenShareStateAccessor(): {
|
|
25
|
+
trackState: AgoraRteMediaSourceState;
|
|
26
|
+
classroomState: ClassroomState;
|
|
27
|
+
};
|
|
28
|
+
onInstall(): void;
|
|
29
|
+
_handleRewardsChange(e: AgoraEduClassroomEvent, params: unknown): void;
|
|
30
|
+
protected _setRenderAt(stream: EduStreamUI): void;
|
|
31
|
+
/**
|
|
32
|
+
* 奖励信息
|
|
33
|
+
*/
|
|
34
|
+
awardAnims: {
|
|
35
|
+
id: string;
|
|
36
|
+
userUuid: string;
|
|
37
|
+
}[];
|
|
38
|
+
/**
|
|
39
|
+
* 分离窗口视频流
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
get allUIStreams(): Map<string, EduStreamUI>;
|
|
43
|
+
/**
|
|
44
|
+
* 老师流信息(教室内只有一个老师时使用,如果有一个以上老师请使用 teacherStreams)
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
get teacherCameraStream(): EduStreamUI | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 学生流信息(教室内只有一个学生时使用,如果有一个以上老师请使用 studentStreams)
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
get studentCameraStream(): EduStreamUI | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* 学生流信息(教室内只有一个学生时使用,如果有一个以上老师请使用 studentStreams)
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
get studentCameraStreams(): EduStreamUI[];
|
|
58
|
+
/**
|
|
59
|
+
* 屏幕共享流
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
get screenShareStream(): EduStream | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* 获取远端流音量
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
remoteStreamVolume: (stream: EduStreamUI) => number;
|
|
68
|
+
/**
|
|
69
|
+
* 本地音量
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
get localVolume(): number;
|
|
73
|
+
/**
|
|
74
|
+
* 本地摄像头设备状态
|
|
75
|
+
* @returns
|
|
76
|
+
*/
|
|
77
|
+
get localCameraTrackState(): AgoraRteMediaSourceState;
|
|
78
|
+
/**
|
|
79
|
+
* 本地麦克风设备状态
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
get localMicTrackState(): AgoraRteMediaSourceState;
|
|
83
|
+
/**
|
|
84
|
+
* 本地屏幕共享状态
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
87
|
+
get localScreenShareOff(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* 本地摄像头设备是否关闭
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
get localCameraOff(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* 本地麦克风设备是否关闭
|
|
95
|
+
* @returns
|
|
96
|
+
*/
|
|
97
|
+
get localMicOff(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* 镜像是否开启
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
get isMirror(): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* 白板授权用户列表
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
get whiteboardGrantUsers(): Set<string>;
|
|
108
|
+
/**
|
|
109
|
+
* 视频窗口显示的挂件信息
|
|
110
|
+
* reward: 奖励信息
|
|
111
|
+
* grant: 授权状态
|
|
112
|
+
* @returns
|
|
113
|
+
*/
|
|
114
|
+
get layerItems(): string[];
|
|
115
|
+
/**
|
|
116
|
+
* 远端流是否正在举手
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
isWaveArm: (stream: EduStreamUI) => boolean;
|
|
120
|
+
/**
|
|
121
|
+
* 远端流奖励信息
|
|
122
|
+
* @returns
|
|
123
|
+
*/
|
|
124
|
+
awards: (stream: EduStreamUI) => number;
|
|
125
|
+
/**
|
|
126
|
+
* 远端流奖励动画列表
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
streamAwardAnims: (stream: EduStreamUI) => {
|
|
130
|
+
id: string;
|
|
131
|
+
userUuid: string;
|
|
132
|
+
}[];
|
|
133
|
+
/**
|
|
134
|
+
* 本地视频窗摄像头
|
|
135
|
+
* @returns
|
|
136
|
+
*/
|
|
137
|
+
localCameraTool: () => EduStreamTool;
|
|
138
|
+
/**
|
|
139
|
+
* 本地视频窗麦克风
|
|
140
|
+
* @returns
|
|
141
|
+
*/
|
|
142
|
+
localMicTool: () => EduStreamTool;
|
|
143
|
+
/**
|
|
144
|
+
* 本地视频窗上下台
|
|
145
|
+
* @returns
|
|
146
|
+
*/
|
|
147
|
+
localPodiumTool: () => EduStreamTool;
|
|
148
|
+
/**
|
|
149
|
+
* 远端视频窗摄像头
|
|
150
|
+
* @returns
|
|
151
|
+
*/
|
|
152
|
+
remoteCameraTool: (stream: EduStreamUI) => EduStreamTool;
|
|
153
|
+
/**
|
|
154
|
+
* 远端视频窗麦克风
|
|
155
|
+
* @returns
|
|
156
|
+
*/
|
|
157
|
+
remoteMicTool: (stream: EduStreamUI) => EduStreamTool;
|
|
158
|
+
/**
|
|
159
|
+
* 远端视频窗上下台
|
|
160
|
+
* @returns
|
|
161
|
+
*/
|
|
162
|
+
remotePodiumTool: (stream: EduStreamUI) => EduStreamTool;
|
|
163
|
+
/**
|
|
164
|
+
* 远端视频窗白板授权
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
remoteWhiteboardTool: (stream: EduStreamUI) => EduStreamTool;
|
|
168
|
+
/**
|
|
169
|
+
* 远端视频窗奖励
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
remoteRewardTool: (stream: EduStreamUI) => EduStreamTool;
|
|
173
|
+
/**
|
|
174
|
+
* 本地视频窗工具列表
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
177
|
+
get localStreamTools(): EduStreamTool[];
|
|
178
|
+
/**
|
|
179
|
+
* 远端视频窗工具列表
|
|
180
|
+
* @returns
|
|
181
|
+
*/
|
|
182
|
+
remoteStreamTools: (stream: EduStreamUI) => EduStreamTool[];
|
|
183
|
+
/**
|
|
184
|
+
* 本地音频图标
|
|
185
|
+
* @returns
|
|
186
|
+
*/
|
|
187
|
+
get localMicIconType(): "microphone-on" | "microphone-off";
|
|
188
|
+
/**
|
|
189
|
+
* 本地视频占位符
|
|
190
|
+
* @returns
|
|
191
|
+
*/
|
|
192
|
+
cameraPlaceholder: (stream: EduStreamUI) => CameraPlaceholderType;
|
|
193
|
+
/**
|
|
194
|
+
* 视频窗工具栏定位
|
|
195
|
+
* @returns
|
|
196
|
+
*/
|
|
197
|
+
get toolbarPlacement(): 'left' | 'bottom';
|
|
198
|
+
/**
|
|
199
|
+
* 视频窗工具栏定位
|
|
200
|
+
* @returns
|
|
201
|
+
*/
|
|
202
|
+
get toolbarOffset(): number[];
|
|
203
|
+
/**
|
|
204
|
+
* 大窗视频窗工具栏定位
|
|
205
|
+
* @returns
|
|
206
|
+
*/
|
|
207
|
+
get fullScreenToolbarPlacement(): 'left' | 'bottom';
|
|
208
|
+
/**
|
|
209
|
+
* 大窗视频窗工具栏定位
|
|
210
|
+
* @returns
|
|
211
|
+
*/
|
|
212
|
+
get fullScreenToolbarOffset(): number[];
|
|
213
|
+
/**
|
|
214
|
+
* 移除奖励动画
|
|
215
|
+
* @param id
|
|
216
|
+
*/
|
|
217
|
+
removeAward(id: string): void;
|
|
218
|
+
/**
|
|
219
|
+
* 切换本地摄像头设备开关状态
|
|
220
|
+
*/
|
|
221
|
+
toggleLocalVideo(): void;
|
|
222
|
+
/**
|
|
223
|
+
* 切换本地麦克风设备开关状态
|
|
224
|
+
*/
|
|
225
|
+
toggleLocalAudio(): void;
|
|
226
|
+
/**
|
|
227
|
+
* 渲染本地 Stream 视频到 DOM
|
|
228
|
+
* @param stream
|
|
229
|
+
* @param dom
|
|
230
|
+
* @param mirror
|
|
231
|
+
* @returns
|
|
232
|
+
*/
|
|
233
|
+
setupLocalVideo(dom: HTMLElement, mirror?: boolean, renderMode?: AGRenderMode): void;
|
|
234
|
+
/**
|
|
235
|
+
* 渲染远端 Stream 视频到 DOM
|
|
236
|
+
* @param stream
|
|
237
|
+
* @param dom
|
|
238
|
+
* @param mirror
|
|
239
|
+
* @param renderMode
|
|
240
|
+
* @returns
|
|
241
|
+
*/
|
|
242
|
+
setupRemoteVideo(stream: EduStream, dom: HTMLElement, mirror: boolean, renderMode?: AGRenderMode): void;
|
|
243
|
+
/**
|
|
244
|
+
* 渲染本地屏幕共享到 DOM
|
|
245
|
+
* @param dom
|
|
246
|
+
*/
|
|
247
|
+
setupLocalScreenShare(dom: HTMLElement): void;
|
|
248
|
+
/**
|
|
249
|
+
* 停止屏幕视频采集
|
|
250
|
+
* @returns
|
|
251
|
+
*/
|
|
252
|
+
stopScreenShareCapture(): void;
|
|
253
|
+
setStreamBoundsByStreamUuid(streamUuid: string, bounds: StreamBounds): void;
|
|
254
|
+
removeStreamBoundsByStreamUuid(streamUuid: string): void;
|
|
255
|
+
setSettingsOpened(opened: boolean): void;
|
|
256
|
+
onDestroy(): void;
|
|
257
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AgoraRteMediaSourceState, AgoraRteThread } from 'agora-rte-sdk';
|
|
2
|
+
export declare class ShareStreamStateKeeper extends AgoraRteThread {
|
|
3
|
+
private _timer?;
|
|
4
|
+
private _cancelTimer?;
|
|
5
|
+
private _timeout;
|
|
6
|
+
private _currentState;
|
|
7
|
+
private _targetState;
|
|
8
|
+
syncTo: (targetState: AgoraRteMediaSourceState) => Promise<void>;
|
|
9
|
+
constructor(syncTo: (targetState: AgoraRteMediaSourceState) => Promise<void>);
|
|
10
|
+
onExecution(): Promise<void>;
|
|
11
|
+
setShareScreenState(state: AgoraRteMediaSourceState): void;
|
|
12
|
+
run(): void;
|
|
13
|
+
stop(): void;
|
|
14
|
+
private _increaseTimeout;
|
|
15
|
+
private _runImmediately;
|
|
16
|
+
private _wait;
|
|
17
|
+
private _cancelWait;
|
|
18
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { EduRoleTypeEnum, EduStream } from 'agora-edu-core';
|
|
2
|
+
import { AgoraFromUser } from 'agora-rte-sdk';
|
|
3
|
+
export declare type VideoPlacement = 'Window' | 'Bar' | 'Setting' | 'Gallery';
|
|
4
|
+
/**
|
|
5
|
+
* 业务流 UI 对象
|
|
6
|
+
*/
|
|
7
|
+
export declare class EduStreamUI {
|
|
8
|
+
private _renderAt;
|
|
9
|
+
readonly stream: EduStream;
|
|
10
|
+
constructor(stream: EduStream);
|
|
11
|
+
get micIconType(): "microphone-disabled" | "microphone-on" | "microphone-off";
|
|
12
|
+
get isCameraMuted(): boolean;
|
|
13
|
+
get isMicMuted(): boolean;
|
|
14
|
+
get fromUser(): AgoraFromUser;
|
|
15
|
+
get isMirrorMode(): boolean;
|
|
16
|
+
get role(): EduRoleTypeEnum;
|
|
17
|
+
get renderAt(): VideoPlacement;
|
|
18
|
+
setRenderAt(at: VideoPlacement): void;
|
|
19
|
+
}
|
|
20
|
+
export interface StreamBounds {
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
readonly width: number;
|
|
24
|
+
readonly height: number;
|
|
25
|
+
readonly top: number;
|
|
26
|
+
readonly right: number;
|
|
27
|
+
readonly bottom: number;
|
|
28
|
+
readonly left: number;
|
|
29
|
+
[key: string]: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 视频流占位符类型
|
|
33
|
+
*/
|
|
34
|
+
export declare enum CameraPlaceholderType {
|
|
35
|
+
/**
|
|
36
|
+
* 摄像头打开
|
|
37
|
+
*/
|
|
38
|
+
none = "none",
|
|
39
|
+
/**
|
|
40
|
+
* 设备正在打开
|
|
41
|
+
*/
|
|
42
|
+
loading = "loading",
|
|
43
|
+
/**
|
|
44
|
+
* 摄像头关闭
|
|
45
|
+
*/
|
|
46
|
+
muted = "muted",
|
|
47
|
+
/**
|
|
48
|
+
* 摄像头损坏
|
|
49
|
+
*/
|
|
50
|
+
broken = "broken",
|
|
51
|
+
/**
|
|
52
|
+
* 摄像头禁用
|
|
53
|
+
*/
|
|
54
|
+
disabled = "disabled",
|
|
55
|
+
/**
|
|
56
|
+
* 老师不在教室
|
|
57
|
+
*/
|
|
58
|
+
notpresent = "notpresent",
|
|
59
|
+
/**
|
|
60
|
+
* 老师摄像头占位符(大小窗场景)
|
|
61
|
+
*/
|
|
62
|
+
nosetup = "nosetup"
|
|
63
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IconWithState } from '@classroom/ui-kit/components/util/type';
|
|
2
|
+
import { EduStream } from 'agora-edu-core';
|
|
3
|
+
import { CameraPlaceholderType } from './struct';
|
|
4
|
+
/**
|
|
5
|
+
* 视频窗工具类型
|
|
6
|
+
*/
|
|
7
|
+
export declare enum EduStreamToolCategory {
|
|
8
|
+
camera = 0,
|
|
9
|
+
microphone = 1,
|
|
10
|
+
whiteboard = 2,
|
|
11
|
+
podium = 3,
|
|
12
|
+
podium_all = 4,
|
|
13
|
+
star = 5,
|
|
14
|
+
stream_window_off = 6
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 视频窗工具对象
|
|
18
|
+
*/
|
|
19
|
+
export declare class EduStreamTool {
|
|
20
|
+
iconType: IconWithState;
|
|
21
|
+
hoverIconType?: IconWithState;
|
|
22
|
+
interactable: boolean;
|
|
23
|
+
toolTip: string;
|
|
24
|
+
category: EduStreamToolCategory;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
constructor(category: EduStreamToolCategory, iconType: IconWithState, toolTip: string, options?: {
|
|
27
|
+
interactable?: boolean;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
hoverIconType?: IconWithState;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export declare const getCameraPlaceholder: (stream: EduStream) => CameraPlaceholderType.none | CameraPlaceholderType.muted | CameraPlaceholderType.disabled;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { StreamWindow, StreamWindowBounds, WidgetTrackStruct } from './type';
|
|
2
|
+
export declare function isNum(num: unknown): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* 计算 8 宫格布局
|
|
5
|
+
* 当数量小于等于 3 的时候一行展示
|
|
6
|
+
*
|
|
7
|
+
* ┌───────┐
|
|
8
|
+
* │ 1 │
|
|
9
|
+
* └───────┘
|
|
10
|
+
*
|
|
11
|
+
* ┌───────┬───────┐
|
|
12
|
+
* │ 1 │ 2 │
|
|
13
|
+
* └───────┴───────┘
|
|
14
|
+
*
|
|
15
|
+
* ┌───────┬───────┬───────┐
|
|
16
|
+
* │ 1 │ 2 │ 3 │
|
|
17
|
+
* └───────┴───────┴───────┘
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* 当数量大于3的时候
|
|
21
|
+
*
|
|
22
|
+
* ┌───────┬───────┐
|
|
23
|
+
* │ 3 │ 4 │
|
|
24
|
+
* ├───────┼───────┤
|
|
25
|
+
* │ 1 │ 2 │
|
|
26
|
+
* └───────┴───────┘
|
|
27
|
+
*
|
|
28
|
+
* ┌───────────┬───────────┐
|
|
29
|
+
* │ 4 │ 5 │
|
|
30
|
+
* ├───────┬───┴───┬───────┤
|
|
31
|
+
* │ 1 │ 2 │ 3 │
|
|
32
|
+
* └───────┴───────┴───────┘
|
|
33
|
+
*
|
|
34
|
+
* ┌───────┬───────┬───────┐
|
|
35
|
+
* │ 4 │ 5 │ 6 │
|
|
36
|
+
* ├───────┼───────┼───────┤
|
|
37
|
+
* │ 1 │ 2 │ 3 │
|
|
38
|
+
* └───────┴───────┴───────┘
|
|
39
|
+
*
|
|
40
|
+
* ┌───────────┬─────────┬─────────┐
|
|
41
|
+
* │ 5 │ 6 │ 7 │
|
|
42
|
+
* ├───────┬───┴───┬─────┴─┬───────┤
|
|
43
|
+
* │ 1 │ 2 │ 3 │ 4 │
|
|
44
|
+
* └───────┴───────┴───────┴───────┘
|
|
45
|
+
*
|
|
46
|
+
* ┌───────┬───────┬───────┬───────┐
|
|
47
|
+
* │ 5 │ 6 │ 7 │ 8 │
|
|
48
|
+
* ├───────┼───────┼───────┼───────┤
|
|
49
|
+
* │ 1 │ 2 │ 3 │ 4 │
|
|
50
|
+
* └───────┴───────┴───────┴───────┘
|
|
51
|
+
*
|
|
52
|
+
* @param length
|
|
53
|
+
* @param width
|
|
54
|
+
* @param height
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
export declare const calculateSize: (length: number, width: number, height: number) => StreamWindowBounds[][];
|
|
58
|
+
/**
|
|
59
|
+
* 计算 9 宫格布局
|
|
60
|
+
* 计算规则为 1^2 2^2 3^2
|
|
61
|
+
*/
|
|
62
|
+
export declare const calculateSizeSquare: (length: number, width: number, height: number) => StreamWindowBounds[][];
|
|
63
|
+
/**
|
|
64
|
+
* 需要把 x, y 为可移动距离的比例
|
|
65
|
+
* 最大有效移动范围(Maximum Effective Distance, MED):在不超出教室布局的前提下,分别能够在 X 轴、Y 轴方向移动的最大距离
|
|
66
|
+
* 移动偏移量:
|
|
67
|
+
* @param rect
|
|
68
|
+
*/
|
|
69
|
+
export declare const convertToWidgetTrackPos: (rect: StreamWindow, bigRect: {
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
}) => {
|
|
73
|
+
position: {
|
|
74
|
+
xaxis: number;
|
|
75
|
+
yaxis: number;
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
};
|
|
81
|
+
extra: {
|
|
82
|
+
contain: boolean;
|
|
83
|
+
zIndex: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 把 widget 坐标转换为目前的用的坐标
|
|
88
|
+
* @param rect
|
|
89
|
+
* @param bigRect
|
|
90
|
+
*/
|
|
91
|
+
export declare const convertToRelativePos: (rect: WidgetTrackStruct, streamWindowRect: {
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
}) => {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
zIndex: number;
|
|
100
|
+
contain: boolean;
|
|
101
|
+
};
|