@ray-js/ray-ipc-utils 1.1.12-beta.1 → 1.1.12-beta.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.
- package/lib/service/index.js +3 -3
- package/package.json +1 -1
package/lib/service/index.js
CHANGED
|
@@ -140,7 +140,7 @@ export const getCameraConfigInfo = async function (deviceId) {
|
|
|
140
140
|
|
|
141
141
|
const nativeStorageInfo = await Promise.all([`${deviceId}_resolution`, `${deviceId}_intercom`, `${deviceId}_microphone`, `${deviceId}_maxZoomSettings`, `${deviceId}_p2pBizCmd`].map(key => getNativeStorage(key)));
|
|
142
142
|
ipcTTTOperatorLog(`Utils: nativeStorageInfo: ${nativeStorageInfo}`);
|
|
143
|
-
const [resolutionStorage, intercomStorage, microphoneStorage, maxZoomSettingsStorage, p2pBizCmdStorage
|
|
143
|
+
const [resolutionStorage, intercomStorage, microphoneStorage, maxZoomSettingsStorage, p2pBizCmdStorage] = nativeStorageInfo;
|
|
144
144
|
// 任意缓存为空,则请求接口
|
|
145
145
|
|
|
146
146
|
console.log(nativeStorageInfo, 'nativeStorageInfo');
|
|
@@ -256,7 +256,7 @@ export const getCameraConfigInfo = async function (deviceId) {
|
|
|
256
256
|
setNativeStorage(`${deviceId}_p2pBizCmd`, p2pBizCmdNumber);
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
|
-
var _intercomStorage$data2, _resolutionStorage$da2, _microphoneStorage$da2, _maxZoomSettingsStora2,
|
|
259
|
+
var _intercomStorage$data2, _resolutionStorage$da2, _microphoneStorage$da2, _maxZoomSettingsStora2, _p2pBizCmdStorage$dat2;
|
|
260
260
|
// 都有缓存的情况下,直接返回取缓存
|
|
261
261
|
// 对于对讲缓存的方式每次需从APP获取更新
|
|
262
262
|
const intercomStorageData = intercomStorage === null || intercomStorage === void 0 || (_intercomStorage$data2 = intercomStorage.data) === null || _intercomStorage$data2 === void 0 ? void 0 : _intercomStorage$data2.data;
|
|
@@ -277,7 +277,7 @@ export const getCameraConfigInfo = async function (deviceId) {
|
|
|
277
277
|
videoResolution = resolutionStorage === null || resolutionStorage === void 0 || (_resolutionStorage$da2 = resolutionStorage.data) === null || _resolutionStorage$da2 === void 0 ? void 0 : _resolutionStorage$da2.data;
|
|
278
278
|
microphoneSettings = microphoneStorage === null || microphoneStorage === void 0 || (_microphoneStorage$da2 = microphoneStorage.data) === null || _microphoneStorage$da2 === void 0 ? void 0 : _microphoneStorage$da2.data;
|
|
279
279
|
maxZoomSettings = maxZoomSettingsStorage === null || maxZoomSettingsStorage === void 0 || (_maxZoomSettingsStora2 = maxZoomSettingsStorage.data) === null || _maxZoomSettingsStora2 === void 0 ? void 0 : _maxZoomSettingsStora2.data;
|
|
280
|
-
p2pBizCmdNumber =
|
|
280
|
+
p2pBizCmdNumber = p2pBizCmdStorage === null || p2pBizCmdStorage === void 0 || (_p2pBizCmdStorage$dat2 = p2pBizCmdStorage.data) === null || _p2pBizCmdStorage$dat2 === void 0 ? void 0 : _p2pBizCmdStorage$dat2.data;
|
|
281
281
|
}
|
|
282
282
|
const ipcConfig = {
|
|
283
283
|
videoResolution,
|