@ray-js/ipc-player-integration 0.0.1-beta-43 → 0.0.1-beta-44
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/lib/plugins/recordVideo/recordVideo.js +20 -13
- package/lib/ui/ui.js +2 -2
- package/package.json +2 -2
|
@@ -221,20 +221,27 @@ export function RecordVideo(props) {
|
|
|
221
221
|
showShot: false
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
224
|
+
try {
|
|
225
|
+
const recordInfo = await setRecording(target);
|
|
226
|
+
console.log(recordInfo, 'recordInfo====');
|
|
227
|
+
if (target) {
|
|
228
|
+
setRecordingDisabled(true);
|
|
229
|
+
setState({
|
|
230
|
+
showTimer: true
|
|
231
|
+
});
|
|
232
|
+
/** 录制开始后3秒后才可结束 */
|
|
233
|
+
timeToResetRecordDisabled();
|
|
234
|
+
} else {
|
|
235
|
+
setState({
|
|
236
|
+
showTimer: false,
|
|
237
|
+
showShot: true,
|
|
238
|
+
shotUrl: recordInfo.tempImagePath
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
} catch (err) {
|
|
242
|
+
console.log('录制失败', err);
|
|
234
243
|
setState({
|
|
235
|
-
showTimer: false
|
|
236
|
-
showShot: true,
|
|
237
|
-
shotUrl: recordInfo.tempImagePath
|
|
244
|
+
showTimer: false
|
|
238
245
|
});
|
|
239
246
|
}
|
|
240
247
|
return true;
|
package/lib/ui/ui.js
CHANGED
|
@@ -92,8 +92,8 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
92
92
|
platform,
|
|
93
93
|
deviceType
|
|
94
94
|
} = systemInfo.current;
|
|
95
|
-
// ios pad
|
|
96
|
-
if (
|
|
95
|
+
// 针对pad 暂不支持横屏,且在ios pad模式下 会触发onResize事件, 待解决
|
|
96
|
+
if (deviceType === 'pad') {
|
|
97
97
|
setScreenType('vertical');
|
|
98
98
|
} else {
|
|
99
99
|
setScreenType(type === 'landscape' ? 'full' : 'vertical');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/ipc-player-integration",
|
|
3
|
-
"version": "0.0.1-beta-
|
|
3
|
+
"version": "0.0.1-beta-44",
|
|
4
4
|
"description": "IPC 播放器功能集成",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ray-js/ipc-ptz-zoom": "0.0.2-beta-7",
|
|
40
40
|
"@ray-js/panel-sdk": "^1.13.1",
|
|
41
|
-
"@ray-js/ray-ipc-player": "2.0.20-beta-
|
|
41
|
+
"@ray-js/ray-ipc-player": "2.0.20-beta-10",
|
|
42
42
|
"@ray-js/ray-ipc-utils": "1.1.0-beta-15",
|
|
43
43
|
"@ray-js/svg": "0.2.0",
|
|
44
44
|
"clsx": "^1.2.1",
|