@cloud-app-dev/vidc 3.2.1 → 3.2.2
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.
|
@@ -6,5 +6,5 @@ import './index.less';
|
|
|
6
6
|
* @param param0
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
declare function RecordPlayer({ list, children,
|
|
9
|
+
declare function RecordPlayer({ list, children, onIndexChange, onClose, onCloseAll, download, snapshot, defaultScreen, screenChange, defaultSelectIndex, oneWinExtTools, allWinExtTools, fpsDelay, fps, getLocalRecordUrl, pluginDownloadUrl, onTimeLineChange, seekLoading, ...options }: IRecordPlayerProps): JSX.Element;
|
|
10
10
|
export default RecordPlayer;
|
|
@@ -35,7 +35,6 @@ function RecordPlayer(_a) {
|
|
|
35
35
|
var _this = this;
|
|
36
36
|
var list = _a.list,
|
|
37
37
|
children = _a.children,
|
|
38
|
-
queryRecord = _a.queryRecord,
|
|
39
38
|
onIndexChange = _a.onIndexChange,
|
|
40
39
|
onClose = _a.onClose,
|
|
41
40
|
onCloseAll = _a.onCloseAll,
|
|
@@ -48,12 +47,11 @@ function RecordPlayer(_a) {
|
|
|
48
47
|
allWinExtTools = _a.allWinExtTools,
|
|
49
48
|
fpsDelay = _a.fpsDelay,
|
|
50
49
|
fps = _a.fps,
|
|
51
|
-
queryRecordErrorHandle = _a.queryRecordErrorHandle,
|
|
52
50
|
getLocalRecordUrl = _a.getLocalRecordUrl,
|
|
53
51
|
pluginDownloadUrl = _a.pluginDownloadUrl,
|
|
54
52
|
onTimeLineChange = _a.onTimeLineChange,
|
|
55
53
|
seekLoading = _a.seekLoading,
|
|
56
|
-
options = __rest(_a, ["list", "children", "
|
|
54
|
+
options = __rest(_a, ["list", "children", "onIndexChange", "onClose", "onCloseAll", "download", "snapshot", "defaultScreen", "screenChange", "defaultSelectIndex", "oneWinExtTools", "allWinExtTools", "fpsDelay", "fps", "getLocalRecordUrl", "pluginDownloadUrl", "onTimeLineChange", "seekLoading"]);
|
|
57
55
|
var _useState = useState(Object.assign(Object.assign({}, cloneDeep(defaultState)), {
|
|
58
56
|
screenNum: defaultScreen !== null && defaultScreen !== void 0 ? defaultScreen : defaultState.screenNum
|
|
59
57
|
})),
|
package/es/ScreenPlayer/demo2.js
CHANGED
|
@@ -173,7 +173,6 @@ export default function App() {
|
|
|
173
173
|
}
|
|
174
174
|
}, /*#__PURE__*/React.createElement(RecordPlayer, {
|
|
175
175
|
list: state.list,
|
|
176
|
-
queryRecord: query,
|
|
177
176
|
onIndexChange: function onIndexChange(idx) {
|
|
178
177
|
return setState(function (old) {
|
|
179
178
|
return Object.assign(Object.assign({}, old), {
|
|
@@ -20,13 +20,6 @@ export interface IRecordPlayerProps {
|
|
|
20
20
|
list?: RecordItem[];
|
|
21
21
|
children?: JSX.Element;
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* 获取录像,此处要自行做好错误处理
|
|
25
|
-
*/
|
|
26
|
-
queryRecord: (options: { cid: string; date: number; recordType: 1 | 2 }) => Promise<ISegmentType[]>;
|
|
27
|
-
|
|
28
|
-
queryRecordErrorHandle?: (index: number) => void;
|
|
29
|
-
|
|
30
23
|
/**
|
|
31
24
|
* 窗口索引变化,后续基于索引传入播放必要数据
|
|
32
25
|
*/
|