@cloud-app-dev/vidc 4.0.17 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumirc.ts +1 -1
- package/.eslintrc.js +3 -0
- package/.fatherrc.ts +0 -6
- package/es/AppContext/Sync.d.ts +7 -0
- package/es/AppContext/Sync.js +44 -0
- package/es/AppContext/index.d.ts +17 -0
- package/es/AppContext/index.js +154 -0
- package/es/AppContext/interface.d.ts +42 -0
- package/es/AppContext/static.d.ts +8 -0
- package/es/AppContext/static.js +9 -0
- package/es/CheckGroupFixed/demo.d.ts +2 -0
- package/es/CheckGroupFixed/demo.js +20 -0
- package/es/CheckGroupFixed/index.d.ts +22 -0
- package/es/CheckGroupFixed/index.js +150 -0
- package/es/CheckGroupFixed/style.d.ts +6 -0
- package/es/CheckGroupFixed/style.js +9 -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/CustomRenderSelect/index.d.ts +13 -0
- package/es/CustomRenderSelect/index.js +86 -0
- package/es/DBTools/index.d.ts +25 -0
- package/es/DBTools/index.js +336 -0
- package/es/DisableMark/index.d.ts +8 -0
- package/es/DisableMark/index.js +25 -0
- package/es/DomMove/demo.d.ts +1 -0
- package/es/DomMove/demo.js +19 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/index.js +148 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/DomMove/utils.js +33 -0
- package/es/Drag/DragAndDropItem.d.ts +4 -0
- package/es/Drag/DragAndDropItem.js +133 -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 +2 -0
- package/es/DynamicGridList/demo.js +86 -0
- package/es/DynamicGridList/index.d.ts +27 -0
- package/es/DynamicGridList/index.js +71 -0
- package/es/DynamicList/demo.d.ts +1 -0
- package/es/DynamicList/demo.js +45 -0
- package/es/DynamicList/index.d.ts +30 -0
- package/es/DynamicList/index.js +98 -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 +8 -0
- package/es/ErrorFallback/index.js +38 -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/GridList/data.d.ts +16 -0
- package/es/GridList/data.js +609 -0
- package/es/GridList/demo.d.ts +2 -0
- package/es/GridList/demo.js +89 -0
- package/es/GridList/hook.d.ts +13 -0
- package/es/GridList/hook.js +270 -0
- package/es/GridList/index.d.ts +14 -0
- package/es/GridList/index.js +51 -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 +8 -0
- package/es/HightLevel/index.js +20 -0
- package/es/IconFont/index.d.ts +12 -0
- package/es/IconFont/index.js +63 -0
- package/es/InstanceHistory/index.d.ts +3 -0
- package/es/InstanceHistory/index.js +7 -0
- package/es/LabelValue/index.d.ts +14 -0
- package/es/LabelValue/index.js +35 -0
- package/es/List/demo.d.ts +2 -0
- package/es/List/demo.js +25 -0
- package/es/List/index.d.ts +27 -0
- package/es/List/index.js +38 -0
- package/es/ListWithSizeAnimate/demo.d.ts +1 -0
- package/es/ListWithSizeAnimate/demo.js +128 -0
- package/es/ListWithSizeAnimate/index.d.ts +13 -0
- package/es/ListWithSizeAnimate/index.js +106 -0
- package/es/LoaderScript/index.d.ts +47 -0
- package/es/LoaderScript/index.js +38 -0
- package/es/LoaderScript/utils.d.ts +13 -0
- package/es/LoaderScript/utils.js +179 -0
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +7 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +90 -0
- package/es/Picture/component/DefaultRects/index.d.ts +11 -0
- package/es/Picture/component/DefaultRects/index.js +58 -0
- package/es/Picture/component/DefaultRects/style.d.ts +10 -0
- package/es/Picture/component/DefaultRects/style.js +28 -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 +11 -0
- package/es/Picture/component/DrawRect/index.js +54 -0
- package/es/Picture/component/RectMenu/index.d.ts +10 -0
- package/es/Picture/component/RectMenu/index.js +84 -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 +11 -0
- package/es/Picture/component/Tools/index.js +105 -0
- package/es/Picture/component/Tools/style.d.ts +2 -0
- package/es/Picture/component/Tools/style.js +5 -0
- package/es/Picture/component/WheelScale/index.d.ts +6 -0
- package/es/Picture/component/WheelScale/index.js +29 -0
- package/es/Picture/demo.d.ts +1 -0
- package/es/Picture/demo.js +114 -0
- package/es/Picture/index.d.ts +17 -0
- package/es/Picture/index.js +356 -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 +21 -0
- package/es/Player/context.js +25 -0
- package/es/Player/contraller_bar/bar.d.ts +8 -0
- package/es/Player/contraller_bar/bar.js +32 -0
- package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
- package/es/Player/contraller_bar/contraller_event.js +52 -0
- package/es/Player/contraller_bar/index.d.ts +13 -0
- package/es/Player/contraller_bar/index.js +39 -0
- package/es/Player/contraller_bar/left_bar.d.ts +10 -0
- package/es/Player/contraller_bar/left_bar.js +97 -0
- package/es/Player/contraller_bar/right_bar.d.ts +8 -0
- package/es/Player/contraller_bar/right_bar.js +36 -0
- package/es/Player/contraller_bar/time.d.ts +2 -0
- package/es/Player/contraller_bar/time.js +24 -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 +8 -0
- package/es/Player/contraller_bar/volume.js +70 -0
- package/es/Player/demo.d.ts +2 -0
- package/es/Player/demo.js +289 -0
- package/es/Player/empty.d.ts +1 -0
- package/es/Player/empty.js +5 -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 +30 -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 +10 -0
- package/es/Player/fps_play.js +88 -0
- package/es/Player/frontend_player.d.ts +7 -0
- package/es/Player/frontend_player.js +71 -0
- package/es/Player/frontend_timeline.d.ts +8 -0
- package/es/Player/frontend_timeline.js +153 -0
- package/es/Player/iconfont.d.ts +4 -0
- package/es/Player/iconfont.js +21 -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 +3 -0
- package/es/Player/message.js +147 -0
- package/es/Player/player.d.ts +233 -0
- package/es/Player/segment_player.d.ts +8 -0
- package/es/Player/segment_player.js +229 -0
- package/es/Player/segment_timeline.d.ts +10 -0
- package/es/Player/segment_timeline.js +200 -0
- package/es/Player/single_player.d.ts +4 -0
- package/es/Player/single_player.js +278 -0
- package/es/Player/style/iconfont.js +43 -0
- package/es/Player/timeline.d.ts +7 -0
- package/es/Player/timeline.js +104 -0
- package/es/Player/util.d.ts +43 -0
- package/es/Player/util.js +189 -0
- package/es/PlayerExt/demo.d.ts +2 -0
- package/es/PlayerExt/demo.js +170 -0
- package/es/PlayerExt/index.d.ts +47 -0
- package/es/PlayerExt/index.js +212 -0
- package/es/Progress/index.d.ts +10 -0
- package/es/Progress/index.js +60 -0
- package/es/ROI/demo.d.ts +2 -0
- package/es/ROI/demo.js +17 -0
- package/es/ROI/index.d.ts +32 -0
- package/es/ROI/index.js +67 -0
- package/es/RefDrawer/Footer.d.ts +9 -0
- package/es/RefDrawer/Footer.js +27 -0
- package/es/RefDrawer/demo.d.ts +3 -0
- package/es/RefDrawer/demo.js +32 -0
- package/es/RefDrawer/index.d.ts +26 -0
- package/es/RefDrawer/index.js +73 -0
- package/es/RefModal/demo.d.ts +2 -0
- package/es/RefModal/demo.js +32 -0
- package/es/RefModal/index.d.ts +17 -0
- package/es/RefModal/index.js +71 -0
- package/es/ScreenPlayer/Live.d.ts +8 -0
- package/es/ScreenPlayer/Live.js +219 -0
- package/es/ScreenPlayer/LiveTools.d.ts +33 -0
- package/es/ScreenPlayer/LiveTools.js +172 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
- package/es/ScreenPlayer/PlayerWithExt.js +241 -0
- package/es/ScreenPlayer/RatePick.d.ts +7 -0
- package/es/ScreenPlayer/RatePick.js +35 -0
- package/es/ScreenPlayer/Record.d.ts +8 -0
- package/es/ScreenPlayer/Record.js +452 -0
- package/es/ScreenPlayer/RecordTools.d.ts +38 -0
- package/es/ScreenPlayer/RecordTools.js +214 -0
- package/es/ScreenPlayer/ScreenSelect.d.ts +6 -0
- package/es/ScreenPlayer/ScreenSelect.js +59 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +16 -0
- package/es/ScreenPlayer/SegmentTimeLine.js +44 -0
- package/es/ScreenPlayer/TimeMode.d.ts +6 -0
- package/es/ScreenPlayer/TimeMode.js +34 -0
- package/es/ScreenPlayer/TimeSelect.d.ts +6 -0
- package/es/ScreenPlayer/TimeSelect.js +99 -0
- package/es/ScreenPlayer/containerStyle.d.ts +13 -0
- package/es/ScreenPlayer/containerStyle.js +32 -0
- package/es/ScreenPlayer/demo.d.ts +1 -0
- package/es/ScreenPlayer/demo.js +19 -0
- package/es/ScreenPlayer/demo2.d.ts +1 -0
- package/es/ScreenPlayer/demo2.js +196 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/index.js +9 -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 +125 -0
- package/es/Service/index.d.ts +3 -0
- package/es/Service/index.js +10 -0
- package/es/Service/interface.d.ts +22 -0
- package/es/Service/middleware.d.ts +5 -0
- package/es/Service/middleware.js +15 -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 +9 -0
- package/es/TableLayout/index.js +32 -0
- package/es/Timeout/index.d.ts +31 -0
- package/es/Timeout/index.js +69 -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 +52 -0
- package/es/index.js +52 -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 +2 -0
- package/es/recorder/demo.js +200 -0
- package/es/recorder/index.d.ts +294 -0
- package/es/recorder/index.js +991 -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 +189 -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/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 +70 -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 +16 -21
- package/release-build.sh +2 -0
- package/scripts/{entry.js → entry.mjs} +4 -6
- package/{icon-fix.js → scripts/icon-fix.mjs} +4 -3
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
var _excluded = ["containerRef", "screenNum", "mode", "fit", "time", "oneWinExtTools", "allWinExtTools", "hasPlugin", "multipleList"];
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
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."); }
|
|
4
|
+
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); }
|
|
5
|
+
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; }
|
|
6
|
+
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; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
11
|
+
import { useFullscreen, useRafInterval, useToggle, useUpdate, useUpdateEffect } from 'ahooks';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import Volume from "../Player/contraller_bar/volume";
|
|
14
|
+
import IconFont from "../Player/iconfont";
|
|
15
|
+
import { playerToolsCss, playerToolsLeftCss, playerToolsMid, playerToolsRightCss } from "./LiveTools";
|
|
16
|
+
import RatePick from "./RatePick";
|
|
17
|
+
import ScreenSelect from "./ScreenSelect";
|
|
18
|
+
import TimeSelect from "./TimeSelect";
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
function RecordTools(_ref) {
|
|
22
|
+
var _player$video$playbac, _player$video, _player$video2;
|
|
23
|
+
var containerRef = _ref.containerRef,
|
|
24
|
+
screenNum = _ref.screenNum,
|
|
25
|
+
_ref$mode = _ref.mode,
|
|
26
|
+
mode = _ref$mode === void 0 ? 1 : _ref$mode,
|
|
27
|
+
fit = _ref.fit,
|
|
28
|
+
time = _ref.time,
|
|
29
|
+
oneWinExtTools = _ref.oneWinExtTools,
|
|
30
|
+
allWinExtTools = _ref.allWinExtTools,
|
|
31
|
+
hasPlugin = _ref.hasPlugin,
|
|
32
|
+
multipleList = _ref.multipleList,
|
|
33
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
var _useFullscreen = useFullscreen(containerRef),
|
|
35
|
+
_useFullscreen2 = _slicedToArray(_useFullscreen, 2),
|
|
36
|
+
isFullscreen = _useFullscreen2[0],
|
|
37
|
+
toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
|
|
38
|
+
var _useToggle = useToggle(false),
|
|
39
|
+
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
40
|
+
isFpsPlay = _useToggle2[0],
|
|
41
|
+
toggle = _useToggle2[1].toggle;
|
|
42
|
+
var update = useUpdate();
|
|
43
|
+
// 播放状态控制
|
|
44
|
+
var playToggle = function playToggle() {
|
|
45
|
+
var player = props.getPlayerItem();
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
47
|
+
player ? player.video.paused ? player.api.play() : player.api.pause() : undefined;
|
|
48
|
+
update();
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// 重连
|
|
52
|
+
var reload = function reload() {
|
|
53
|
+
var player = props.getPlayerItem();
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
55
|
+
player ? player.reload ? player.reload() : player.api.reload() : undefined;
|
|
56
|
+
};
|
|
57
|
+
var snapshotaction = function snapshotaction() {
|
|
58
|
+
var player = props.getPlayerItem();
|
|
59
|
+
var base64 = player === null || player === void 0 ? void 0 : player.api.snapshot();
|
|
60
|
+
if (base64) {
|
|
61
|
+
var _props$snapshot;
|
|
62
|
+
(_props$snapshot = props.snapshot) === null || _props$snapshot === void 0 ? void 0 : _props$snapshot.call(props, base64);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var ratechange = function ratechange(value) {
|
|
66
|
+
var player = props.getPlayerItem();
|
|
67
|
+
player === null || player === void 0 ? void 0 : player.api.setPlaybackRate(value);
|
|
68
|
+
update();
|
|
69
|
+
};
|
|
70
|
+
var player = props.getPlayerItem();
|
|
71
|
+
useUpdateEffect(function () {
|
|
72
|
+
var player = props.getPlayerItem();
|
|
73
|
+
if (player) {
|
|
74
|
+
isFpsPlay ? player.api.openFpsPlay() : player.api.closeFpsPlay();
|
|
75
|
+
}
|
|
76
|
+
}, [isFpsPlay]);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* 定时获取play状态
|
|
80
|
+
*/
|
|
81
|
+
useRafInterval(function () {
|
|
82
|
+
return update();
|
|
83
|
+
}, 2000);
|
|
84
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
85
|
+
className: playerToolsCss,
|
|
86
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
87
|
+
className: playerToolsLeftCss,
|
|
88
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
89
|
+
className: "player-tools-item",
|
|
90
|
+
children: /*#__PURE__*/_jsx(Volume, {
|
|
91
|
+
api: player === null || player === void 0 ? void 0 : player.api
|
|
92
|
+
})
|
|
93
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
94
|
+
className: "player-tools-item",
|
|
95
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
96
|
+
type: "lm-player-xiangji1fill",
|
|
97
|
+
title: "\u622A\u56FE",
|
|
98
|
+
onClick: snapshotaction
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
101
|
+
className: "player-tools-item",
|
|
102
|
+
onClick: reload,
|
|
103
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
104
|
+
type: "lm-player-Refresh_Main",
|
|
105
|
+
title: "\u91CD\u8F7D"
|
|
106
|
+
})
|
|
107
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
108
|
+
className: "player-tools-item",
|
|
109
|
+
onClick: props.download,
|
|
110
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
111
|
+
type: "lm-player-xiazai",
|
|
112
|
+
title: "\u4E0B\u8F7D\u5F53\u524D\u5F55\u50CF"
|
|
113
|
+
})
|
|
114
|
+
}), hasPlugin && /*#__PURE__*/_jsx("span", {
|
|
115
|
+
className: "player-tools-item",
|
|
116
|
+
onClick: function onClick() {
|
|
117
|
+
return props.updateState({
|
|
118
|
+
mode: mode !== 2 ? 2 : 1
|
|
119
|
+
});
|
|
120
|
+
},
|
|
121
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
122
|
+
type: "lm-player-S_Device_shezhi",
|
|
123
|
+
style: mode === 2 ? {
|
|
124
|
+
color: 'var(--primary)'
|
|
125
|
+
} : undefined,
|
|
126
|
+
className: "icon-chajian",
|
|
127
|
+
title: "\u5207\u6362".concat(mode === 1 ? '插件' : '浏览器', "\u6A21\u5F0F")
|
|
128
|
+
})
|
|
129
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
130
|
+
className: "player-tools-item",
|
|
131
|
+
onClick: toggle,
|
|
132
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
133
|
+
type: "lm-player-zhuzhenplay",
|
|
134
|
+
style: isFpsPlay ? {
|
|
135
|
+
color: 'var(--primary)'
|
|
136
|
+
} : undefined,
|
|
137
|
+
title: "\u9010\u5E27\u64AD\u653E"
|
|
138
|
+
})
|
|
139
|
+
}), /*#__PURE__*/_jsx(RatePick, {
|
|
140
|
+
onChange: ratechange,
|
|
141
|
+
multipleList: multipleList,
|
|
142
|
+
value: (_player$video$playbac = player === null || player === void 0 ? void 0 : (_player$video = player.video) === null || _player$video === void 0 ? void 0 : _player$video.playbackRate) !== null && _player$video$playbac !== void 0 ? _player$video$playbac : 1
|
|
143
|
+
}), oneWinExtTools]
|
|
144
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
145
|
+
className: playerToolsMid,
|
|
146
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
147
|
+
className: "player-tools-item",
|
|
148
|
+
onClick: props.onClose,
|
|
149
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
150
|
+
type: "lm-player-tingzhi",
|
|
151
|
+
title: "\u505C\u6B62",
|
|
152
|
+
style: {
|
|
153
|
+
fontSize: 16
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
}), /*#__PURE__*/_jsx(TimeSelect, {
|
|
157
|
+
time: time,
|
|
158
|
+
onChange: function onChange(time) {
|
|
159
|
+
var _props$onTimeChange;
|
|
160
|
+
return (_props$onTimeChange = props.onTimeChange) === null || _props$onTimeChange === void 0 ? void 0 : _props$onTimeChange.call(props, {
|
|
161
|
+
currentTime: time
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
165
|
+
className: "player-tools-item",
|
|
166
|
+
onClick: playToggle,
|
|
167
|
+
children: player && !((_player$video2 = player.video) !== null && _player$video2 !== void 0 && _player$video2.paused) ? /*#__PURE__*/_jsx(IconFont, {
|
|
168
|
+
type: "lm-player-Pause_Main",
|
|
169
|
+
title: "\u6682\u505C",
|
|
170
|
+
style: {
|
|
171
|
+
fontSize: 22
|
|
172
|
+
}
|
|
173
|
+
}) : /*#__PURE__*/_jsx(IconFont, {
|
|
174
|
+
type: "lm-player-bofang",
|
|
175
|
+
title: "\u64AD\u653E"
|
|
176
|
+
})
|
|
177
|
+
})]
|
|
178
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
179
|
+
className: playerToolsRightCss,
|
|
180
|
+
children: [allWinExtTools, /*#__PURE__*/_jsx("span", {
|
|
181
|
+
className: "player-tools-item",
|
|
182
|
+
onClick: props.onCloseAll,
|
|
183
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
184
|
+
type: "lm-player-quanbuguanbi",
|
|
185
|
+
title: "\u5173\u95ED\u6240\u6709"
|
|
186
|
+
})
|
|
187
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
188
|
+
className: "player-tools-item",
|
|
189
|
+
onClick: props.toggleFit,
|
|
190
|
+
children: fit === 'fill' ? /*#__PURE__*/_jsx(IconFont, {
|
|
191
|
+
type: "lm-player-huamianshiying",
|
|
192
|
+
title: "\u81EA\u9002\u5E94"
|
|
193
|
+
}) : /*#__PURE__*/_jsx(IconFont, {
|
|
194
|
+
type: "lm-player-huamianshiying",
|
|
195
|
+
title: "\u586B\u5145"
|
|
196
|
+
})
|
|
197
|
+
}), /*#__PURE__*/_jsx(ScreenSelect, {
|
|
198
|
+
screenNum: screenNum,
|
|
199
|
+
updateState: props.updateState
|
|
200
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
201
|
+
className: "player-tools-item",
|
|
202
|
+
onClick: toggleFullscreen,
|
|
203
|
+
children: isFullscreen ? /*#__PURE__*/_jsx(IconFont, {
|
|
204
|
+
type: "lm-player-quanping",
|
|
205
|
+
title: "\u5168\u5C4F"
|
|
206
|
+
}) : /*#__PURE__*/_jsx(IconFont, {
|
|
207
|
+
type: "lm-player-quanping",
|
|
208
|
+
title: "\u5168\u5C4F"
|
|
209
|
+
})
|
|
210
|
+
})]
|
|
211
|
+
})]
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
export default RecordTools;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
import { Select } from 'antd';
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
import CustomRenderSelect from "../CustomRenderSelect";
|
|
7
|
+
import IconFont from "../Player/iconfont";
|
|
8
|
+
import { ScreenType } from "./utils";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
var customSelectDropdown = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--fs-small);\n .ant-select-item {\n font-size: var(--fs-small);\n .anticon {\n color: var(--icon);\n }\n }\n"])));
|
|
12
|
+
var selectCurrentScreenItem = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n width: 32px;\n height: 32px;\n font-size: 18px;\n color: var(--gray1);\n text-align: center;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n position: relative;\n .anticon {\n font-size: 20px;\n }\n\n &:hover {\n background-color: var(--gray11);\n border-radius: var(--radius1);\n }\n"])));
|
|
13
|
+
function ScreenSelect(_ref) {
|
|
14
|
+
var screenNum = _ref.screenNum,
|
|
15
|
+
updateState = _ref.updateState;
|
|
16
|
+
var icon = useMemo(function () {
|
|
17
|
+
var _ScreenType$find;
|
|
18
|
+
return (_ScreenType$find = ScreenType.find(function (v) {
|
|
19
|
+
return v.name === screenNum;
|
|
20
|
+
})) === null || _ScreenType$find === void 0 ? void 0 : _ScreenType$find.icon;
|
|
21
|
+
}, [screenNum]);
|
|
22
|
+
return /*#__PURE__*/_jsx(CustomRenderSelect, {
|
|
23
|
+
value: screenNum,
|
|
24
|
+
popupClassName: customSelectDropdown,
|
|
25
|
+
onChange: function onChange(v) {
|
|
26
|
+
return updateState({
|
|
27
|
+
screenNum: v
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
placement: "topLeft",
|
|
31
|
+
style: {
|
|
32
|
+
paddingTop: 5
|
|
33
|
+
},
|
|
34
|
+
customRender: function customRender() {
|
|
35
|
+
return /*#__PURE__*/_jsx("span", {
|
|
36
|
+
className: selectCurrentScreenItem,
|
|
37
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
38
|
+
type: icon
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
children: ScreenType.map(function (item) {
|
|
43
|
+
return /*#__PURE__*/_jsxs(Select.Option, {
|
|
44
|
+
value: item.name,
|
|
45
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
46
|
+
style: {
|
|
47
|
+
paddingRight: 4,
|
|
48
|
+
color: 'var(--icon)',
|
|
49
|
+
position: 'relative'
|
|
50
|
+
},
|
|
51
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
52
|
+
type: item.icon
|
|
53
|
+
})
|
|
54
|
+
}), item.name, "\u5206\u5C4F"]
|
|
55
|
+
}, "".concat(item.name));
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export default ScreenSelect;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ISegmentType } from '../Player/player';
|
|
2
|
+
interface ISegmentTimeLineProps {
|
|
3
|
+
begin?: number;
|
|
4
|
+
segments?: ISegmentType[];
|
|
5
|
+
onTimeChange: (options: {
|
|
6
|
+
currentTime?: number;
|
|
7
|
+
begin?: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
timeMode: number;
|
|
10
|
+
updateState: (state: {
|
|
11
|
+
timeMode: number;
|
|
12
|
+
}) => void;
|
|
13
|
+
currentTime?: number;
|
|
14
|
+
}
|
|
15
|
+
declare function SegmentTimeLine({ begin, segments, onTimeChange, timeMode, updateState, currentTime }: ISegmentTimeLineProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SegmentTimeLine;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
import { useThrottleFn } from 'ahooks';
|
|
5
|
+
import moment from 'dayjs';
|
|
6
|
+
import { useRef } from 'react';
|
|
7
|
+
import useTimeSlider from "./useTimeSlider";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
var recordTimeLine = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n height: 46px;\n"])));
|
|
10
|
+
var canvas = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n cursor: pointer;\n background-color: #030917;\n"])));
|
|
11
|
+
function SegmentTimeLine(_ref) {
|
|
12
|
+
var _ref2;
|
|
13
|
+
var begin = _ref.begin,
|
|
14
|
+
segments = _ref.segments,
|
|
15
|
+
onTimeChange = _ref.onTimeChange,
|
|
16
|
+
timeMode = _ref.timeMode,
|
|
17
|
+
updateState = _ref.updateState,
|
|
18
|
+
currentTime = _ref.currentTime;
|
|
19
|
+
var ref = useRef(null);
|
|
20
|
+
var _useThrottleFn = useThrottleFn(onTimeChange, {
|
|
21
|
+
wait: 300
|
|
22
|
+
}),
|
|
23
|
+
run = _useThrottleFn.run;
|
|
24
|
+
useTimeSlider(ref, {
|
|
25
|
+
begin: begin !== null && begin !== void 0 ? begin : moment(currentTime).set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf() - timeMode / 2 * 3600 * 1000,
|
|
26
|
+
currentTime: (_ref2 = currentTime !== null && currentTime !== void 0 ? currentTime : begin) !== null && _ref2 !== void 0 ? _ref2 : moment().set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf(),
|
|
27
|
+
onTimeChange: run,
|
|
28
|
+
segments: segments,
|
|
29
|
+
hoursPer: timeMode,
|
|
30
|
+
onHoursPerChange: function onHoursPerChange(hour) {
|
|
31
|
+
return updateState({
|
|
32
|
+
timeMode: hour
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return /*#__PURE__*/_jsx("div", {
|
|
37
|
+
className: recordTimeLine,
|
|
38
|
+
children: /*#__PURE__*/_jsx("canvas", {
|
|
39
|
+
ref: ref,
|
|
40
|
+
className: canvas
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export default SegmentTimeLine;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
import { Select } from 'antd';
|
|
5
|
+
import { TimeModeLibs } from "./utils";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
var timeModeSelect = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: var(--fs-small);\n color: var(--gray1);\n\n .ant-select-selector {\n background-color: transparent !important;\n border-radius: var(--radius1) !important;\n }\n\n .anticon {\n color: var(--gray1);\n }\n"])));
|
|
9
|
+
var customSelectDropdown = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: var(--fs-small);\n\n .ant-select-item {\n font-size: var(--fs-small);\n }\n"])));
|
|
10
|
+
function TimeMode(_ref) {
|
|
11
|
+
var timeMode = _ref.timeMode,
|
|
12
|
+
onChange = _ref.onChange;
|
|
13
|
+
return /*#__PURE__*/_jsx(Select, {
|
|
14
|
+
value: timeMode,
|
|
15
|
+
onChange: onChange,
|
|
16
|
+
className: timeModeSelect,
|
|
17
|
+
popupClassName: customSelectDropdown,
|
|
18
|
+
placement: "topLeft",
|
|
19
|
+
children: TimeModeLibs.map(function (item) {
|
|
20
|
+
return /*#__PURE__*/_jsxs(Select.Option, {
|
|
21
|
+
value: item.name,
|
|
22
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
23
|
+
style: {
|
|
24
|
+
display: 'inline-block',
|
|
25
|
+
width: 20,
|
|
26
|
+
textAlign: 'center'
|
|
27
|
+
},
|
|
28
|
+
children: item.name
|
|
29
|
+
}), "\u5C0F\u65F6"]
|
|
30
|
+
}, item.name);
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export default TimeMode;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
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."); }
|
|
4
|
+
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); }
|
|
5
|
+
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; }
|
|
6
|
+
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; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
9
|
+
import { css } from '@emotion/css';
|
|
10
|
+
import { useUpdateEffect } from 'ahooks';
|
|
11
|
+
import { Button, InputNumber, Popover } from 'antd';
|
|
12
|
+
import moment from 'dayjs';
|
|
13
|
+
import { useMemo, useState } from 'react';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
var playerTimeSelect = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 190px;\n justify-content: space-around;\n align-items: center;\n"])));
|
|
17
|
+
var playerRecordTime = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 0 16px;\n margin: 0 20px;\n font-size: 16px;\n line-height: 42px;\n color: var(--gray1);\n text-align: center;\n background-color: var(--gray11);\n"])));
|
|
18
|
+
function TimeSelect(_ref) {
|
|
19
|
+
var time = _ref.time,
|
|
20
|
+
onChange = _ref.onChange;
|
|
21
|
+
var _useState = useState(function () {
|
|
22
|
+
var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
|
|
23
|
+
return [m.hour(), m.minute(), m.second()];
|
|
24
|
+
}),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
values = _useState2[0],
|
|
27
|
+
setValues = _useState2[1];
|
|
28
|
+
var timeStr = useMemo(function () {
|
|
29
|
+
var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
|
|
30
|
+
return m.format('HH:mm:ss');
|
|
31
|
+
}, [time]);
|
|
32
|
+
var onChangeTime = function onChangeTime() {
|
|
33
|
+
var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
|
|
34
|
+
var newTime = m.set('hours', values[0]).set('minutes', values[1]).set('seconds', values[2]).valueOf();
|
|
35
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newTime);
|
|
36
|
+
};
|
|
37
|
+
useUpdateEffect(function () {
|
|
38
|
+
var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
|
|
39
|
+
setValues([m.hour(), m.minute(), m.second()]);
|
|
40
|
+
}, [time]);
|
|
41
|
+
var formatter = function formatter(value) {
|
|
42
|
+
return String(value).length === 1 ? "0".concat(value) : value + '';
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/_jsx(Popover, {
|
|
45
|
+
content: /*#__PURE__*/_jsxs("div", {
|
|
46
|
+
className: playerTimeSelect,
|
|
47
|
+
children: [/*#__PURE__*/_jsx(InputNumber, {
|
|
48
|
+
size: "small",
|
|
49
|
+
style: {
|
|
50
|
+
width: 36
|
|
51
|
+
},
|
|
52
|
+
formatter: formatter,
|
|
53
|
+
controls: false,
|
|
54
|
+
value: values[0],
|
|
55
|
+
onChange: function onChange(v) {
|
|
56
|
+
return setValues(function (old) {
|
|
57
|
+
return [v, old[1], old[2]];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}), ":", /*#__PURE__*/_jsx(InputNumber, {
|
|
61
|
+
size: "small",
|
|
62
|
+
style: {
|
|
63
|
+
width: 36
|
|
64
|
+
},
|
|
65
|
+
formatter: formatter,
|
|
66
|
+
controls: false,
|
|
67
|
+
value: values[1],
|
|
68
|
+
onChange: function onChange(v) {
|
|
69
|
+
return setValues(function (old) {
|
|
70
|
+
return [old[0], v, old[2]];
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}), ":", /*#__PURE__*/_jsx(InputNumber, {
|
|
74
|
+
size: "small",
|
|
75
|
+
style: {
|
|
76
|
+
width: 36
|
|
77
|
+
},
|
|
78
|
+
formatter: formatter,
|
|
79
|
+
controls: false,
|
|
80
|
+
value: values[2],
|
|
81
|
+
onChange: function onChange(v) {
|
|
82
|
+
return setValues(function (old) {
|
|
83
|
+
return [old[0], old[1], v];
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
87
|
+
size: "small",
|
|
88
|
+
type: "primary",
|
|
89
|
+
onClick: onChangeTime,
|
|
90
|
+
children: "\u786E\u5B9A"
|
|
91
|
+
})]
|
|
92
|
+
}),
|
|
93
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
94
|
+
className: playerRecordTime,
|
|
95
|
+
children: timeStr
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export default TimeSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const splitScreenPlayerWrapper: string;
|
|
2
|
+
export declare const playerLayout: string;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
container1: string;
|
|
5
|
+
container4: string;
|
|
6
|
+
container6: string;
|
|
7
|
+
container8: string;
|
|
8
|
+
container9: string;
|
|
9
|
+
container10: string;
|
|
10
|
+
container13: string;
|
|
11
|
+
container16: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
export var splitScreenPlayerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n min-width: 600px;\n"])));
|
|
5
|
+
export var playerLayout = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: calc(100% - 42px);\n"])));
|
|
6
|
+
var container1 = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(1, 100%);\n grid-template-rows: repeat(1, 100%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n"])));
|
|
7
|
+
|
|
8
|
+
/* ------------------------4分屏---------------------- */
|
|
9
|
+
var container4 = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(2, 50%);\n grid-template-rows: repeat(2, 50%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n"])));
|
|
10
|
+
|
|
11
|
+
/* ------------------------6分屏---------------------- */
|
|
12
|
+
var container6 = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(3, 33.3333%);\n grid-template-rows: repeat(2, 50%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n"])));
|
|
13
|
+
|
|
14
|
+
/* -----------------------8分屏---------------------- */
|
|
15
|
+
var container8 = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(24, 4.1667%);\n grid-template-rows: repeat(24, 4.1667%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n .item8-1 {\n grid-column: 1 / 11;\n grid-row: 1 / 13;\n }\n\n .item8-2 {\n grid-column: 11 / 18;\n grid-row: 1 / 9;\n }\n\n .item8-3 {\n grid-column: 18 / 25;\n grid-row: 1 / 9;\n }\n\n .item8-4 {\n grid-column: 11 / 18;\n grid-row: 9 / 17;\n }\n\n .item8-5 {\n grid-column: 18 / 25;\n grid-row: 9 / 17;\n }\n\n .item8-6 {\n grid-column: 1 / 11;\n grid-row: 13 / 25;\n }\n\n .item8-7 {\n grid-column: 11 / 18;\n grid-row: 17 / 25;\n }\n\n .item8-8 {\n grid-column: 18 / 25;\n grid-row: 17 / 25;\n }\n"])));
|
|
16
|
+
var container9 = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(3, 33.3333%);\n grid-template-rows: repeat(3, 33.3333%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n"])));
|
|
17
|
+
|
|
18
|
+
/* ------------------------10分屏---------------------- */
|
|
19
|
+
|
|
20
|
+
var container10 = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(4, 25%);\n grid-template-rows: repeat(4, 25%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n .item10-1 {\n grid-column: 1 / 3;\n grid-row: 1 / 3;\n }\n\n .item10-2 {\n grid-column: 3 / 5;\n grid-row: 1 / 3;\n }\n"])));
|
|
21
|
+
var container13 = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(4, 25%);\n grid-template-rows: repeat(4, 25%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n .item13-1 {\n grid-column: 1 / 3;\n grid-row: 1 / 3;\n }\n"])));
|
|
22
|
+
var container16 = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(4, 25%);\n grid-template-rows: repeat(4, 25%);\n grid-auto-flow: row dense; //\u6392\u5217\u987A\u5E8F\u5148\u884C\u540E\u5217 \u7D27\u5BC6\u6392\u5217\n place-content: center;\n"])));
|
|
23
|
+
export default {
|
|
24
|
+
container1: container1,
|
|
25
|
+
container4: container4,
|
|
26
|
+
container6: container6,
|
|
27
|
+
container8: container8,
|
|
28
|
+
container9: container9,
|
|
29
|
+
container10: container10,
|
|
30
|
+
container13: container13,
|
|
31
|
+
container16: container16
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import LivePlayer from "./Live";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
var list = [{
|
|
4
|
+
url: 'http://192.168.101.29:19096/flv/live/38d099e7696af4a57_34020000001320000322/1.flv?origin_url=gb28181%3A%2F%2F192.168.101.149%3A15060%2Fcam%2Frealmonitor%3Fplatform_code%3D34020000002000000005%26code%3D34020000001320000322%26service_code%3D44030501022001000001%26service_ip%3D192.168.101.29%26service_port%3D15060%26media_protocol%3D1%26sip_protocol%3D0%26rtcp_interval%3D9',
|
|
5
|
+
type: 'flv',
|
|
6
|
+
cid: '111'
|
|
7
|
+
}];
|
|
8
|
+
export default function App() {
|
|
9
|
+
return /*#__PURE__*/_jsx("div", {
|
|
10
|
+
style: {
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: 600
|
|
13
|
+
},
|
|
14
|
+
children: /*#__PURE__*/_jsx(LivePlayer, {
|
|
15
|
+
list: list,
|
|
16
|
+
onIndexChange: console.log
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|