@cloud-app-dev/vidc 4.0.15 → 4.0.19
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/.dumirc.ts +54 -70
- package/.editorconfig +13 -13
- package/.eslintignore +6 -6
- package/.eslintrc.js +3 -3
- package/.fatherrc.ts +14 -15
- package/.hintrc +8 -8
- package/.husky/commit-msg +5 -5
- package/.husky/pre-commit +4 -4
- package/.prettierignore +8 -8
- package/.prettierrc.js +16 -16
- package/.stylelintrc.js +113 -113
- package/README.md +19 -19
- package/{icon-fix.js → icon-fix.mjs} +31 -31
- package/package.json +97 -96
- package/release-build.sh +48 -47
- package/scripts/entry.js +20 -20
- package/theme-config.ts +125 -125
- package/tsconfig.json +16 -16
- package/typings/global.d.ts +4 -4
- package/es/AppContext/Sync.d.ts +0 -8
- package/es/AppContext/Sync.js +0 -44
- package/es/AppContext/index.d.ts +0 -10
- package/es/AppContext/index.js +0 -144
- package/es/AppContext/interface.d.ts +0 -41
- package/es/AppContext/static.d.ts +0 -8
- package/es/AppContext/static.js +0 -9
- package/es/Auth/index.d.ts +0 -8
- package/es/Auth/index.js +0 -18
- package/es/AutoExit/index.d.ts +0 -6
- package/es/AutoExit/index.js +0 -23
- package/es/CheckGroupFixed/demo.d.ts +0 -3
- package/es/CheckGroupFixed/demo.js +0 -25
- package/es/CheckGroupFixed/index.d.ts +0 -18
- package/es/CheckGroupFixed/index.js +0 -150
- package/es/CheckGroupFixed/index.less +0 -53
- package/es/Config/index.d.ts +0 -4
- package/es/Config/index.js +0 -77
- package/es/Config/interface.d.ts +0 -65
- package/es/Config/utils.d.ts +0 -4
- package/es/Config/utils.js +0 -33
- package/es/ConfigContext/index.d.ts +0 -22
- package/es/ConfigContext/index.js +0 -25
- package/es/CustomRenderSelect/index.d.ts +0 -12
- package/es/CustomRenderSelect/index.js +0 -83
- package/es/CustomRenderSelect/index.less +0 -25
- package/es/DBTools/index.d.ts +0 -25
- package/es/DBTools/index.js +0 -337
- package/es/DisableMark/index.d.ts +0 -9
- package/es/DisableMark/index.js +0 -22
- package/es/DisableMark/index.less +0 -9
- package/es/DomMove/demo.d.ts +0 -2
- package/es/DomMove/demo.js +0 -20
- package/es/DomMove/index.d.ts +0 -16
- package/es/DomMove/index.js +0 -149
- package/es/DomMove/utils.d.ts +0 -8
- package/es/DomMove/utils.js +0 -33
- package/es/Drag/DragAndDropItem.d.ts +0 -4
- package/es/Drag/DragAndDropItem.js +0 -133
- package/es/Drag/DropItem.d.ts +0 -4
- package/es/Drag/DropItem.js +0 -50
- package/es/Drag/index.d.ts +0 -7
- package/es/Drag/index.js +0 -7
- package/es/Drag/interface.d.ts +0 -16
- package/es/DynamicGridList/Demo.d.ts +0 -3
- package/es/DynamicGridList/Demo.js +0 -86
- package/es/DynamicGridList/index.d.ts +0 -27
- package/es/DynamicGridList/index.js +0 -71
- package/es/DynamicList/demo.d.ts +0 -2
- package/es/DynamicList/demo.js +0 -50
- package/es/DynamicList/index.d.ts +0 -31
- package/es/DynamicList/index.js +0 -96
- package/es/DynamicList/index.less +0 -17
- package/es/DynamicList/interface.d.ts +0 -19
- package/es/DynamicList/utils.d.ts +0 -4
- package/es/DynamicList/utils.js +0 -6
- package/es/ErrorFallback/index.d.ts +0 -9
- package/es/ErrorFallback/index.js +0 -38
- package/es/ErrorFallback/inerface.d.ts +0 -48
- package/es/EventTools/index.d.ts +0 -3
- package/es/EventTools/index.js +0 -12
- package/es/FrontendPlayer/index.d.ts +0 -4
- package/es/FrontendPlayer/index.js +0 -2
- package/es/FullScreen/index.d.ts +0 -22
- package/es/FullScreen/index.js +0 -36
- package/es/FullScreen/index.less +0 -18
- package/es/GridList/Demo.d.ts +0 -3
- package/es/GridList/Demo.js +0 -89
- package/es/GridList/data.d.ts +0 -16
- package/es/GridList/data.js +0 -609
- package/es/GridList/hook.d.ts +0 -13
- package/es/GridList/hook.js +0 -270
- package/es/GridList/index.d.ts +0 -15
- package/es/GridList/index.js +0 -48
- package/es/GridList/index.less +0 -8
- package/es/GridList/interface.d.ts +0 -59
- package/es/GridList/utils.d.ts +0 -9
- package/es/GridList/utils.js +0 -42
- package/es/HightLevel/index.d.ts +0 -9
- package/es/HightLevel/index.js +0 -21
- package/es/HightLevel/index.less +0 -3
- package/es/IconFont/index.d.ts +0 -12
- package/es/IconFont/index.js +0 -63
- package/es/ImageView/index.d.ts +0 -17
- package/es/ImageView/index.js +0 -58
- package/es/ImageView/index.less +0 -11
- package/es/InstanceHistory/index.d.ts +0 -3
- package/es/InstanceHistory/index.js +0 -7
- package/es/LabelPlayer/111.png +0 -0
- package/es/LabelPlayer/demo.d.ts +0 -2
- package/es/LabelPlayer/demo.js +0 -123
- package/es/LabelPlayer/index.d.ts +0 -21
- package/es/LabelPlayer/index.js +0 -169
- package/es/LabelPlayer/index.less +0 -24
- package/es/LabelValue/index.d.ts +0 -15
- package/es/LabelValue/index.js +0 -32
- package/es/LabelValue/index.less +0 -23
- package/es/List/demo.d.ts +0 -3
- package/es/List/demo.js +0 -26
- package/es/List/index.d.ts +0 -28
- package/es/List/index.js +0 -30
- package/es/List/index.less +0 -13
- package/es/ListWithSizeAnimate/demo.d.ts +0 -2
- package/es/ListWithSizeAnimate/demo.js +0 -128
- package/es/ListWithSizeAnimate/index.d.ts +0 -14
- package/es/ListWithSizeAnimate/index.js +0 -97
- package/es/ListWithSizeAnimate/index.less +0 -23
- package/es/LoaderScript/index.d.ts +0 -47
- package/es/LoaderScript/index.js +0 -38
- package/es/LoaderScript/utils.d.ts +0 -13
- package/es/LoaderScript/utils.js +0 -179
- package/es/Map/AMap.d.ts +0 -7109
- package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
- package/es/Map/BasicMap/AMapInstance.js +0 -98
- package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
- package/es/Map/BasicMap/LeafletInstance.js +0 -111
- package/es/Map/BasicMap/index.d.ts +0 -9
- package/es/Map/BasicMap/index.js +0 -98
- package/es/Map/BasicMap/index.less +0 -29
- package/es/Map/ClusterLayer/demo.d.ts +0 -3
- package/es/Map/ClusterLayer/demo.js +0 -22
- package/es/Map/ClusterLayer/hook.d.ts +0 -5
- package/es/Map/ClusterLayer/hook.js +0 -124
- package/es/Map/ClusterLayer/index.d.ts +0 -6
- package/es/Map/ClusterLayer/index.js +0 -32
- package/es/Map/ClusterLayer/index.less +0 -29
- package/es/Map/ClusterLayer/props.d.ts +0 -8
- package/es/Map/Config/index.d.ts +0 -9
- package/es/Map/Config/index.js +0 -52
- package/es/Map/Config/utils.d.ts +0 -2
- package/es/Map/Config/utils.js +0 -65
- package/es/Map/Context/index.d.ts +0 -11
- package/es/Map/Context/index.js +0 -56
- package/es/Map/FindPio/index.d.ts +0 -4
- package/es/Map/FindPio/index.js +0 -14
- package/es/Map/FindPio/index.less +0 -7
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
- package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
- package/es/Map/InfoWindow/demo.d.ts +0 -3
- package/es/Map/InfoWindow/demo.js +0 -76
- package/es/Map/InfoWindow/index.d.ts +0 -11
- package/es/Map/InfoWindow/index.js +0 -67
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
- package/es/Map/LevelCenter/DragMarker/index.js +0 -44
- package/es/Map/LevelCenter/demo.d.ts +0 -3
- package/es/Map/LevelCenter/demo.js +0 -46
- package/es/Map/LevelCenter/index.d.ts +0 -15
- package/es/Map/LevelCenter/index.js +0 -71
- package/es/Map/LoaderMap/index.d.ts +0 -12
- package/es/Map/LoaderMap/index.js +0 -71
- package/es/Map/MapDrawSelect/demo.d.ts +0 -3
- package/es/Map/MapDrawSelect/demo.js +0 -79
- package/es/Map/MapDrawSelect/index.d.ts +0 -15
- package/es/Map/MapDrawSelect/index.js +0 -62
- package/es/Map/MouseTool/index.d.ts +0 -10
- package/es/Map/MouseTool/index.js +0 -44
- package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
- package/es/Map/MouseTool/useMouseTools.js +0 -83
- package/es/Map/ResetTools/index.d.ts +0 -10
- package/es/Map/ResetTools/index.js +0 -67
- package/es/Map/ResetTools/index.less +0 -39
- package/es/Map/SinglePoint/demo.d.ts +0 -3
- package/es/Map/SinglePoint/demo.js +0 -16
- package/es/Map/SinglePoint/index.d.ts +0 -27
- package/es/Map/SinglePoint/index.js +0 -57
- package/es/Map/SinglePoint/index.less +0 -41
- package/es/Map/hook/useMapEvent.d.ts +0 -2
- package/es/Map/hook/useMapEvent.js +0 -19
- package/es/Map/hook/useMapType.d.ts +0 -4
- package/es/Map/hook/useMapType.js +0 -12
- package/es/Map/icon.d.ts +0 -2
- package/es/Map/icon.js +0 -10
- package/es/Map/index.d.ts +0 -24
- package/es/Map/index.js +0 -25
- package/es/Map/interface.d.ts +0 -74
- package/es/Map/points.d.ts +0 -74
- package/es/Map/points.js +0 -1
- package/es/Map/useMarker/index.d.ts +0 -10
- package/es/Map/useMarker/index.js +0 -71
- package/es/Map/withMap/index.d.ts +0 -3
- package/es/Map/withMap/index.js +0 -18
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
- package/es/Picture/component/DefaultRects/RectInfo.js +0 -88
- package/es/Picture/component/DefaultRects/index.d.ts +0 -13
- package/es/Picture/component/DefaultRects/index.js +0 -58
- package/es/Picture/component/DefaultRects/index.less +0 -211
- package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
- package/es/Picture/component/DefaultRects/utils.js +0 -11
- package/es/Picture/component/DrawRect/index.d.ts +0 -13
- package/es/Picture/component/DrawRect/index.js +0 -51
- package/es/Picture/component/DrawRect/index.less +0 -8
- package/es/Picture/component/RectMenu/index.d.ts +0 -12
- package/es/Picture/component/RectMenu/index.js +0 -79
- package/es/Picture/component/RectMenu/index.less +0 -36
- package/es/Picture/component/RectMenu/utils.d.ts +0 -12
- package/es/Picture/component/RectMenu/utils.js +0 -19
- package/es/Picture/component/Tools/index.d.ts +0 -12
- package/es/Picture/component/Tools/index.js +0 -93
- package/es/Picture/component/Tools/index.less +0 -49
- package/es/Picture/component/WheelScale/index.d.ts +0 -7
- package/es/Picture/component/WheelScale/index.js +0 -29
- package/es/Picture/demo.d.ts +0 -2
- package/es/Picture/demo.js +0 -114
- package/es/Picture/index.d.ts +0 -19
- package/es/Picture/index.js +0 -354
- package/es/Picture/index.less +0 -20
- package/es/Picture/interface.d.ts +0 -196
- package/es/Picture/loadCaptureRectImage.d.ts +0 -3
- package/es/Picture/loadCaptureRectImage.js +0 -99
- package/es/Picture/useDraw.d.ts +0 -1
- package/es/Picture/useDraw.js +0 -103
- package/es/Picture/utils.d.ts +0 -26
- package/es/Picture/utils.js +0 -143
- package/es/Player/api/index.d.ts +0 -68
- package/es/Player/api/index.js +0 -283
- package/es/Player/context.d.ts +0 -21
- package/es/Player/context.js +0 -25
- package/es/Player/contraller_bar/bar.d.ts +0 -8
- package/es/Player/contraller_bar/bar.js +0 -28
- package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
- package/es/Player/contraller_bar/contraller_event.js +0 -53
- package/es/Player/contraller_bar/index.d.ts +0 -14
- package/es/Player/contraller_bar/index.js +0 -33
- package/es/Player/contraller_bar/left_bar.d.ts +0 -10
- package/es/Player/contraller_bar/left_bar.js +0 -88
- package/es/Player/contraller_bar/right_bar.d.ts +0 -8
- package/es/Player/contraller_bar/right_bar.js +0 -37
- package/es/Player/contraller_bar/time.d.ts +0 -3
- package/es/Player/contraller_bar/time.js +0 -21
- package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
- package/es/Player/contraller_bar/useBarStatus.js +0 -43
- package/es/Player/contraller_bar/volume.d.ts +0 -9
- package/es/Player/contraller_bar/volume.js +0 -65
- package/es/Player/demo.d.ts +0 -3
- package/es/Player/demo.js +0 -277
- package/es/Player/empty.d.ts +0 -2
- package/es/Player/empty.js +0 -6
- package/es/Player/event/errorEvent.d.ts +0 -14
- package/es/Player/event/errorEvent.js +0 -88
- package/es/Player/event/eventName.d.ts +0 -18
- package/es/Player/event/eventName.js +0 -30
- package/es/Player/event/index.d.ts +0 -24
- package/es/Player/event/index.js +0 -204
- package/es/Player/fps_play.d.ts +0 -11
- package/es/Player/fps_play.js +0 -84
- package/es/Player/frontend_player.d.ts +0 -8
- package/es/Player/frontend_player.js +0 -72
- package/es/Player/frontend_timeline.d.ts +0 -10
- package/es/Player/frontend_timeline.js +0 -145
- package/es/Player/iconfont.d.ts +0 -5
- package/es/Player/iconfont.js +0 -22
- package/es/Player/index.d.ts +0 -2
- package/es/Player/index.js +0 -2
- package/es/Player/live_heart.d.ts +0 -8
- package/es/Player/live_heart.js +0 -46
- package/es/Player/message.d.ts +0 -5
- package/es/Player/message.js +0 -138
- package/es/Player/player.d.ts +0 -231
- package/es/Player/segment_player.d.ts +0 -9
- package/es/Player/segment_player.js +0 -230
- package/es/Player/segment_timeline.d.ts +0 -12
- package/es/Player/segment_timeline.js +0 -190
- package/es/Player/single_player.d.ts +0 -5
- package/es/Player/single_player.js +0 -275
- package/es/Player/style/bar.less +0 -43
- package/es/Player/style/iconfont.js +0 -43
- package/es/Player/style/index.less +0 -34
- package/es/Player/style/message.less +0 -56
- package/es/Player/style/slider.less +0 -106
- package/es/Player/style/timeline.less +0 -116
- package/es/Player/style/volume.less +0 -24
- package/es/Player/timeline.d.ts +0 -5
- package/es/Player/timeline.js +0 -98
- package/es/Player/util.d.ts +0 -43
- package/es/Player/util.js +0 -189
- package/es/PlayerExt/demo.d.ts +0 -3
- package/es/PlayerExt/demo.js +0 -170
- package/es/PlayerExt/index.d.ts +0 -48
- package/es/PlayerExt/index.js +0 -207
- package/es/PlayerExt/index.less +0 -10
- package/es/Progress/index.d.ts +0 -12
- package/es/Progress/index.js +0 -56
- package/es/Progress/index.less +0 -21
- package/es/ROI/demo.d.ts +0 -3
- package/es/ROI/demo.js +0 -18
- package/es/ROI/index.d.ts +0 -33
- package/es/ROI/index.js +0 -57
- package/es/ROI/index.less +0 -33
- package/es/RefDrawer/Footer.d.ts +0 -9
- package/es/RefDrawer/Footer.js +0 -27
- package/es/RefDrawer/demo.d.ts +0 -3
- package/es/RefDrawer/demo.js +0 -32
- package/es/RefDrawer/index.d.ts +0 -26
- package/es/RefDrawer/index.js +0 -73
- package/es/RefModal/demo.d.ts +0 -3
- package/es/RefModal/demo.js +0 -32
- package/es/RefModal/index.d.ts +0 -17
- package/es/RefModal/index.js +0 -71
- package/es/ScreenPlayer/Live.d.ts +0 -10
- package/es/ScreenPlayer/Live.js +0 -220
- package/es/ScreenPlayer/LiveTools.d.ts +0 -29
- package/es/ScreenPlayer/LiveTools.js +0 -167
- package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
- package/es/ScreenPlayer/PlayerWithExt.js +0 -240
- package/es/ScreenPlayer/RatePick.d.ts +0 -8
- package/es/ScreenPlayer/RatePick.js +0 -30
- package/es/ScreenPlayer/Record.d.ts +0 -10
- package/es/ScreenPlayer/Record.js +0 -447
- package/es/ScreenPlayer/RecordTools.d.ts +0 -38
- package/es/ScreenPlayer/RecordTools.js +0 -216
- package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
- package/es/ScreenPlayer/ScreenSelect.js +0 -51
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
- package/es/ScreenPlayer/SegmentTimeLine.js +0 -38
- package/es/ScreenPlayer/TimeMode.d.ts +0 -7
- package/es/ScreenPlayer/TimeMode.js +0 -30
- package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
- package/es/ScreenPlayer/TimeSelect.js +0 -94
- package/es/ScreenPlayer/demo.d.ts +0 -2
- package/es/ScreenPlayer/demo.js +0 -24
- package/es/ScreenPlayer/demo2.d.ts +0 -2
- package/es/ScreenPlayer/demo2.js +0 -200
- package/es/ScreenPlayer/index.d.ts +0 -6
- package/es/ScreenPlayer/index.js +0 -9
- package/es/ScreenPlayer/index.less +0 -335
- package/es/ScreenPlayer/interface.d.ts +0 -216
- package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
- package/es/ScreenPlayer/useTimeSlider.js +0 -450
- package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
- package/es/ScreenPlayer/useVideoFit.js +0 -35
- package/es/ScreenPlayer/utils.d.ts +0 -17
- package/es/ScreenPlayer/utils.js +0 -85
- package/es/SegmentPlayer/index.d.ts +0 -2
- package/es/SegmentPlayer/index.js +0 -2
- package/es/Service/http.d.ts +0 -6
- package/es/Service/http.js +0 -125
- package/es/Service/index.d.ts +0 -3
- package/es/Service/index.js +0 -10
- package/es/Service/interface.d.ts +0 -22
- package/es/Service/middleware.d.ts +0 -5
- package/es/Service/middleware.js +0 -15
- package/es/SocketEmitter/eventEmitter.d.ts +0 -27
- package/es/SocketEmitter/eventEmitter.js +0 -88
- package/es/SocketEmitter/index.d.ts +0 -24
- package/es/SocketEmitter/index.js +0 -125
- package/es/SocketEmitter/interface.d.ts +0 -4
- package/es/TableLayout/index.d.ts +0 -10
- package/es/TableLayout/index.js +0 -29
- package/es/TableLayout/index.less +0 -4
- package/es/ThemeAntd/demo.d.ts +0 -4
- package/es/ThemeAntd/demo.js +0 -129
- package/es/ThemeAntd/demo.less +0 -20
- package/es/ThemeAntd/index.d.ts +0 -7
- package/es/ThemeAntd/index.js +0 -23
- package/es/ThemeAntd/index.less +0 -4
- package/es/Timeout/index.d.ts +0 -32
- package/es/Timeout/index.js +0 -70
- package/es/VList/index.d.ts +0 -11
- package/es/VList/index.js +0 -42
- package/es/VList/index.less +0 -6
- package/es/VList/utils.d.ts +0 -14
- package/es/VList/utils.js +0 -17
- package/es/bigNumberTransformCN/index.d.ts +0 -5
- package/es/bigNumberTransformCN/index.js +0 -60
- package/es/cache/index.d.ts +0 -34
- package/es/cache/index.js +0 -94
- package/es/copy/index.d.ts +0 -1
- package/es/copy/index.js +0 -9
- package/es/core.d.ts +0 -0
- package/es/getThemeStyle/index.d.ts +0 -2
- package/es/getThemeStyle/index.js +0 -5
- package/es/index.d.ts +0 -60
- package/es/index.js +0 -60
- package/es/logger/index.d.ts +0 -7
- package/es/logger/index.js +0 -30
- package/es/nextTick/index.d.ts +0 -1
- package/es/nextTick/index.js +0 -7
- package/es/submidstr/index.d.ts +0 -5
- package/es/submidstr/index.js +0 -14
- package/es/treeHelper/index.d.ts +0 -11
- package/es/treeHelper/index.js +0 -189
- package/es/typings.d.ts +0 -2
- package/es/useDrawROI/index.d.ts +0 -16
- package/es/useDrawROI/index.js +0 -322
- package/es/useEventEmitterHandle/index.d.ts +0 -2
- package/es/useEventEmitterHandle/index.js +0 -17
- package/es/useFullscreen/demo.d.ts +0 -2
- package/es/useFullscreen/demo.js +0 -48
- package/es/useFullscreen/index.d.ts +0 -12
- package/es/useFullscreen/index.js +0 -76
- package/es/useHistory/index.d.ts +0 -3
- package/es/useHistory/index.js +0 -9
- package/es/useHistory/interface.d.ts +0 -3
- package/es/useInfiniteScroll/index.d.ts +0 -16
- package/es/useInfiniteScroll/index.js +0 -101
- package/es/useRafInterval/index.d.ts +0 -5
- package/es/useRafInterval/index.js +0 -70
- package/es/useSimpleState/index.d.ts +0 -3
- package/es/useSimpleState/index.js +0 -36
- package/es/useVirtualList/index.d.ts +0 -13
- package/es/useVirtualList/index.js +0 -139
- package/es/utils.d.ts +0 -14
- package/es/utils.js +0 -75
- package/es/uuid/index.d.ts +0 -4
- package/es/uuid/index.js +0 -15
package/es/ScreenPlayer/demo2.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
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(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
14
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
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
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
var token = "eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NSIsImV4dCI6MTY3NzM3NzA4NTg4OCwidWlkIjoiMTAxMDAwMDAwNjk5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTA1MTgsMTAwMDAwMTEwNzI4XSwidmFsaWRUaW1lIjoxNzA0MzgzOTk5MDAwLCJvcHRDZW50ZXJJZCI6IjEwMDEwMDAwMDIzMyIsInVzZXJUeXBlIjoxMDA3MDQsImlhdCI6MTY3NzExNzg4NTg4OH0.Gu9mwcM5h_eBCxHu0KqUgF3e70vXIjxO6sGGV41zqhc";
|
|
29
|
-
var cids = ['560077633', '560073578'];
|
|
30
|
-
var query = function query(_ref) {
|
|
31
|
-
var cid = _ref.cid,
|
|
32
|
-
date = _ref.date;
|
|
33
|
-
var m = moment(date);
|
|
34
|
-
var beginTime = m.set('hours', 0).set('minutes', 0).set('seconds', 0).unix();
|
|
35
|
-
var endTime = m.set('hours', 23).set('minutes', 59).set('seconds', 59).unix();
|
|
36
|
-
var promise = Service.http({
|
|
37
|
-
method: 'post',
|
|
38
|
-
url: "/api/staticResource/v2/video/queryHistoryAddress?Authorization=".concat(token),
|
|
39
|
-
data: {
|
|
40
|
-
cid: cid,
|
|
41
|
-
mediaType: 'hls',
|
|
42
|
-
beginTime: beginTime,
|
|
43
|
-
endTime: endTime
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
return promise.then(function (res) {
|
|
47
|
-
return completionSegments(beginTime, endTime, res.data).map(function (v) {
|
|
48
|
-
return _objectSpread(_objectSpread({}, v), {}, {
|
|
49
|
-
beginTime: v.beginTime * 1000,
|
|
50
|
-
endTime: v.endTime * 1000
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}).catch(function (e) {
|
|
54
|
-
console.error(e);
|
|
55
|
-
alert('未获取到录像');
|
|
56
|
-
return Promise.reject();
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
export default function App() {
|
|
60
|
-
var _useState = useState({
|
|
61
|
-
list: [],
|
|
62
|
-
idx: 0
|
|
63
|
-
}),
|
|
64
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
65
|
-
state = _useState2[0],
|
|
66
|
-
setState = _useState2[1];
|
|
67
|
-
var value = useMemo(function () {
|
|
68
|
-
var _state$list$state$idx;
|
|
69
|
-
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;
|
|
70
|
-
}, [state.list, state.idx]);
|
|
71
|
-
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
72
|
-
prefixCls: "cloudapp",
|
|
73
|
-
children: /*#__PURE__*/_jsxs("div", {
|
|
74
|
-
style: {
|
|
75
|
-
width: '100%'
|
|
76
|
-
},
|
|
77
|
-
children: [/*#__PURE__*/_jsx(DatePicker, {
|
|
78
|
-
value: value,
|
|
79
|
-
onChange: /*#__PURE__*/function () {
|
|
80
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(v) {
|
|
81
|
-
var list, flag, cid, date, item, segments;
|
|
82
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
83
|
-
while (1) switch (_context.prev = _context.next) {
|
|
84
|
-
case 0:
|
|
85
|
-
list = _toConsumableArray(state.list);
|
|
86
|
-
flag = state.idx % 2 === 0;
|
|
87
|
-
cid = flag ? cids[0] : cids[1];
|
|
88
|
-
date = v === null || v === void 0 ? void 0 : v.set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf();
|
|
89
|
-
item = {
|
|
90
|
-
date: date,
|
|
91
|
-
cid: cid,
|
|
92
|
-
type: 'hls',
|
|
93
|
-
recordType: 1,
|
|
94
|
-
loading: true
|
|
95
|
-
};
|
|
96
|
-
list[state.idx] = item;
|
|
97
|
-
setState(function (old) {
|
|
98
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
99
|
-
list: list
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
_context.next = 9;
|
|
103
|
-
return query(item);
|
|
104
|
-
case 9:
|
|
105
|
-
segments = _context.sent;
|
|
106
|
-
item.loading = false;
|
|
107
|
-
item.segments = segments;
|
|
108
|
-
list[state.idx] = item;
|
|
109
|
-
setState(function (old) {
|
|
110
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
111
|
-
list: _toConsumableArray(list)
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
case 14:
|
|
115
|
-
case "end":
|
|
116
|
-
return _context.stop();
|
|
117
|
-
}
|
|
118
|
-
}, _callee);
|
|
119
|
-
}));
|
|
120
|
-
return function (_x2) {
|
|
121
|
-
return _ref2.apply(this, arguments);
|
|
122
|
-
};
|
|
123
|
-
}()
|
|
124
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
125
|
-
style: {
|
|
126
|
-
height: 600,
|
|
127
|
-
width: '100%'
|
|
128
|
-
},
|
|
129
|
-
children: /*#__PURE__*/_jsx(RecordPlayer, {
|
|
130
|
-
list: state.list,
|
|
131
|
-
onIndexChange: function onIndexChange(idx) {
|
|
132
|
-
return setState(function (old) {
|
|
133
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
134
|
-
idx: idx
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
onTimeLineChange: /*#__PURE__*/function () {
|
|
139
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(date) {
|
|
140
|
-
var item, _state$list$state$idx2, segments;
|
|
141
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
142
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
143
|
-
case 0:
|
|
144
|
-
item = state.list[state.idx];
|
|
145
|
-
if (!state.list[state.idx]) {
|
|
146
|
-
_context2.next = 10;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
state.list[state.idx].loading = true;
|
|
150
|
-
setState(function (old) {
|
|
151
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
152
|
-
list: _toConsumableArray(state.list)
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
_context2.next = 6;
|
|
156
|
-
return query({
|
|
157
|
-
cid: item.cid,
|
|
158
|
-
date: date,
|
|
159
|
-
recordType: 1
|
|
160
|
-
});
|
|
161
|
-
case 6:
|
|
162
|
-
segments = _context2.sent;
|
|
163
|
-
state.list[state.idx].loading = false;
|
|
164
|
-
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 : []));
|
|
165
|
-
setState(function (old) {
|
|
166
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
167
|
-
list: _toConsumableArray(state.list)
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
case 10:
|
|
171
|
-
case "end":
|
|
172
|
-
return _context2.stop();
|
|
173
|
-
}
|
|
174
|
-
}, _callee2);
|
|
175
|
-
}));
|
|
176
|
-
return function (_x3) {
|
|
177
|
-
return _ref3.apply(this, arguments);
|
|
178
|
-
};
|
|
179
|
-
}(),
|
|
180
|
-
onClose: function onClose() {
|
|
181
|
-
var list = state.list;
|
|
182
|
-
list[state.idx] = undefined;
|
|
183
|
-
setState(function (old) {
|
|
184
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
185
|
-
list: _toConsumableArray(list)
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
},
|
|
189
|
-
onCloseAll: function onCloseAll() {
|
|
190
|
-
return setState(function (old) {
|
|
191
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
192
|
-
list: []
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
})
|
|
197
|
-
})]
|
|
198
|
-
})
|
|
199
|
-
});
|
|
200
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
package/es/ScreenPlayer/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,335 +0,0 @@
|
|
|
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
|
-
}
|