@cloud-app-dev/vidc 3.0.31 → 3.0.32

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.
@@ -442,7 +442,11 @@ function RecordPlayer(_a) {
442
442
  onClose: onClose,
443
443
  onCloseAll: onCloseAll,
444
444
  timeMode: state.timeMode,
445
- download: download,
445
+ download: download ? function () {
446
+ var _a;
447
+
448
+ return download((_a = segmentItem.segments) !== null && _a !== void 0 ? _a : []);
449
+ } : undefined,
446
450
  snapshot: snapshot,
447
451
  oneWinExtTools: oneWinExtTools,
448
452
  allWinExtTools: allWinExtTools
@@ -41,7 +41,7 @@ export interface IRecordPlayerProps {
41
41
  /**
42
42
  * 录像下载回调
43
43
  */
44
- download?: () => void;
44
+ download?: (segments: ISegmentType[]) => void;
45
45
 
46
46
  /**
47
47
  * 截图
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.0.31",
5
+ "version": "3.0.32",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",