@cloud-app-dev/vidc 3.1.15 → 3.1.16
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/es/ScreenPlayer/Live.js
CHANGED
|
@@ -158,7 +158,7 @@ function LivePlayer(_a) {
|
|
|
158
158
|
var _a;
|
|
159
159
|
|
|
160
160
|
return /*#__PURE__*/React.createElement(LivePlayerWithExt, Object.assign({}, item, {
|
|
161
|
-
mode: (_a =
|
|
161
|
+
mode: (_a = state.modes[index]) !== null && _a !== void 0 ? _a : item.mode,
|
|
162
162
|
key: "".concat(item.url, "-").concat(index),
|
|
163
163
|
updatePlayer: function updatePlayer(player) {
|
|
164
164
|
return playerRef.current[index] = player;
|
|
@@ -26,7 +26,8 @@ function LiveTools(_ref) {
|
|
|
26
26
|
updateState = _ref.updateState,
|
|
27
27
|
screenNum = _ref.screenNum,
|
|
28
28
|
getPlayerItem = _ref.getPlayerItem,
|
|
29
|
-
mode = _ref.mode,
|
|
29
|
+
_ref$mode = _ref.mode,
|
|
30
|
+
mode = _ref$mode === void 0 ? 1 : _ref$mode,
|
|
30
31
|
toggleFit = _ref.toggleFit,
|
|
31
32
|
fit = _ref.fit,
|
|
32
33
|
onClose = _ref.onClose,
|
|
@@ -99,6 +100,9 @@ function LiveTools(_ref) {
|
|
|
99
100
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
100
101
|
type: "lm-player-S_Device_shezhi",
|
|
101
102
|
className: "icon-chajian",
|
|
103
|
+
style: mode === 2 ? {
|
|
104
|
+
color: 'var(--primary)'
|
|
105
|
+
} : null,
|
|
102
106
|
title: "\u5207\u6362".concat(mode === 1 ? '插件' : '浏览器', "\u6A21\u5F0F")
|
|
103
107
|
})), /*#__PURE__*/React.createElement("div", {
|
|
104
108
|
className: "player-tools-item",
|
|
@@ -432,7 +432,7 @@ function RecordPlayer(_a) {
|
|
|
432
432
|
width: screenType.width,
|
|
433
433
|
height: screenType.height
|
|
434
434
|
},
|
|
435
|
-
mode: (_d =
|
|
435
|
+
mode: (_d = state.modes[index]) !== null && _d !== void 0 ? _d : item.mode,
|
|
436
436
|
fps: fps,
|
|
437
437
|
fpsDelay: fpsDelay,
|
|
438
438
|
httpLoading: state.winLoadingStatus[index]
|
|
@@ -449,7 +449,7 @@ function RecordPlayer(_a) {
|
|
|
449
449
|
});
|
|
450
450
|
});
|
|
451
451
|
},
|
|
452
|
-
mode: (_f =
|
|
452
|
+
mode: (_f = state.modes[index]) !== null && _f !== void 0 ? _f : item.mode,
|
|
453
453
|
key: "".concat((_g = item === null || item === void 0 ? void 0 : item.date) !== null && _g !== void 0 ? _g : '', "-").concat((_h = item.cid) !== null && _h !== void 0 ? _h : '', "-").concat(index),
|
|
454
454
|
style: {
|
|
455
455
|
width: screenType.width,
|
|
@@ -31,7 +31,8 @@ function RecordTools(_ref) {
|
|
|
31
31
|
screenNum = _ref.screenNum,
|
|
32
32
|
timeMode = _ref.timeMode,
|
|
33
33
|
getPlayerItem = _ref.getPlayerItem,
|
|
34
|
-
mode = _ref.mode,
|
|
34
|
+
_ref$mode = _ref.mode,
|
|
35
|
+
mode = _ref$mode === void 0 ? 1 : _ref$mode,
|
|
35
36
|
toggleFit = _ref.toggleFit,
|
|
36
37
|
fit = _ref.fit,
|
|
37
38
|
time = _ref.time,
|
package/es/ScreenPlayer/demo2.js
CHANGED
|
@@ -34,10 +34,7 @@ var query = function query(_a) {
|
|
|
34
34
|
var cid = _a.cid,
|
|
35
35
|
date = _a.date,
|
|
36
36
|
recordType = _a.recordType,
|
|
37
|
-
props = __rest(_a, ["cid", "date", "recordType"]);
|
|
38
|
-
// setTimeout(() => reslove([]), 2000);
|
|
39
|
-
// });
|
|
40
|
-
|
|
37
|
+
props = __rest(_a, ["cid", "date", "recordType"]);
|
|
41
38
|
|
|
42
39
|
var json = {
|
|
43
40
|
code: 0,
|
|
@@ -63,25 +60,7 @@ var query = function query(_a) {
|
|
|
63
60
|
hours: 23,
|
|
64
61
|
minutes: 59,
|
|
65
62
|
seconds: 59
|
|
66
|
-
}).unix();
|
|
67
|
-
// recordType === 2
|
|
68
|
-
// ? Service.http({
|
|
69
|
-
// url: '/api/staticResource/v1/localRecord/url',
|
|
70
|
-
// data: { cid, beginTime, endTime },
|
|
71
|
-
// method: 'post',
|
|
72
|
-
// headers: {
|
|
73
|
-
// Authorization: token,
|
|
74
|
-
// },
|
|
75
|
-
// }).then((res) => res.data.map((v: any) => ({ url: v.play_url, beginTime: v.begin, endTime: v.end })))
|
|
76
|
-
// : Service.http({
|
|
77
|
-
// url: `/api/staticResource/v2/video/queryHistoryAddress?Authorization=${token}`,
|
|
78
|
-
// data: { cid, beginTime, endTime, mediaType: 'hls' },
|
|
79
|
-
// method: 'post',
|
|
80
|
-
// headers: {
|
|
81
|
-
// Authorization: token,
|
|
82
|
-
// },
|
|
83
|
-
// }).then((res) => res.data);
|
|
84
|
-
|
|
63
|
+
}).unix();
|
|
85
64
|
var promise = Promise.resolve(json.data.map(function (v) {
|
|
86
65
|
return {
|
|
87
66
|
url: v.play_url,
|
package/package.json
CHANGED
|
@@ -2,19 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@cloud-app-dev/vidc",
|
|
4
4
|
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "3.1.
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "dumi dev",
|
|
8
|
-
"docs:build": "dumi build",
|
|
9
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
10
|
-
"build": "npm run entry && father-build",
|
|
11
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
12
|
-
"release": "npm run build && npm publish",
|
|
13
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
14
|
-
"test": "umi-test",
|
|
15
|
-
"test:coverage": "umi-test --coverage",
|
|
16
|
-
"entry": "node ./scripts/entry.js"
|
|
17
|
-
},
|
|
5
|
+
"version": "3.1.16",
|
|
18
6
|
"main": "es/index.js",
|
|
19
7
|
"module": "es/index.js",
|
|
20
8
|
"typings": "es/index.d.ts",
|
|
@@ -75,5 +63,17 @@
|
|
|
75
63
|
"url": "git+http://git.topvdn.com/cloudapp/vidc.git",
|
|
76
64
|
"branch": "master",
|
|
77
65
|
"platform": "github"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"start": "dumi dev",
|
|
69
|
+
"docs:build": "dumi build",
|
|
70
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
71
|
+
"build": "npm run entry && father-build",
|
|
72
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
73
|
+
"release": "npm run build && npm publish",
|
|
74
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
75
|
+
"test": "umi-test",
|
|
76
|
+
"test:coverage": "umi-test --coverage",
|
|
77
|
+
"entry": "node ./scripts/entry.js"
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|