@cloud-app-dev/vidc 3.0.37 → 3.0.38
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/Record.js +14 -5
- package/package.json +1 -1
|
@@ -283,23 +283,32 @@ function RecordPlayer(_a) {
|
|
|
283
283
|
return _context.abrupt("return");
|
|
284
284
|
|
|
285
285
|
case 5:
|
|
286
|
+
if (!(time > Date.now())) {
|
|
287
|
+
_context.next = 8;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
console.warn('查询时间超出正常范围!');
|
|
292
|
+
return _context.abrupt("return");
|
|
293
|
+
|
|
294
|
+
case 8:
|
|
286
295
|
index = segmentItem.segments.findIndex(function (v) {
|
|
287
296
|
return time >= v.beginTime && time < v.endTime;
|
|
288
297
|
});
|
|
289
298
|
|
|
290
299
|
if (!(index === -1)) {
|
|
291
|
-
_context.next =
|
|
300
|
+
_context.next = 14;
|
|
292
301
|
break;
|
|
293
302
|
}
|
|
294
303
|
|
|
295
|
-
_context.next =
|
|
304
|
+
_context.next = 12;
|
|
296
305
|
return queryRecord({
|
|
297
306
|
cid: segmentItem.cid,
|
|
298
307
|
date: time,
|
|
299
308
|
recordType: segmentItem.recordType
|
|
300
309
|
});
|
|
301
310
|
|
|
302
|
-
case
|
|
311
|
+
case 12:
|
|
303
312
|
segments = _context.sent;
|
|
304
313
|
setState(function (old) {
|
|
305
314
|
return Object.assign(Object.assign({}, old), {
|
|
@@ -307,7 +316,7 @@ function RecordPlayer(_a) {
|
|
|
307
316
|
});
|
|
308
317
|
});
|
|
309
318
|
|
|
310
|
-
case
|
|
319
|
+
case 14:
|
|
311
320
|
//更新time
|
|
312
321
|
setState(function (old) {
|
|
313
322
|
var mergeSegments = old.mergeSegments;
|
|
@@ -328,7 +337,7 @@ function RecordPlayer(_a) {
|
|
|
328
337
|
});
|
|
329
338
|
});
|
|
330
339
|
|
|
331
|
-
case
|
|
340
|
+
case 15:
|
|
332
341
|
case "end":
|
|
333
342
|
return _context.stop();
|
|
334
343
|
}
|