@cloud-app-dev/vidc 3.0.36 → 3.0.37
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.
|
@@ -12,8 +12,10 @@ export declare function LivePlayerWithExt({ mode, url, type, style, className, u
|
|
|
12
12
|
interface ISegmentPlayerWithExtProps extends Omit<ILivePlayerWithExtProps, 'url'> {
|
|
13
13
|
segments?: ISegmentType[];
|
|
14
14
|
begin?: number;
|
|
15
|
+
fpsDelay?: number;
|
|
16
|
+
fps?: number;
|
|
15
17
|
}
|
|
16
|
-
export declare function SegmentPlayerWithExt({ begin, style, className, segments, updatePlayer, onClick, mode, ...props }: ISegmentPlayerWithExtProps): JSX.Element;
|
|
18
|
+
export declare function SegmentPlayerWithExt({ begin, style, className, segments, updatePlayer, onClick, mode, fpsDelay, fps, ...props }: ISegmentPlayerWithExtProps): JSX.Element;
|
|
17
19
|
interface IFrontendPlayerWithExtProps extends Omit<ILivePlayerWithExtProps, 'url'> {
|
|
18
20
|
segments?: ISegmentType[];
|
|
19
21
|
begin?: number;
|
|
@@ -74,7 +74,9 @@ export function SegmentPlayerWithExt(_a) {
|
|
|
74
74
|
updatePlayer = _a.updatePlayer,
|
|
75
75
|
onClick = _a.onClick,
|
|
76
76
|
mode = _a.mode,
|
|
77
|
-
|
|
77
|
+
fpsDelay = _a.fpsDelay,
|
|
78
|
+
fps = _a.fps,
|
|
79
|
+
props = __rest(_a, ["begin", "style", "className", "segments", "updatePlayer", "onClick", "mode", "fpsDelay", "fps"]);
|
|
78
80
|
|
|
79
81
|
var forceUpdate = _useUpdate();
|
|
80
82
|
|
|
@@ -104,6 +106,8 @@ export function SegmentPlayerWithExt(_a) {
|
|
|
104
106
|
forwordRef: ref,
|
|
105
107
|
begin: begin,
|
|
106
108
|
onCanPlayerInit: update,
|
|
109
|
+
fps: fps,
|
|
110
|
+
fpsDelay: fpsDelay,
|
|
107
111
|
customTimeLine: /*#__PURE__*/React.createElement(React.Fragment, null)
|
|
108
112
|
}))));
|
|
109
113
|
}
|
|
@@ -6,5 +6,5 @@ import './index.less';
|
|
|
6
6
|
* @param param0
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
declare function RecordPlayer({ list, children, queryRecord, onIndexChange, onClose, onCloseAll, download, snapshot, defaultScreen, screenChange, defaultSelectIndex, oneWinExtTools, allWinExtTools, ...options }: IRecordPlayerProps): JSX.Element;
|
|
9
|
+
declare function RecordPlayer({ list, children, queryRecord, onIndexChange, onClose, onCloseAll, download, snapshot, defaultScreen, screenChange, defaultSelectIndex, oneWinExtTools, allWinExtTools, fpsDelay, fps, ...options }: IRecordPlayerProps): JSX.Element;
|
|
10
10
|
export default RecordPlayer;
|
|
@@ -72,7 +72,9 @@ function RecordPlayer(_a) {
|
|
|
72
72
|
defaultSelectIndex = _a.defaultSelectIndex,
|
|
73
73
|
oneWinExtTools = _a.oneWinExtTools,
|
|
74
74
|
allWinExtTools = _a.allWinExtTools,
|
|
75
|
-
|
|
75
|
+
fpsDelay = _a.fpsDelay,
|
|
76
|
+
fps = _a.fps,
|
|
77
|
+
options = __rest(_a, ["list", "children", "queryRecord", "onIndexChange", "onClose", "onCloseAll", "download", "snapshot", "defaultScreen", "screenChange", "defaultSelectIndex", "oneWinExtTools", "allWinExtTools", "fpsDelay", "fps"]);
|
|
76
78
|
|
|
77
79
|
var _useState = useState(Object.assign(Object.assign({}, cloneDeep(defaultState)), {
|
|
78
80
|
screenNum: defaultScreen !== null && defaultScreen !== void 0 ? defaultScreen : defaultState.screenNum
|
|
@@ -402,7 +404,9 @@ function RecordPlayer(_a) {
|
|
|
402
404
|
width: screenType.width,
|
|
403
405
|
height: screenType.height
|
|
404
406
|
},
|
|
405
|
-
mode: (_d = item.mode) !== null && _d !== void 0 ? _d : state.modes[index]
|
|
407
|
+
mode: (_d = item.mode) !== null && _d !== void 0 ? _d : state.modes[index],
|
|
408
|
+
fps: fps,
|
|
409
|
+
fpsDelay: fpsDelay
|
|
406
410
|
})) : /*#__PURE__*/React.createElement(FrontendPlayerWithExt, Object.assign({}, item, {
|
|
407
411
|
className: state.selectIndex === index ? 'player-current-index' : '',
|
|
408
412
|
segments: ((_e = recordList[index]) === null || _e === void 0 ? void 0 : _e.segments) || [],
|