@cloud-app-dev/vidc 3.2.34 → 3.2.35

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.
@@ -97,7 +97,6 @@ function Picture(_ref) {
97
97
  return undefined;
98
98
  }
99
99
 
100
- console.log(imagePath);
101
100
  var localUrl;
102
101
  fetch(imagePath).then(function (res) {
103
102
  return res.blob();
@@ -106,6 +105,8 @@ function Picture(_ref) {
106
105
  updateState({
107
106
  localUrl: localUrl
108
107
  });
108
+ }).catch(function (e) {
109
+ console.error(e);
109
110
  });
110
111
  return function () {
111
112
  return URL.revokeObjectURL(localUrl);
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import './index.less';
3
2
  import type { IRecordPlayerProps } from './interface';
3
+ import './index.less';
4
4
  /**
5
5
  * @desc 录像设计的时间全部需要到毫秒
6
6
  * @param param0
@@ -35,12 +35,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
35
35
  import { cloneDeep } from 'lodash-es';
36
36
  import React, { useEffect, useMemo, useRef, useState } from 'react';
37
37
  import DisableMark from "../DisableMark";
38
- import "./index.less";
39
38
  import { FrontendPlayerWithExt, SegmentPlayerWithExt } from "./PlayerWithExt";
40
39
  import RecordTools from "./RecordTools";
41
40
  import SegmentTimeLine from "./SegmentTimeLine";
42
41
  import useVideoFit from "./useVideoFit";
43
42
  import { mergeFill, ScreenType, sleep } from "./utils";
43
+ import "./index.less";
44
44
  import { createElement as _createElement } from "react";
45
45
  import { jsx as _jsx } from "react/jsx-runtime";
46
46
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -492,7 +492,7 @@ function RecordPlayer(_ref) {
492
492
  toggleFit: toggleFit,
493
493
  getPlayerItem: getPlayerItem,
494
494
  screenNum: screenNum,
495
- mode: state.modes[state.selectIndex],
495
+ mode: segmentItem !== null && segmentItem !== void 0 && segmentItem.cid ? state.modes["".concat(segmentItem.cid, "-").concat(segmentItem.date)] : segmentItem === null || segmentItem === void 0 ? void 0 : segmentItem.mode,
496
496
  containerRef: domRef,
497
497
  updateState: updateState,
498
498
  onTimeChange: onTimeChange,
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.2.34",
5
+ "version": "3.2.35",
6
6
  "scripts": {
7
7
  "docs:deploy": "gh-pages -d docs-dist",
8
8
  "build": "npm run entry && father build",
@@ -66,7 +66,7 @@
66
66
  "@types/react-dom": "^18.0.6",
67
67
  "antd": "^4.22.6",
68
68
  "babel-plugin-import": "^1.13.5",
69
- "dumi": "^2.0.9",
69
+ "dumi": "^2.0.10",
70
70
  "gh-pages": "^4.0.0",
71
71
  "react": "^18.2.0",
72
72
  "react-dom": "^18.2.0",