@cloud-app-dev/vidc 4.0.20 → 4.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AppContext/Sync.d.ts +8 -0
- package/es/AppContext/Sync.js +42 -0
- package/es/AppContext/index.d.ts +10 -0
- package/es/AppContext/index.js +141 -0
- package/es/AppContext/interface.d.ts +41 -0
- package/es/AppContext/static.d.ts +8 -0
- package/es/AppContext/static.js +9 -0
- package/es/Auth/index.d.ts +8 -0
- package/es/Auth/index.js +14 -0
- package/es/AutoExit/index.d.ts +6 -0
- package/es/AutoExit/index.js +19 -0
- package/es/CheckGroupFixed/demo.d.ts +3 -0
- package/es/CheckGroupFixed/demo.js +22 -0
- package/es/CheckGroupFixed/index.d.ts +24 -0
- package/es/CheckGroupFixed/index.js +140 -0
- package/es/CheckGroupFixed/index.less +56 -0
- package/es/Config/index.d.ts +4 -0
- package/es/Config/index.js +77 -0
- package/es/Config/interface.d.ts +65 -0
- package/es/Config/utils.d.ts +4 -0
- package/es/Config/utils.js +33 -0
- package/es/ConfigContext/index.d.ts +17 -0
- package/es/ConfigContext/index.js +21 -0
- package/es/CustomRenderSelect/index.d.ts +12 -0
- package/es/CustomRenderSelect/index.js +73 -0
- package/es/CustomRenderSelect/index.less +25 -0
- package/es/DBTools/index.d.ts +25 -0
- package/es/DBTools/index.js +336 -0
- package/es/DisableMark/index.d.ts +9 -0
- package/es/DisableMark/index.js +19 -0
- package/es/DisableMark/index.less +9 -0
- package/es/DomMove/demo.d.ts +2 -0
- package/es/DomMove/demo.js +16 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/index.js +139 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/DomMove/utils.js +32 -0
- package/es/Drag/DragAndDropItem.d.ts +4 -0
- package/es/Drag/DragAndDropItem.js +134 -0
- package/es/Drag/DropItem.d.ts +4 -0
- package/es/Drag/DropItem.js +50 -0
- package/es/Drag/index.d.ts +7 -0
- package/es/Drag/index.js +7 -0
- package/es/Drag/interface.d.ts +16 -0
- package/es/DynamicGridList/Demo.d.ts +3 -0
- package/es/DynamicGridList/Demo.js +77 -0
- package/es/DynamicGridList/index.d.ts +24 -0
- package/es/DynamicGridList/index.js +67 -0
- package/es/DynamicList/demo.d.ts +2 -0
- package/es/DynamicList/demo.js +44 -0
- package/es/DynamicList/index.d.ts +22 -0
- package/es/DynamicList/index.js +86 -0
- package/es/DynamicList/index.less +17 -0
- package/es/DynamicList/interface.d.ts +19 -0
- package/es/DynamicList/utils.d.ts +4 -0
- package/es/DynamicList/utils.js +6 -0
- package/es/ErrorFallback/index.d.ts +9 -0
- package/es/ErrorFallback/index.js +31 -0
- package/es/ErrorFallback/inerface.d.ts +48 -0
- package/es/EventTools/index.d.ts +3 -0
- package/es/EventTools/index.js +12 -0
- package/es/FrontendPlayer/index.d.ts +4 -0
- package/es/FrontendPlayer/index.js +2 -0
- package/es/FullScreen/index.d.ts +22 -0
- package/es/FullScreen/index.js +33 -0
- package/es/FullScreen/index.less +18 -0
- package/es/GridList/Demo.d.ts +3 -0
- package/es/GridList/Demo.js +80 -0
- package/es/GridList/data.d.ts +16 -0
- package/es/GridList/data.js +609 -0
- package/es/GridList/hook.d.ts +13 -0
- package/es/GridList/hook.js +270 -0
- package/es/GridList/index.d.ts +15 -0
- package/es/GridList/index.js +44 -0
- package/es/GridList/index.less +8 -0
- package/es/GridList/interface.d.ts +59 -0
- package/es/GridList/utils.d.ts +9 -0
- package/es/GridList/utils.js +42 -0
- package/es/HightLevel/index.d.ts +9 -0
- package/es/HightLevel/index.js +18 -0
- package/es/HightLevel/index.less +3 -0
- package/es/IconFont/index.d.ts +12 -0
- package/es/IconFont/index.js +54 -0
- package/es/ImageView/index.d.ts +20 -0
- package/es/ImageView/index.js +51 -0
- package/es/ImageView/index.less +11 -0
- package/es/InstanceHistory/index.d.ts +3 -0
- package/es/InstanceHistory/index.js +7 -0
- package/es/LabelPlayer/111.png +0 -0
- package/es/LabelPlayer/demo.d.ts +2 -0
- package/es/LabelPlayer/demo.js +115 -0
- package/es/LabelPlayer/index.d.ts +21 -0
- package/es/LabelPlayer/index.js +160 -0
- package/es/LabelPlayer/index.less +24 -0
- package/es/LabelValue/index.d.ts +15 -0
- package/es/LabelValue/index.js +27 -0
- package/es/LabelValue/index.less +23 -0
- package/es/List/demo.d.ts +3 -0
- package/es/List/demo.js +23 -0
- package/es/List/index.d.ts +28 -0
- package/es/List/index.js +28 -0
- package/es/List/index.less +20 -0
- package/es/ListWithSizeAnimate/demo.d.ts +2 -0
- package/es/ListWithSizeAnimate/demo.js +98 -0
- package/es/ListWithSizeAnimate/index.d.ts +14 -0
- package/es/ListWithSizeAnimate/index.js +85 -0
- package/es/ListWithSizeAnimate/index.less +23 -0
- package/es/LoaderScript/index.d.ts +47 -0
- package/es/LoaderScript/index.js +34 -0
- package/es/LoaderScript/utils.d.ts +13 -0
- package/es/LoaderScript/utils.js +179 -0
- package/es/Map/AMap.d.ts +7109 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +19 -0
- package/es/Map/BasicMap/AMapInstance.js +98 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +18 -0
- package/es/Map/BasicMap/LeafletInstance.js +111 -0
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/BasicMap/index.js +90 -0
- package/es/Map/BasicMap/index.less +29 -0
- package/es/Map/ClusterLayer/demo.d.ts +3 -0
- package/es/Map/ClusterLayer/demo.js +18 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/hook.js +123 -0
- package/es/Map/ClusterLayer/index.d.ts +6 -0
- package/es/Map/ClusterLayer/index.js +28 -0
- package/es/Map/ClusterLayer/index.less +29 -0
- package/es/Map/ClusterLayer/props.d.ts +8 -0
- package/es/Map/Config/index.d.ts +9 -0
- package/es/Map/Config/index.js +48 -0
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/Map/Config/utils.js +65 -0
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/Context/index.js +51 -0
- package/es/Map/FindPio/index.d.ts +4 -0
- package/es/Map/FindPio/index.js +13 -0
- package/es/Map/FindPio/index.less +7 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +4 -0
- package/es/Map/InfoWindow/MakerLikeWindow.js +112 -0
- package/es/Map/InfoWindow/demo.d.ts +3 -0
- package/es/Map/InfoWindow/demo.js +70 -0
- package/es/Map/InfoWindow/index.d.ts +11 -0
- package/es/Map/InfoWindow/index.js +66 -0
- package/es/Map/LevelCenter/DragMarker/index.d.ts +10 -0
- package/es/Map/LevelCenter/DragMarker/index.js +42 -0
- package/es/Map/LevelCenter/demo.d.ts +3 -0
- package/es/Map/LevelCenter/demo.js +38 -0
- package/es/Map/LevelCenter/index.d.ts +15 -0
- package/es/Map/LevelCenter/index.js +66 -0
- package/es/Map/LoaderMap/index.d.ts +7 -0
- package/es/Map/LoaderMap/index.js +62 -0
- package/es/Map/MapDrawSelect/demo.d.ts +3 -0
- package/es/Map/MapDrawSelect/demo.js +71 -0
- package/es/Map/MapDrawSelect/index.d.ts +15 -0
- package/es/Map/MapDrawSelect/index.js +56 -0
- package/es/Map/MouseTool/index.d.ts +10 -0
- package/es/Map/MouseTool/index.js +40 -0
- package/es/Map/MouseTool/useMouseTools.d.ts +7 -0
- package/es/Map/MouseTool/useMouseTools.js +83 -0
- package/es/Map/ResetTools/index.d.ts +10 -0
- package/es/Map/ResetTools/index.js +57 -0
- package/es/Map/ResetTools/index.less +39 -0
- package/es/Map/SinglePoint/demo.d.ts +3 -0
- package/es/Map/SinglePoint/demo.js +14 -0
- package/es/Map/SinglePoint/index.d.ts +27 -0
- package/es/Map/SinglePoint/index.js +52 -0
- package/es/Map/SinglePoint/index.less +41 -0
- package/es/Map/hook/useMapEvent.d.ts +2 -0
- package/es/Map/hook/useMapEvent.js +19 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/hook/useMapType.js +12 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/icon.js +10 -0
- package/es/Map/index.d.ts +24 -0
- package/es/Map/index.js +25 -0
- package/es/Map/interface.d.ts +74 -0
- package/es/Map/points.d.ts +50 -0
- package/es/Map/points.js +1 -0
- package/es/Map/useMarker/index.d.ts +10 -0
- package/es/Map/useMarker/index.js +71 -0
- package/es/Map/withMap/index.d.ts +3 -0
- package/es/Map/withMap/index.js +10 -0
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +8 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +80 -0
- package/es/Picture/component/DefaultRects/index.d.ts +13 -0
- package/es/Picture/component/DefaultRects/index.js +52 -0
- package/es/Picture/component/DefaultRects/index.less +211 -0
- package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
- package/es/Picture/component/DefaultRects/utils.js +11 -0
- package/es/Picture/component/DrawRect/index.d.ts +13 -0
- package/es/Picture/component/DrawRect/index.js +46 -0
- package/es/Picture/component/DrawRect/index.less +8 -0
- package/es/Picture/component/RectMenu/index.d.ts +12 -0
- package/es/Picture/component/RectMenu/index.js +76 -0
- package/es/Picture/component/RectMenu/index.less +36 -0
- package/es/Picture/component/RectMenu/utils.d.ts +12 -0
- package/es/Picture/component/RectMenu/utils.js +19 -0
- package/es/Picture/component/Tools/index.d.ts +12 -0
- package/es/Picture/component/Tools/index.js +73 -0
- package/es/Picture/component/Tools/index.less +49 -0
- package/es/Picture/component/WheelScale/index.d.ts +7 -0
- package/es/Picture/component/WheelScale/index.js +27 -0
- package/es/Picture/demo.d.ts +2 -0
- package/es/Picture/demo.js +105 -0
- package/es/Picture/index.d.ts +5 -0
- package/es/Picture/index.js +341 -0
- package/es/Picture/index.less +20 -0
- package/es/Picture/interface.d.ts +196 -0
- package/es/Picture/loadCaptureRectImage.d.ts +3 -0
- package/es/Picture/loadCaptureRectImage.js +99 -0
- package/es/Picture/useDraw.d.ts +1 -0
- package/es/Picture/useDraw.js +103 -0
- package/es/Picture/utils.d.ts +26 -0
- package/es/Picture/utils.js +143 -0
- package/es/Player/api/index.d.ts +68 -0
- package/es/Player/api/index.js +309 -0
- package/es/Player/context.d.ts +17 -0
- package/es/Player/context.js +24 -0
- package/es/Player/contraller_bar/bar.d.ts +8 -0
- package/es/Player/contraller_bar/bar.js +20 -0
- package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
- package/es/Player/contraller_bar/contraller_event.js +50 -0
- package/es/Player/contraller_bar/index.d.ts +14 -0
- package/es/Player/contraller_bar/index.js +27 -0
- package/es/Player/contraller_bar/left_bar.d.ts +10 -0
- package/es/Player/contraller_bar/left_bar.js +83 -0
- package/es/Player/contraller_bar/right_bar.d.ts +8 -0
- package/es/Player/contraller_bar/right_bar.js +32 -0
- package/es/Player/contraller_bar/time.d.ts +3 -0
- package/es/Player/contraller_bar/time.js +19 -0
- package/es/Player/contraller_bar/useBarStatus.d.ts +2 -0
- package/es/Player/contraller_bar/useBarStatus.js +43 -0
- package/es/Player/contraller_bar/volume.d.ts +9 -0
- package/es/Player/contraller_bar/volume.js +62 -0
- package/es/Player/demo.d.ts +3 -0
- package/es/Player/demo.js +266 -0
- package/es/Player/empty.d.ts +2 -0
- package/es/Player/empty.js +4 -0
- package/es/Player/event/errorEvent.d.ts +14 -0
- package/es/Player/event/errorEvent.js +88 -0
- package/es/Player/event/eventName.d.ts +18 -0
- package/es/Player/event/eventName.js +29 -0
- package/es/Player/event/index.d.ts +24 -0
- package/es/Player/event/index.js +205 -0
- package/es/Player/fps_play.d.ts +11 -0
- package/es/Player/fps_play.js +83 -0
- package/es/Player/frontend_player.d.ts +8 -0
- package/es/Player/frontend_player.js +64 -0
- package/es/Player/frontend_timeline.d.ts +10 -0
- package/es/Player/frontend_timeline.js +132 -0
- package/es/Player/iconfont.d.ts +5 -0
- package/es/Player/iconfont.js +16 -0
- package/es/Player/index.d.ts +2 -0
- package/es/Player/index.js +2 -0
- package/es/Player/live_heart.d.ts +8 -0
- package/es/Player/live_heart.js +45 -0
- package/es/Player/message.d.ts +5 -0
- package/es/Player/message.js +137 -0
- package/es/Player/player.d.ts +233 -0
- package/es/Player/segment_player.d.ts +9 -0
- package/es/Player/segment_player.js +228 -0
- package/es/Player/segment_timeline.d.ts +12 -0
- package/es/Player/segment_timeline.js +173 -0
- package/es/Player/single_player.d.ts +5 -0
- package/es/Player/single_player.js +262 -0
- package/es/Player/style/bar.less +43 -0
- package/es/Player/style/iconfont.js +43 -0
- package/es/Player/style/index.less +34 -0
- package/es/Player/style/message.less +56 -0
- package/es/Player/style/slider.less +106 -0
- package/es/Player/style/timeline.less +117 -0
- package/es/Player/style/volume.less +24 -0
- package/es/Player/timeline.d.ts +5 -0
- package/es/Player/timeline.js +95 -0
- package/es/Player/util.d.ts +43 -0
- package/es/Player/util.js +189 -0
- package/es/PlayerExt/demo.d.ts +3 -0
- package/es/PlayerExt/demo.js +154 -0
- package/es/PlayerExt/index.d.ts +48 -0
- package/es/PlayerExt/index.js +188 -0
- package/es/PlayerExt/index.less +10 -0
- package/es/Progress/index.d.ts +7 -0
- package/es/Progress/index.js +53 -0
- package/es/Progress/index.less +21 -0
- package/es/ROI/demo.d.ts +3 -0
- package/es/ROI/demo.js +16 -0
- package/es/ROI/index.d.ts +33 -0
- package/es/ROI/index.js +54 -0
- package/es/ROI/index.less +33 -0
- package/es/RefDrawer/Footer.d.ts +9 -0
- package/es/RefDrawer/Footer.js +22 -0
- package/es/RefDrawer/demo.d.ts +3 -0
- package/es/RefDrawer/demo.js +18 -0
- package/es/RefDrawer/index.d.ts +26 -0
- package/es/RefDrawer/index.js +71 -0
- package/es/RefModal/demo.d.ts +3 -0
- package/es/RefModal/demo.js +18 -0
- package/es/RefModal/index.d.ts +17 -0
- package/es/RefModal/index.js +70 -0
- package/es/ScreenPlayer/Live.d.ts +5 -0
- package/es/ScreenPlayer/Live.js +212 -0
- package/es/ScreenPlayer/LiveTools.d.ts +29 -0
- package/es/ScreenPlayer/LiveTools.js +151 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
- package/es/ScreenPlayer/PlayerWithExt.js +231 -0
- package/es/ScreenPlayer/RatePick.d.ts +8 -0
- package/es/ScreenPlayer/RatePick.js +29 -0
- package/es/ScreenPlayer/Record.d.ts +10 -0
- package/es/ScreenPlayer/Record.js +442 -0
- package/es/ScreenPlayer/RecordTools.d.ts +38 -0
- package/es/ScreenPlayer/RecordTools.js +197 -0
- package/es/ScreenPlayer/ScreenSelect.d.ts +7 -0
- package/es/ScreenPlayer/ScreenSelect.js +46 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +17 -0
- package/es/ScreenPlayer/SegmentTimeLine.js +36 -0
- package/es/ScreenPlayer/TimeMode.d.ts +7 -0
- package/es/ScreenPlayer/TimeMode.js +26 -0
- package/es/ScreenPlayer/TimeSelect.d.ts +7 -0
- package/es/ScreenPlayer/TimeSelect.js +88 -0
- package/es/ScreenPlayer/demo.d.ts +2 -0
- package/es/ScreenPlayer/demo.js +21 -0
- package/es/ScreenPlayer/demo2.d.ts +2 -0
- package/es/ScreenPlayer/demo2.js +194 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/index.js +9 -0
- package/es/ScreenPlayer/index.less +335 -0
- package/es/ScreenPlayer/interface.d.ts +216 -0
- package/es/ScreenPlayer/useTimeSlider.d.ts +25 -0
- package/es/ScreenPlayer/useTimeSlider.js +451 -0
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/ScreenPlayer/useVideoFit.js +35 -0
- package/es/ScreenPlayer/utils.d.ts +17 -0
- package/es/ScreenPlayer/utils.js +85 -0
- package/es/SegmentPlayer/index.d.ts +2 -0
- package/es/SegmentPlayer/index.js +2 -0
- package/es/Service/http.d.ts +6 -0
- package/es/Service/http.js +133 -0
- package/es/Service/index.d.ts +3 -0
- package/es/Service/index.js +11 -0
- package/es/Service/interface.d.ts +23 -0
- package/es/Service/middleware.d.ts +8 -0
- package/es/Service/middleware.js +22 -0
- package/es/SocketEmitter/eventEmitter.d.ts +27 -0
- package/es/SocketEmitter/eventEmitter.js +88 -0
- package/es/SocketEmitter/index.d.ts +24 -0
- package/es/SocketEmitter/index.js +125 -0
- package/es/SocketEmitter/interface.d.ts +4 -0
- package/es/TableLayout/index.d.ts +10 -0
- package/es/TableLayout/index.js +27 -0
- package/es/TableLayout/index.less +4 -0
- package/es/ThemeAntd/demo.d.ts +4 -0
- package/es/ThemeAntd/demo.js +81 -0
- package/es/ThemeAntd/demo.less +20 -0
- package/es/ThemeAntd/index.d.ts +7 -0
- package/es/ThemeAntd/index.js +21 -0
- package/es/ThemeAntd/index.less +4 -0
- package/es/Timeout/index.d.ts +26 -0
- package/es/Timeout/index.js +65 -0
- package/es/bigNumberTransformCN/index.d.ts +5 -0
- package/es/bigNumberTransformCN/index.js +58 -0
- package/es/cache/index.d.ts +34 -0
- package/es/cache/index.js +94 -0
- package/es/copy/index.d.ts +1 -0
- package/es/copy/index.js +9 -0
- package/es/core.d.ts +0 -0
- package/es/getThemeStyle/index.d.ts +2 -0
- package/es/getThemeStyle/index.js +5 -0
- package/es/index.d.ts +62 -0
- package/es/index.js +62 -0
- package/es/likeGo/index.d.ts +2 -0
- package/es/likeGo/index.js +31 -0
- package/es/likeGoSync/index.d.ts +2 -0
- package/es/likeGoSync/index.js +10 -0
- package/es/logger/index.d.ts +7 -0
- package/es/logger/index.js +30 -0
- package/es/nextTick/index.d.ts +1 -0
- package/es/nextTick/index.js +3 -0
- package/es/recorder/demo.d.ts +3 -0
- package/es/recorder/demo.js +181 -0
- package/es/recorder/index.d.ts +294 -0
- package/es/recorder/index.js +992 -0
- package/es/submidstr/index.d.ts +5 -0
- package/es/submidstr/index.js +14 -0
- package/es/treeHelper/index.d.ts +11 -0
- package/es/treeHelper/index.js +188 -0
- package/es/typings.d.ts +2 -0
- package/es/useDrawROI/index.d.ts +16 -0
- package/es/useDrawROI/index.js +318 -0
- package/es/useEventEmitterHandle/index.d.ts +2 -0
- package/es/useEventEmitterHandle/index.js +17 -0
- package/es/useFullscreen/demo.d.ts +2 -0
- package/es/useFullscreen/demo.js +43 -0
- package/es/useFullscreen/index.d.ts +12 -0
- package/es/useFullscreen/index.js +76 -0
- package/es/useHistory/index.d.ts +3 -0
- package/es/useHistory/index.js +9 -0
- package/es/useHistory/interface.d.ts +3 -0
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/useInfiniteScroll/index.js +102 -0
- package/es/useRafInterval/index.d.ts +5 -0
- package/es/useRafInterval/index.js +71 -0
- package/es/useSimpleState/index.d.ts +3 -0
- package/es/useSimpleState/index.js +35 -0
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/useVirtualList/index.js +136 -0
- package/es/utils.d.ts +14 -0
- package/es/utils.js +46 -0
- package/es/uuid/index.d.ts +5 -0
- package/es/uuid/index.js +6 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
8
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
import { ConfigProvider, DatePicker } from 'antd';
|
|
21
|
+
import moment from 'dayjs';
|
|
22
|
+
import React, { useMemo, useState } from 'react';
|
|
23
|
+
import Service from "../Service";
|
|
24
|
+
import RecordPlayer from "./Record";
|
|
25
|
+
import { completionSegments } from "./utils";
|
|
26
|
+
var token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InBhc3N3b3JkIjpudWxsLCJ1c2VybmFtZSI6Inh1d2VpY2hhbzEiLCJhdXRob3JpdGllcyI6W3siYXV0aG9yaXR5IjoiMTU3MDk1Nzk5NTE2MzcxNyJ9XSwiYWNjb3VudE5vbkV4cGlyZWQiOnRydWUsImFjY291bnROb25Mb2NrZWQiOnRydWUsImNyZWRlbnRpYWxzTm9uRXhwaXJlZCI6dHJ1ZSwiZW5hYmxlZCI6dHJ1ZSwiYWNjb3VudElkIjoxNTcwOTU3OTk2MTc5NTI1LCJzaWduSW5UeXBlIjoic3lzdGVtX3VzZXIiLCJzeXN0ZW1JZCI6MTU3MDk1Nzk5NDA0OTYwNSwidXNlcklkIjoxNTcwOTU3OTk2NjIxODkzLCJ1c2VyVHlwZSI6Miwib3JnSWQiOiIxMDA5IiwidXNlckdyYWRlIjo5OX0sInVzZXJfbmFtZSI6Inh1d2VpY2hhbzEiLCJzY29wZSI6WyJzeXN0ZW1fdXNlcl9yb2xlIl0sImV4cCI6MTY4Nzk1ODcwNywiYXV0aG9yaXRpZXMiOlsiMTU3MDk1Nzk5NTE2MzcxNyJdLCJqdGkiOiJkYmZhM2FhNS04YzRhLTRhZGQtOGFjNS1iMWVlZjllMjcwODgiLCJjbGllbnRfaWQiOiJzeXN0ZW1fdXNlcjoxNTcwOTU3OTk2NjIxODkzIn0.m0vP-mkaDeeKXcBuFwRfCXEfHoRjvNiHmD0-OWVxBec";
|
|
27
|
+
var cids = ['100000020', '100000014'];
|
|
28
|
+
var query = function query(_ref) {
|
|
29
|
+
var cid = _ref.cid,
|
|
30
|
+
date = _ref.date;
|
|
31
|
+
var m = moment(date);
|
|
32
|
+
var beginTime = m.set('hours', 0).set('minutes', 0).set('seconds', 0).unix();
|
|
33
|
+
var endTime = m.set('hours', 23).set('minutes', 59).set('seconds', 59).unix();
|
|
34
|
+
var promise = Service.http({
|
|
35
|
+
method: 'post',
|
|
36
|
+
url: "/api/community-manage-server/baseDevice/video/v1/historyVideo?authorization=".concat(token),
|
|
37
|
+
data: {
|
|
38
|
+
cid: cid,
|
|
39
|
+
beginTime: beginTime,
|
|
40
|
+
endTime: endTime
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return promise.then(function (res) {
|
|
44
|
+
return completionSegments(beginTime, endTime, res.data).map(function (v) {
|
|
45
|
+
return _objectSpread(_objectSpread({}, v), {}, {
|
|
46
|
+
beginTime: v.beginTime * 1000,
|
|
47
|
+
endTime: v.endTime * 1000
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}).catch(function (e) {
|
|
51
|
+
console.error(e);
|
|
52
|
+
alert('未获取到录像');
|
|
53
|
+
return Promise.reject();
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
export default function App() {
|
|
57
|
+
var _useState = useState({
|
|
58
|
+
list: [],
|
|
59
|
+
idx: 0
|
|
60
|
+
}),
|
|
61
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
62
|
+
state = _useState2[0],
|
|
63
|
+
setState = _useState2[1];
|
|
64
|
+
var value = useMemo(function () {
|
|
65
|
+
var _state$list$state$idx;
|
|
66
|
+
return state.list[state.idx] ? moment((_state$list$state$idx = state.list[state.idx]) === null || _state$list$state$idx === void 0 ? void 0 : _state$list$state$idx.date).set('hours', 0).set('minutes', 0).set('seconds', 0) : undefined;
|
|
67
|
+
}, [state.list, state.idx]);
|
|
68
|
+
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
69
|
+
prefixCls: "cloudapp"
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
style: {
|
|
72
|
+
width: '100%'
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
75
|
+
value: value,
|
|
76
|
+
onChange: ( /*#__PURE__*/function () {
|
|
77
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(v) {
|
|
78
|
+
var list, flag, cid, date, item, segments;
|
|
79
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
80
|
+
while (1) switch (_context.prev = _context.next) {
|
|
81
|
+
case 0:
|
|
82
|
+
list = _toConsumableArray(state.list);
|
|
83
|
+
flag = state.idx % 2 === 0;
|
|
84
|
+
cid = flag ? cids[0] : cids[1];
|
|
85
|
+
date = v === null || v === void 0 ? void 0 : v.set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf();
|
|
86
|
+
item = {
|
|
87
|
+
date: date,
|
|
88
|
+
cid: cid,
|
|
89
|
+
type: 'hls',
|
|
90
|
+
recordType: 1,
|
|
91
|
+
loading: true
|
|
92
|
+
};
|
|
93
|
+
list[state.idx] = item;
|
|
94
|
+
setState(function (old) {
|
|
95
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
96
|
+
list: list
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
_context.next = 9;
|
|
100
|
+
return query(item);
|
|
101
|
+
case 9:
|
|
102
|
+
segments = _context.sent;
|
|
103
|
+
item.loading = false;
|
|
104
|
+
item.segments = segments;
|
|
105
|
+
list[state.idx] = item;
|
|
106
|
+
setState(function (old) {
|
|
107
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
108
|
+
list: _toConsumableArray(list)
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
case 14:
|
|
112
|
+
case "end":
|
|
113
|
+
return _context.stop();
|
|
114
|
+
}
|
|
115
|
+
}, _callee);
|
|
116
|
+
}));
|
|
117
|
+
return function (_x) {
|
|
118
|
+
return _ref2.apply(this, arguments);
|
|
119
|
+
};
|
|
120
|
+
}())
|
|
121
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
122
|
+
style: {
|
|
123
|
+
height: 600,
|
|
124
|
+
width: '100%'
|
|
125
|
+
}
|
|
126
|
+
}, /*#__PURE__*/React.createElement(RecordPlayer, {
|
|
127
|
+
list: state.list,
|
|
128
|
+
onIndexChange: function onIndexChange(idx) {
|
|
129
|
+
return setState(function (old) {
|
|
130
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
131
|
+
idx: idx
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
onTimeLineChange: ( /*#__PURE__*/function () {
|
|
136
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(date) {
|
|
137
|
+
var item, _state$list$state$idx2, segments;
|
|
138
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
139
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
140
|
+
case 0:
|
|
141
|
+
item = state.list[state.idx];
|
|
142
|
+
if (!state.list[state.idx]) {
|
|
143
|
+
_context2.next = 10;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
state.list[state.idx].loading = true;
|
|
147
|
+
setState(function (old) {
|
|
148
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
149
|
+
list: _toConsumableArray(state.list)
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
_context2.next = 6;
|
|
153
|
+
return query({
|
|
154
|
+
cid: item.cid,
|
|
155
|
+
date: date,
|
|
156
|
+
recordType: 1
|
|
157
|
+
});
|
|
158
|
+
case 6:
|
|
159
|
+
segments = _context2.sent;
|
|
160
|
+
state.list[state.idx].loading = false;
|
|
161
|
+
state.list[state.idx].segments = [].concat(_toConsumableArray(segments), _toConsumableArray((_state$list$state$idx2 = state.list[state.idx].segments) !== null && _state$list$state$idx2 !== void 0 ? _state$list$state$idx2 : []));
|
|
162
|
+
setState(function (old) {
|
|
163
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
164
|
+
list: _toConsumableArray(state.list)
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
case 10:
|
|
168
|
+
case "end":
|
|
169
|
+
return _context2.stop();
|
|
170
|
+
}
|
|
171
|
+
}, _callee2);
|
|
172
|
+
}));
|
|
173
|
+
return function (_x2) {
|
|
174
|
+
return _ref3.apply(this, arguments);
|
|
175
|
+
};
|
|
176
|
+
}()),
|
|
177
|
+
onClose: function onClose() {
|
|
178
|
+
var list = state.list;
|
|
179
|
+
list[state.idx] = undefined;
|
|
180
|
+
setState(function (old) {
|
|
181
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
182
|
+
list: _toConsumableArray(list)
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
onCloseAll: function onCloseAll() {
|
|
187
|
+
return setState(function (old) {
|
|
188
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
189
|
+
list: []
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}))));
|
|
194
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Sceenplayer: {
|
|
3
|
+
LivePlayer: import("react").ComponentType<import("./interface").ILivePlayerProps>;
|
|
4
|
+
RecordPlayer: import("react").ComponentType<import("./interface").IRecordPlayerProps>;
|
|
5
|
+
};
|
|
6
|
+
export default Sceenplayer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { withErrorBoundary } from 'react-error-boundary';
|
|
2
|
+
import LivePlayer from "./Live";
|
|
3
|
+
import RecordPlayer from "./Record";
|
|
4
|
+
import { errorBoundaryOptions } from "../ErrorFallback";
|
|
5
|
+
var Sceenplayer = {
|
|
6
|
+
LivePlayer: withErrorBoundary(LivePlayer, errorBoundaryOptions),
|
|
7
|
+
RecordPlayer: withErrorBoundary(RecordPlayer, errorBoundaryOptions)
|
|
8
|
+
};
|
|
9
|
+
export default Sceenplayer;
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
.split-screen-player-wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
user-select: none;
|
|
6
|
+
min-width: 600px;
|
|
7
|
+
|
|
8
|
+
.player-layout {
|
|
9
|
+
height: calc(100% - 88px);
|
|
10
|
+
|
|
11
|
+
.player-with-ext-layout {
|
|
12
|
+
display: flex;
|
|
13
|
+
|
|
14
|
+
.lm-player-ext-layout {
|
|
15
|
+
border: 1px solid var(--gray12);
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.player-current-index {
|
|
20
|
+
.lm-player-ext-layout {
|
|
21
|
+
border: 1px solid var(--primary);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.split-screen-player-live-wrapper {
|
|
28
|
+
.player-layout {
|
|
29
|
+
height: calc(100% - 42px);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.player-tools-group {
|
|
34
|
+
position: relative;
|
|
35
|
+
height: 88px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.player-record-time {
|
|
39
|
+
padding: 0 16px;
|
|
40
|
+
margin: 0 20px;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
line-height: 42px;
|
|
43
|
+
color: var(--gray1);
|
|
44
|
+
text-align: center;
|
|
45
|
+
background-color: var(--gray11);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-chajian {
|
|
49
|
+
position: relative;
|
|
50
|
+
top: 1px;
|
|
51
|
+
left: 1px;
|
|
52
|
+
font-size: 22px !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.player-tools {
|
|
56
|
+
position: relative;
|
|
57
|
+
display: flex;
|
|
58
|
+
height: 42px;
|
|
59
|
+
padding: 0 10px;
|
|
60
|
+
background-color: #242c3d;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
|
|
64
|
+
.player-tools-left,
|
|
65
|
+
.player-tools-right {
|
|
66
|
+
display: grid;
|
|
67
|
+
width: 35%;
|
|
68
|
+
grid-template-columns: repeat(auto-fill, 32px);
|
|
69
|
+
grid-gap: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.player-tools-right {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: flex-end;
|
|
75
|
+
margin-right: 0;
|
|
76
|
+
margin-left: 4px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.player-tools-mid {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-self: center;
|
|
83
|
+
height: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.player-tools-item {
|
|
87
|
+
display: flex;
|
|
88
|
+
width: 32px;
|
|
89
|
+
height: 32px;
|
|
90
|
+
margin: 0;
|
|
91
|
+
font-size: 18px;
|
|
92
|
+
color: var(--gray1);
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
|
|
97
|
+
.lm-player-iconfont {
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
background-color: var(--gray11);
|
|
103
|
+
border-radius: var(--radius1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.select-current-screen-item {
|
|
108
|
+
display: flex;
|
|
109
|
+
width: 32px;
|
|
110
|
+
height: 32px;
|
|
111
|
+
font-size: 18px;
|
|
112
|
+
color: var(--gray1);
|
|
113
|
+
text-align: center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
|
|
118
|
+
.lm-player-iconfont {
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
background-color: var(--gray11);
|
|
124
|
+
border-radius: var(--radius1);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// 录像
|
|
130
|
+
&.split-screen-player-wrapper-record {
|
|
131
|
+
.record-time-line {
|
|
132
|
+
position: relative;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 46px;
|
|
135
|
+
|
|
136
|
+
canvas {
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
background-color: #030917;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.time-line-mask {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 0;
|
|
147
|
+
left: 0;
|
|
148
|
+
z-index: 5;
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 100%;
|
|
151
|
+
cursor: not-allowed;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ant-popover-inner-content {
|
|
157
|
+
padding: 4px 0;
|
|
158
|
+
|
|
159
|
+
.ant-select-item-option:hover {
|
|
160
|
+
background-color: var(--form-bg-dark);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ------------------------1分屏---------------------- */
|
|
165
|
+
.container1 {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-template-columns: repeat(1, 100%);
|
|
168
|
+
grid-template-rows: repeat(1, 100%);
|
|
169
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
170
|
+
place-content: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* ------------------------4分屏---------------------- */
|
|
174
|
+
.container4 {
|
|
175
|
+
display: grid;
|
|
176
|
+
grid-template-columns: repeat(2, 50%);
|
|
177
|
+
grid-template-rows: repeat(2, 50%);
|
|
178
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
179
|
+
place-content: center;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ------------------------6分屏---------------------- */
|
|
183
|
+
.container6 {
|
|
184
|
+
display: grid;
|
|
185
|
+
grid-template-columns: repeat(3, 33.3333%);
|
|
186
|
+
grid-template-rows: repeat(2, 50%);
|
|
187
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
188
|
+
place-content: center;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* -----------------------8分屏---------------------- */
|
|
192
|
+
.container8 {
|
|
193
|
+
display: grid;
|
|
194
|
+
grid-template-columns: repeat(24, 4.1667%);
|
|
195
|
+
grid-template-rows: repeat(24, 4.1667%);
|
|
196
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
197
|
+
place-content: center;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.item8-1 {
|
|
201
|
+
grid-column: 1 / 11;
|
|
202
|
+
grid-row: 1 / 13;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.item8-2 {
|
|
206
|
+
grid-column: 11 / 18;
|
|
207
|
+
grid-row: 1 / 9;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.item8-3 {
|
|
211
|
+
grid-column: 18 / 25;
|
|
212
|
+
grid-row: 1 / 9;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.item8-4 {
|
|
216
|
+
grid-column: 11 / 18;
|
|
217
|
+
grid-row: 9 / 17;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.item8-5 {
|
|
221
|
+
grid-column: 18 / 25;
|
|
222
|
+
grid-row: 9 / 17;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.item8-6 {
|
|
226
|
+
grid-column: 1 / 11;
|
|
227
|
+
grid-row: 13 / 25;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.item8-7 {
|
|
231
|
+
grid-column: 11 / 18;
|
|
232
|
+
grid-row: 17 / 25;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.item8-8 {
|
|
236
|
+
grid-column: 18 / 25;
|
|
237
|
+
grid-row: 17 / 25;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* ------------------------9分屏---------------------- */
|
|
241
|
+
.container9 {
|
|
242
|
+
display: grid;
|
|
243
|
+
grid-template-columns: repeat(3, 33.3333%);
|
|
244
|
+
grid-template-rows: repeat(3, 33.3333%);
|
|
245
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
246
|
+
place-content: center;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* ------------------------10分屏---------------------- */
|
|
250
|
+
|
|
251
|
+
.container10 {
|
|
252
|
+
display: grid;
|
|
253
|
+
grid-template-columns: repeat(4, 25%);
|
|
254
|
+
grid-template-rows: repeat(4, 25%);
|
|
255
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
256
|
+
place-content: center;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.item10-1 {
|
|
260
|
+
grid-column: 1 / 3;
|
|
261
|
+
grid-row: 1 / 3;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.item10-2 {
|
|
265
|
+
grid-column: 3 / 5;
|
|
266
|
+
grid-row: 1 / 3;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* ------------------------13分屏---------------------- */
|
|
270
|
+
|
|
271
|
+
.container13 {
|
|
272
|
+
display: grid;
|
|
273
|
+
grid-template-columns: repeat(4, 25%);
|
|
274
|
+
grid-template-rows: repeat(4, 25%);
|
|
275
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
276
|
+
place-content: center;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.item13-1 {
|
|
280
|
+
grid-column: 1 / 3;
|
|
281
|
+
grid-row: 1 / 3;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* ------------------------16分屏---------------------- */
|
|
285
|
+
.container16 {
|
|
286
|
+
display: grid;
|
|
287
|
+
grid-template-columns: repeat(4, 25%);
|
|
288
|
+
grid-template-rows: repeat(4, 25%);
|
|
289
|
+
grid-auto-flow: row dense; //排列顺序先行后列 紧密排列
|
|
290
|
+
place-content: center;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.player-time-select {
|
|
295
|
+
display: flex;
|
|
296
|
+
width: 190px;
|
|
297
|
+
justify-content: space-around;
|
|
298
|
+
align-items: center;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.@{ant-prefix}-select.time-mode-select {
|
|
302
|
+
font-size: var(--fs-small);
|
|
303
|
+
color: var(--gray1);
|
|
304
|
+
|
|
305
|
+
.cloudapp-select-selector {
|
|
306
|
+
background-color: transparent !important;
|
|
307
|
+
border-radius: var(--radius1) !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.anticon {
|
|
311
|
+
color: var(--gray1);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.custom-select-dropdown {
|
|
316
|
+
font-size: var(--fs-small);
|
|
317
|
+
|
|
318
|
+
.cloudapp-select-item {
|
|
319
|
+
font-size: var(--fs-small);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.select-current-rate-item {
|
|
324
|
+
position: relative;
|
|
325
|
+
top: 4px;
|
|
326
|
+
display: inline-block;
|
|
327
|
+
width: 64px;
|
|
328
|
+
padding: 2px 0;
|
|
329
|
+
font-size: 12px;
|
|
330
|
+
color: var(--gray1);
|
|
331
|
+
text-align: center;
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
border: 1px solid var(--gray1);
|
|
334
|
+
border-radius: 2px;
|
|
335
|
+
}
|