@ezuikit/player-theme 3.0.2-beta.1 → 3.0.2-beta.3
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/dist/constant.js +11 -2
- package/dist/index.cjs +697 -226
- package/dist/index.esm.js +697 -226
- package/dist/index.umd.js +698 -227
- package/dist/style.css +3 -0
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +72 -30
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.0.2-beta.
|
|
3
|
-
* Copyright (c) 2026-05-
|
|
2
|
+
* @ezuikit/player-theme v3.0.2-beta.3
|
|
3
|
+
* Copyright (c) 2026-05-20 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -143,6 +143,9 @@ var EVENTS = {
|
|
|
143
143
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
144
144
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
145
145
|
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
146
|
+
/** 直播模式切换 */ liveChange: 'liveChange',
|
|
147
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'recDropdownChange',
|
|
148
|
+
/** 告警消息面板状态变化 */ alarmMessageChange: 'alarmMessageChange',
|
|
146
149
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
147
150
|
records: 'records',
|
|
148
151
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -190,6 +193,12 @@ var EVENTS = {
|
|
|
190
193
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
191
194
|
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
192
195
|
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
196
|
+
/** 直播按钮点击 */ liveChange: 'Control.liveChange',
|
|
197
|
+
/** 直播控件销毁 */ liveDestroy: 'Control.liveDestroy',
|
|
198
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'Control.recDropdownChange',
|
|
199
|
+
/** 回放下拉控件销毁 */ recDropdownDestroy: 'Control.recDropdownDestroy',
|
|
200
|
+
/** 告警消息面板开关 */ alarmMessageChange: 'Control.alarmMessageChange',
|
|
201
|
+
/** 告警消息面板销毁 */ alarmMessageDestroy: 'Control.alarmMessageDestroy',
|
|
193
202
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
194
203
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
195
204
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -241,7 +250,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
241
250
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
242
251
|
return Constructor;
|
|
243
252
|
}
|
|
244
|
-
function _inherits$
|
|
253
|
+
function _inherits$w(subClass, superClass) {
|
|
245
254
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
246
255
|
throw new TypeError("Super expression must either be null or a function");
|
|
247
256
|
}
|
|
@@ -252,14 +261,14 @@ function _inherits$t(subClass, superClass) {
|
|
|
252
261
|
configurable: true
|
|
253
262
|
}
|
|
254
263
|
});
|
|
255
|
-
if (superClass) _set_prototype_of$
|
|
264
|
+
if (superClass) _set_prototype_of$w(subClass, superClass);
|
|
256
265
|
}
|
|
257
|
-
function _set_prototype_of$
|
|
258
|
-
_set_prototype_of$
|
|
266
|
+
function _set_prototype_of$w(o, p) {
|
|
267
|
+
_set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
259
268
|
o.__proto__ = p;
|
|
260
269
|
return o;
|
|
261
270
|
};
|
|
262
|
-
return _set_prototype_of$
|
|
271
|
+
return _set_prototype_of$w(o, p);
|
|
263
272
|
}
|
|
264
273
|
/**
|
|
265
274
|
* 控件基类
|
|
@@ -273,7 +282,7 @@ function _set_prototype_of$t(o, p) {
|
|
|
273
282
|
* const myControl = new MyControl({})
|
|
274
283
|
* ```
|
|
275
284
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
276
|
-
_inherits$
|
|
285
|
+
_inherits$w(Control, EventEmitter);
|
|
277
286
|
function Control(options) {
|
|
278
287
|
var _this;
|
|
279
288
|
var _this___options;
|
|
@@ -365,7 +374,7 @@ function _set_prototype_of$t(o, p) {
|
|
|
365
374
|
if (this._camelCaseName) {
|
|
366
375
|
this.emit("Control." + this._camelCaseName + "Destroy");
|
|
367
376
|
}
|
|
368
|
-
if (((_this___options = this.__options) == null ? void 0 : _this___options.controlType) !== 'block') this.$container.
|
|
377
|
+
if (((_this___options = this.__options) == null ? void 0 : _this___options.controlType) !== 'block') this.$container.removeEventListener('dblclick', this._onDBlClick);
|
|
369
378
|
this._active = false;
|
|
370
379
|
this.removeAllListeners();
|
|
371
380
|
(_this_$container = this.$container) == null ? void 0 : (_this_$container_remove = _this_$container.remove) == null ? void 0 : _this_$container_remove.call(_this_$container);
|
|
@@ -448,8 +457,8 @@ function _set_prototype_of$t(o, p) {
|
|
|
448
457
|
return Control;
|
|
449
458
|
}(EventEmitter);
|
|
450
459
|
|
|
451
|
-
function _extends$
|
|
452
|
-
_extends$
|
|
460
|
+
function _extends$v() {
|
|
461
|
+
_extends$v = Object.assign || function(target) {
|
|
453
462
|
for(var i = 1; i < arguments.length; i++){
|
|
454
463
|
var source = arguments[i];
|
|
455
464
|
for(var key in source){
|
|
@@ -460,9 +469,9 @@ function _extends$s() {
|
|
|
460
469
|
}
|
|
461
470
|
return target;
|
|
462
471
|
};
|
|
463
|
-
return _extends$
|
|
472
|
+
return _extends$v.apply(this, arguments);
|
|
464
473
|
}
|
|
465
|
-
function _inherits$
|
|
474
|
+
function _inherits$v(subClass, superClass) {
|
|
466
475
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
467
476
|
throw new TypeError("Super expression must either be null or a function");
|
|
468
477
|
}
|
|
@@ -473,25 +482,25 @@ function _inherits$s(subClass, superClass) {
|
|
|
473
482
|
configurable: true
|
|
474
483
|
}
|
|
475
484
|
});
|
|
476
|
-
if (superClass) _set_prototype_of$
|
|
485
|
+
if (superClass) _set_prototype_of$v(subClass, superClass);
|
|
477
486
|
}
|
|
478
|
-
function _set_prototype_of$
|
|
479
|
-
_set_prototype_of$
|
|
487
|
+
function _set_prototype_of$v(o, p) {
|
|
488
|
+
_set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
480
489
|
o.__proto__ = p;
|
|
481
490
|
return o;
|
|
482
491
|
};
|
|
483
|
-
return _set_prototype_of$
|
|
492
|
+
return _set_prototype_of$v(o, p);
|
|
484
493
|
}
|
|
485
494
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
486
495
|
/**
|
|
487
496
|
* 加载动画控件
|
|
488
497
|
* @category Control
|
|
489
498
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
490
|
-
_inherits$
|
|
499
|
+
_inherits$v(Loading, Control);
|
|
491
500
|
function Loading(options) {
|
|
492
501
|
if (options === void 0) options = {};
|
|
493
502
|
var _this;
|
|
494
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
503
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$v({}, options, {
|
|
495
504
|
tagName: 'div',
|
|
496
505
|
controlType: 'block',
|
|
497
506
|
classNameSuffix: 'loading'
|
|
@@ -529,8 +538,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
529
538
|
return Loading;
|
|
530
539
|
}(Control);
|
|
531
540
|
|
|
532
|
-
function _extends$
|
|
533
|
-
_extends$
|
|
541
|
+
function _extends$u() {
|
|
542
|
+
_extends$u = Object.assign || function(target) {
|
|
534
543
|
for(var i = 1; i < arguments.length; i++){
|
|
535
544
|
var source = arguments[i];
|
|
536
545
|
for(var key in source){
|
|
@@ -541,9 +550,9 @@ function _extends$r() {
|
|
|
541
550
|
}
|
|
542
551
|
return target;
|
|
543
552
|
};
|
|
544
|
-
return _extends$
|
|
553
|
+
return _extends$u.apply(this, arguments);
|
|
545
554
|
}
|
|
546
|
-
function _inherits$
|
|
555
|
+
function _inherits$u(subClass, superClass) {
|
|
547
556
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
548
557
|
throw new TypeError("Super expression must either be null or a function");
|
|
549
558
|
}
|
|
@@ -554,14 +563,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
554
563
|
configurable: true
|
|
555
564
|
}
|
|
556
565
|
});
|
|
557
|
-
if (superClass) _set_prototype_of$
|
|
566
|
+
if (superClass) _set_prototype_of$u(subClass, superClass);
|
|
558
567
|
}
|
|
559
|
-
function _set_prototype_of$
|
|
560
|
-
_set_prototype_of$
|
|
568
|
+
function _set_prototype_of$u(o, p) {
|
|
569
|
+
_set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
561
570
|
o.__proto__ = p;
|
|
562
571
|
return o;
|
|
563
572
|
};
|
|
564
|
-
return _set_prototype_of$
|
|
573
|
+
return _set_prototype_of$u(o, p);
|
|
565
574
|
}
|
|
566
575
|
// 不放在服务器上 是因为有可能http加载失败
|
|
567
576
|
// prettier-ignore
|
|
@@ -573,11 +582,11 @@ var POSTER_OPTIONS = {
|
|
|
573
582
|
* 封面控件
|
|
574
583
|
* @category Control
|
|
575
584
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
576
|
-
_inherits$
|
|
585
|
+
_inherits$u(Poster, Control);
|
|
577
586
|
function Poster(options) {
|
|
578
587
|
if (options === void 0) options = {};
|
|
579
588
|
var _this;
|
|
580
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
589
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$u({}, options, {
|
|
581
590
|
tagName: 'div',
|
|
582
591
|
controlType: 'block',
|
|
583
592
|
classNameSuffix: 'poster'
|
|
@@ -683,7 +692,10 @@ var Icons = {
|
|
|
683
692
|
warnCircleOutLined: '<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.5 8.875C7.5 8.94375 7.55625 9 7.625 9L8.375 9C8.44375 9 8.5 8.94375 8.5 8.875L8.5 4.625C8.5 4.55625 8.44375 4.5 8.375 4.5L7.625 4.5C7.55625 4.5 7.5 4.55625 7.5 4.625L7.5 8.875ZM7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75Z" fill-rule="evenodd" />\n </svg>',
|
|
684
693
|
date: '<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="date">\n <g>\n <path d="m13.35,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.3,0.5 -0.5,0.5z" />\n <path d="m6.65,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.2,0.5 -0.5,0.5z" />\n <path d="m17.45,8.4l-15,0c-0.3,0 -0.5,-0.2 -0.5,-0.5s0.2,-0.5 0.5,-0.5l15,0c0.3,0 0.5,0.2 0.5,0.5s-0.2,0.5 -0.5,0.5z" />\n <path d="m15.85,18.4l-11.7,0c-1.2,0 -2.2,-1 -2.2,-2.2l0,-10.8c0,-1.2 1,-2.2 2.2,-2.2l11.7,0c1.2,0 2.2,1 2.2,2.2l0,10.8c-0.1,1.3 -1,2.2 -2.2,2.2zm-11.7,-14.1c-0.6,0 -1.2,0.5 -1.2,1.2l0,10.8c0,0.6 0.5,1.2 1.2,1.2l11.7,0c0.6,0 1.2,-0.5 1.2,-1.2l0,-10.9c0,-0.6 -0.5,-1.2 -1.2,-1.2l-11.7,0l0,0.1z" />\n <path d="m9.95,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5s0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7z" />\n <path d="m14.15,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7zm0,-1c-0.2,0 -0.3,0.1 -0.3,0.3c0,0.2 0.3,0.4 0.5,0.2c0.1,-0.1 0.1,-0.1 0.1,-0.2c0,-0.2 -0.1,-0.3 -0.3,-0.3z" />\n <path d="m5.85,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0,0.4 -0.3,0.7 -0.7,0.7z" />\n <path d="m9.95,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0.1,0.4 -0.3,0.7 -0.7,0.7z" />\n </g>\n </svg>',
|
|
685
694
|
add: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="add">\n <path d="M10.5859 2.96875L9.41406 2.96875C9.3099 2.96875 9.25781 3.02083 9.25781 3.125L9.25781 9.25781L3.4375 9.25781C3.38542 9.25781 3.34635 9.27083 3.32031 9.29688C3.29427 9.32292 3.28125 9.36198 3.28125 9.41406L3.28125 10.5859C3.28125 10.6901 3.33333 10.7422 3.4375 10.7422L9.25781 10.7422L9.25781 16.875C9.25781 16.9792 9.3099 17.0312 9.41406 17.0312L10.5859 17.0312C10.6901 17.0312 10.7422 16.9792 10.7422 16.875L10.7422 10.7422L16.5625 10.7422C16.6667 10.7422 16.7188 10.6901 16.7188 10.5859L16.7188 9.41406C16.7188 9.3099 16.6667 9.25781 16.5625 9.25781L10.7422 9.25781L10.7422 3.125C10.7422 3.07292 10.7292 3.03385 10.7031 3.00781C10.6771 2.98177 10.638 2.96875 10.5859 2.96875Z" fill-rule="evenodd" /></svg>',
|
|
686
|
-
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>'
|
|
695
|
+
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>',
|
|
696
|
+
/** 直播 */ live: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="live">\n <rect width="18" height="13" x="3" y="7" rx="1.6" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M8.26636 4.8L10.466 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M15.996 4.8L13.796 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M9.8 17L15.4 13.354L9.8 10L9.8 17Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
697
|
+
/** 回放 */ recDropdown: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="rec-dropdown">\n <path d="M9.168 2.556C9.168 2.556 12.51 4.445 12 4.445C7.306 4.445 3.5 8.251 3.5 12.945C3.5 17.64 7.306 21.445 12 21.445C16.695 21.445 20.5 17.64 20.5 12.945C20.5 10.622 19.568 8.517 18.058 6.982" stroke-linecap="round" stroke-width="1.5"/>\n <path d="M11.61 9.829L11.61 13.731L16.064 13.731" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
698
|
+
/** 消息/告警 */ alarmMessage: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="alarm-message">\n <path d="M9.708 18.344L9.708 18.709C9.708 19.974 10.734 21 12 21C13.266 21 14.292 19.974 14.292 18.709L14.292 18.343" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M13.833 5.751L13.833 4.833C13.833 3.821 13.013 3 12 3C10.987 3 10.167 3.821 10.167 4.833L10.167 5.751" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M6.563 10.189C6.563 7.686 8.592 5.657 11.094 5.657L12.907 5.657C15.41 5.657 17.438 7.686 17.438 10.189L17.438 12.986C17.438 13.516 17.649 14.025 18.024 14.4L18.665 15.04C19.04 15.416 19.251 15.925 19.251 16.455C19.251 17.499 18.405 18.345 17.361 18.345L6.64 18.345C5.596 18.345 4.75 17.499 4.75 16.455C4.75 15.925 4.961 15.416 5.336 15.04L5.977 14.4C6.352 14.025 6.563 13.516 6.563 12.986L6.563 10.189Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>'
|
|
687
699
|
};
|
|
688
700
|
|
|
689
701
|
/**
|
|
@@ -841,11 +853,23 @@ var IconComponents = {
|
|
|
841
853
|
reduce: function(attr) {
|
|
842
854
|
if (attr === void 0) attr = {};
|
|
843
855
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
856
|
+
},
|
|
857
|
+
/** 直播 */ live: function(attr) {
|
|
858
|
+
if (attr === void 0) attr = {};
|
|
859
|
+
return createIcon(Icons.live, 'live', attr);
|
|
860
|
+
},
|
|
861
|
+
/** 回放 */ recDropdown: function(attr) {
|
|
862
|
+
if (attr === void 0) attr = {};
|
|
863
|
+
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
864
|
+
},
|
|
865
|
+
/** 消息 */ alarmMessage: function(attr) {
|
|
866
|
+
if (attr === void 0) attr = {};
|
|
867
|
+
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
844
868
|
}
|
|
845
869
|
};
|
|
846
870
|
|
|
847
|
-
function _extends$
|
|
848
|
-
_extends$
|
|
871
|
+
function _extends$t() {
|
|
872
|
+
_extends$t = Object.assign || function(target) {
|
|
849
873
|
for(var i = 1; i < arguments.length; i++){
|
|
850
874
|
var source = arguments[i];
|
|
851
875
|
for(var key in source){
|
|
@@ -856,9 +880,9 @@ function _extends$q() {
|
|
|
856
880
|
}
|
|
857
881
|
return target;
|
|
858
882
|
};
|
|
859
|
-
return _extends$
|
|
883
|
+
return _extends$t.apply(this, arguments);
|
|
860
884
|
}
|
|
861
|
-
function _inherits$
|
|
885
|
+
function _inherits$t(subClass, superClass) {
|
|
862
886
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
863
887
|
throw new TypeError("Super expression must either be null or a function");
|
|
864
888
|
}
|
|
@@ -869,25 +893,25 @@ function _inherits$q(subClass, superClass) {
|
|
|
869
893
|
configurable: true
|
|
870
894
|
}
|
|
871
895
|
});
|
|
872
|
-
if (superClass) _set_prototype_of$
|
|
896
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
873
897
|
}
|
|
874
|
-
function _set_prototype_of$
|
|
875
|
-
_set_prototype_of$
|
|
898
|
+
function _set_prototype_of$t(o, p) {
|
|
899
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
876
900
|
o.__proto__ = p;
|
|
877
901
|
return o;
|
|
878
902
|
};
|
|
879
|
-
return _set_prototype_of$
|
|
903
|
+
return _set_prototype_of$t(o, p);
|
|
880
904
|
}
|
|
881
905
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
882
906
|
/**
|
|
883
907
|
* 消息控件
|
|
884
908
|
* @category Control
|
|
885
909
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
886
|
-
_inherits$
|
|
910
|
+
_inherits$t(Message, Control);
|
|
887
911
|
function Message(options) {
|
|
888
912
|
if (options === void 0) options = {};
|
|
889
913
|
var _this;
|
|
890
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
914
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
|
|
891
915
|
tagName: 'div',
|
|
892
916
|
controlType: 'block'
|
|
893
917
|
}))) || this, _this._$toast = null;
|
|
@@ -1040,8 +1064,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1040
1064
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1041
1065
|
return Constructor;
|
|
1042
1066
|
}
|
|
1043
|
-
function _extends$
|
|
1044
|
-
_extends$
|
|
1067
|
+
function _extends$s() {
|
|
1068
|
+
_extends$s = Object.assign || function(target) {
|
|
1045
1069
|
for(var i = 1; i < arguments.length; i++){
|
|
1046
1070
|
var source = arguments[i];
|
|
1047
1071
|
for(var key in source){
|
|
@@ -1052,9 +1076,9 @@ function _extends$p() {
|
|
|
1052
1076
|
}
|
|
1053
1077
|
return target;
|
|
1054
1078
|
};
|
|
1055
|
-
return _extends$
|
|
1079
|
+
return _extends$s.apply(this, arguments);
|
|
1056
1080
|
}
|
|
1057
|
-
function _inherits$
|
|
1081
|
+
function _inherits$s(subClass, superClass) {
|
|
1058
1082
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1059
1083
|
throw new TypeError("Super expression must either be null or a function");
|
|
1060
1084
|
}
|
|
@@ -1065,23 +1089,23 @@ function _inherits$p(subClass, superClass) {
|
|
|
1065
1089
|
configurable: true
|
|
1066
1090
|
}
|
|
1067
1091
|
});
|
|
1068
|
-
if (superClass) _set_prototype_of$
|
|
1092
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
1069
1093
|
}
|
|
1070
|
-
function _set_prototype_of$
|
|
1071
|
-
_set_prototype_of$
|
|
1094
|
+
function _set_prototype_of$s(o, p) {
|
|
1095
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1072
1096
|
o.__proto__ = p;
|
|
1073
1097
|
return o;
|
|
1074
1098
|
};
|
|
1075
|
-
return _set_prototype_of$
|
|
1099
|
+
return _set_prototype_of$s(o, p);
|
|
1076
1100
|
}
|
|
1077
1101
|
/**
|
|
1078
1102
|
* 播放/暂停控件
|
|
1079
1103
|
* @category Control
|
|
1080
1104
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1081
|
-
_inherits$
|
|
1105
|
+
_inherits$s(Play, Control);
|
|
1082
1106
|
function Play(options) {
|
|
1083
1107
|
var _this;
|
|
1084
|
-
_this = Control.call(this, _extends$
|
|
1108
|
+
_this = Control.call(this, _extends$s({}, options, {
|
|
1085
1109
|
tagName: 'span',
|
|
1086
1110
|
controlType: 'button',
|
|
1087
1111
|
classNameSuffix: 'play'
|
|
@@ -1697,8 +1721,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1697
1721
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1698
1722
|
return Constructor;
|
|
1699
1723
|
}
|
|
1700
|
-
function _extends$
|
|
1701
|
-
_extends$
|
|
1724
|
+
function _extends$r() {
|
|
1725
|
+
_extends$r = Object.assign || function(target) {
|
|
1702
1726
|
for(var i = 1; i < arguments.length; i++){
|
|
1703
1727
|
var source = arguments[i];
|
|
1704
1728
|
for(var key in source){
|
|
@@ -1709,9 +1733,9 @@ function _extends$o() {
|
|
|
1709
1733
|
}
|
|
1710
1734
|
return target;
|
|
1711
1735
|
};
|
|
1712
|
-
return _extends$
|
|
1736
|
+
return _extends$r.apply(this, arguments);
|
|
1713
1737
|
}
|
|
1714
|
-
function _inherits$
|
|
1738
|
+
function _inherits$r(subClass, superClass) {
|
|
1715
1739
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1716
1740
|
throw new TypeError("Super expression must either be null or a function");
|
|
1717
1741
|
}
|
|
@@ -1722,14 +1746,14 @@ function _inherits$o(subClass, superClass) {
|
|
|
1722
1746
|
configurable: true
|
|
1723
1747
|
}
|
|
1724
1748
|
});
|
|
1725
|
-
if (superClass) _set_prototype_of$
|
|
1749
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
1726
1750
|
}
|
|
1727
|
-
function _set_prototype_of$
|
|
1728
|
-
_set_prototype_of$
|
|
1751
|
+
function _set_prototype_of$r(o, p) {
|
|
1752
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1729
1753
|
o.__proto__ = p;
|
|
1730
1754
|
return o;
|
|
1731
1755
|
};
|
|
1732
|
-
return _set_prototype_of$
|
|
1756
|
+
return _set_prototype_of$r(o, p);
|
|
1733
1757
|
}
|
|
1734
1758
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1735
1759
|
volume: 0.8,
|
|
@@ -1743,12 +1767,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1743
1767
|
* 音量调节控件
|
|
1744
1768
|
* @category Control
|
|
1745
1769
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1746
|
-
_inherits$
|
|
1770
|
+
_inherits$r(Volume, Control);
|
|
1747
1771
|
function Volume(options) {
|
|
1748
1772
|
if (options === void 0) options = {};
|
|
1749
1773
|
var _this;
|
|
1750
1774
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1751
|
-
_this = Control.call(this, _extends$
|
|
1775
|
+
_this = Control.call(this, _extends$r({}, options, {
|
|
1752
1776
|
tagName: 'span',
|
|
1753
1777
|
classNameSuffix: 'volume',
|
|
1754
1778
|
controlType: 'button'
|
|
@@ -2408,8 +2432,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2408
2432
|
return Fullscreen;
|
|
2409
2433
|
}();
|
|
2410
2434
|
|
|
2411
|
-
function _extends$
|
|
2412
|
-
_extends$
|
|
2435
|
+
function _extends$q() {
|
|
2436
|
+
_extends$q = Object.assign || function(target) {
|
|
2413
2437
|
for(var i = 1; i < arguments.length; i++){
|
|
2414
2438
|
var source = arguments[i];
|
|
2415
2439
|
for(var key in source){
|
|
@@ -2420,9 +2444,9 @@ function _extends$n() {
|
|
|
2420
2444
|
}
|
|
2421
2445
|
return target;
|
|
2422
2446
|
};
|
|
2423
|
-
return _extends$
|
|
2447
|
+
return _extends$q.apply(this, arguments);
|
|
2424
2448
|
}
|
|
2425
|
-
function _inherits$
|
|
2449
|
+
function _inherits$q(subClass, superClass) {
|
|
2426
2450
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2427
2451
|
throw new TypeError("Super expression must either be null or a function");
|
|
2428
2452
|
}
|
|
@@ -2433,24 +2457,24 @@ function _inherits$n(subClass, superClass) {
|
|
|
2433
2457
|
configurable: true
|
|
2434
2458
|
}
|
|
2435
2459
|
});
|
|
2436
|
-
if (superClass) _set_prototype_of$
|
|
2460
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
2437
2461
|
}
|
|
2438
|
-
function _set_prototype_of$
|
|
2439
|
-
_set_prototype_of$
|
|
2462
|
+
function _set_prototype_of$q(o, p) {
|
|
2463
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2440
2464
|
o.__proto__ = p;
|
|
2441
2465
|
return o;
|
|
2442
2466
|
};
|
|
2443
|
-
return _set_prototype_of$
|
|
2467
|
+
return _set_prototype_of$q(o, p);
|
|
2444
2468
|
}
|
|
2445
2469
|
/**
|
|
2446
2470
|
* 全屏控件
|
|
2447
2471
|
* @category Control
|
|
2448
2472
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2449
|
-
_inherits$
|
|
2473
|
+
_inherits$q(Fullscreen, Control);
|
|
2450
2474
|
function Fullscreen(options) {
|
|
2451
2475
|
var _this;
|
|
2452
2476
|
var _options_props, _this_options;
|
|
2453
|
-
_this = Control.call(this, _extends$
|
|
2477
|
+
_this = Control.call(this, _extends$q({
|
|
2454
2478
|
tagName: 'span',
|
|
2455
2479
|
classNameSuffix: 'fullscreen',
|
|
2456
2480
|
controlType: 'button'
|
|
@@ -2515,8 +2539,8 @@ function _set_prototype_of$n(o, p) {
|
|
|
2515
2539
|
return Fullscreen;
|
|
2516
2540
|
}(Control);
|
|
2517
2541
|
|
|
2518
|
-
function _extends$
|
|
2519
|
-
_extends$
|
|
2542
|
+
function _extends$p() {
|
|
2543
|
+
_extends$p = Object.assign || function(target) {
|
|
2520
2544
|
for(var i = 1; i < arguments.length; i++){
|
|
2521
2545
|
var source = arguments[i];
|
|
2522
2546
|
for(var key in source){
|
|
@@ -2527,9 +2551,9 @@ function _extends$m() {
|
|
|
2527
2551
|
}
|
|
2528
2552
|
return target;
|
|
2529
2553
|
};
|
|
2530
|
-
return _extends$
|
|
2554
|
+
return _extends$p.apply(this, arguments);
|
|
2531
2555
|
}
|
|
2532
|
-
function _inherits$
|
|
2556
|
+
function _inherits$p(subClass, superClass) {
|
|
2533
2557
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2534
2558
|
throw new TypeError("Super expression must either be null or a function");
|
|
2535
2559
|
}
|
|
@@ -2540,24 +2564,24 @@ function _inherits$m(subClass, superClass) {
|
|
|
2540
2564
|
configurable: true
|
|
2541
2565
|
}
|
|
2542
2566
|
});
|
|
2543
|
-
if (superClass) _set_prototype_of$
|
|
2567
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
2544
2568
|
}
|
|
2545
|
-
function _set_prototype_of$
|
|
2546
|
-
_set_prototype_of$
|
|
2569
|
+
function _set_prototype_of$p(o, p) {
|
|
2570
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2547
2571
|
o.__proto__ = p;
|
|
2548
2572
|
return o;
|
|
2549
2573
|
};
|
|
2550
|
-
return _set_prototype_of$
|
|
2574
|
+
return _set_prototype_of$p(o, p);
|
|
2551
2575
|
}
|
|
2552
2576
|
/**
|
|
2553
2577
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2554
2578
|
* @category Control
|
|
2555
2579
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2556
|
-
_inherits$
|
|
2580
|
+
_inherits$p(Rec, Control);
|
|
2557
2581
|
function Rec(options) {
|
|
2558
2582
|
var _this;
|
|
2559
2583
|
var _options_props;
|
|
2560
|
-
_this = Control.call(this, _extends$
|
|
2584
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
2561
2585
|
tagName: 'div',
|
|
2562
2586
|
controlType: 'block',
|
|
2563
2587
|
classNameSuffix: 'rec'
|
|
@@ -2834,6 +2858,12 @@ var zh = {
|
|
|
2834
2858
|
BTN_TALK: '对讲',
|
|
2835
2859
|
BTN_BROADCAST: '语音广播',
|
|
2836
2860
|
BTN_AICHAT: 'AI对话',
|
|
2861
|
+
BTN_LIVE: '直播',
|
|
2862
|
+
BTN_REC_DROPDOWN: '回放',
|
|
2863
|
+
BTN_ALARM_MESSAGE: '消息',
|
|
2864
|
+
REC_DROPDOWN_CLOUD_REC: '云存储',
|
|
2865
|
+
REC_DROPDOWN_CLOUD_RECORD: '云录制',
|
|
2866
|
+
REC_DROPDOWN_LOCAL_REC: '本地回放',
|
|
2837
2867
|
BTN_ZOOM: '电子放大',
|
|
2838
2868
|
BTN_3D_ZOOM: '3D定位',
|
|
2839
2869
|
BTN_PTZ: '云台控制',
|
|
@@ -3106,6 +3136,12 @@ var en = {
|
|
|
3106
3136
|
BTN_TALK: 'Intercom',
|
|
3107
3137
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3108
3138
|
BTN_AICHAT: 'AI Chat',
|
|
3139
|
+
BTN_LIVE: 'Live',
|
|
3140
|
+
BTN_REC_DROPDOWN: 'Playback',
|
|
3141
|
+
BTN_ALARM_MESSAGE: 'Messages',
|
|
3142
|
+
REC_DROPDOWN_CLOUD_REC: 'Cloud Storage',
|
|
3143
|
+
REC_DROPDOWN_CLOUD_RECORD: 'Cloud Recording',
|
|
3144
|
+
REC_DROPDOWN_LOCAL_REC: 'Local Playback',
|
|
3109
3145
|
BTN_ZOOM: 'Electronic zoom',
|
|
3110
3146
|
BTN_3D_ZOOM: '3D positioning',
|
|
3111
3147
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3301,6 +3337,21 @@ var en = {
|
|
|
3301
3337
|
iconId: 'deviceName',
|
|
3302
3338
|
part: 'left',
|
|
3303
3339
|
isrender: 1
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
iconId: 'live',
|
|
3343
|
+
part: 'right',
|
|
3344
|
+
isrender: 1
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
iconId: 'recDropdown',
|
|
3348
|
+
part: 'right',
|
|
3349
|
+
isrender: 1
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
iconId: 'alarmMessage',
|
|
3353
|
+
part: 'right',
|
|
3354
|
+
isrender: 1
|
|
3304
3355
|
}
|
|
3305
3356
|
]
|
|
3306
3357
|
},
|
|
@@ -3388,19 +3439,19 @@ var en = {
|
|
|
3388
3439
|
isrender: 1
|
|
3389
3440
|
},
|
|
3390
3441
|
{
|
|
3391
|
-
iconId: '
|
|
3442
|
+
iconId: 'live',
|
|
3392
3443
|
part: 'right',
|
|
3393
3444
|
defaultActive: 0,
|
|
3394
3445
|
isrender: 1
|
|
3395
3446
|
},
|
|
3396
3447
|
{
|
|
3397
|
-
iconId: '
|
|
3448
|
+
iconId: 'recDropdown',
|
|
3398
3449
|
part: 'right',
|
|
3399
3450
|
defaultActive: 0,
|
|
3400
3451
|
isrender: 1
|
|
3401
3452
|
},
|
|
3402
3453
|
{
|
|
3403
|
-
iconId: '
|
|
3454
|
+
iconId: 'alarmMessage',
|
|
3404
3455
|
part: 'right',
|
|
3405
3456
|
defaultActive: 0,
|
|
3406
3457
|
isrender: 1
|
|
@@ -3803,7 +3854,7 @@ var en = {
|
|
|
3803
3854
|
voice: voice
|
|
3804
3855
|
};
|
|
3805
3856
|
|
|
3806
|
-
function _inherits$
|
|
3857
|
+
function _inherits$o(subClass, superClass) {
|
|
3807
3858
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3808
3859
|
throw new TypeError("Super expression must either be null or a function");
|
|
3809
3860
|
}
|
|
@@ -3814,20 +3865,20 @@ function _inherits$l(subClass, superClass) {
|
|
|
3814
3865
|
configurable: true
|
|
3815
3866
|
}
|
|
3816
3867
|
});
|
|
3817
|
-
if (superClass) _set_prototype_of$
|
|
3868
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
3818
3869
|
}
|
|
3819
|
-
function _set_prototype_of$
|
|
3820
|
-
_set_prototype_of$
|
|
3870
|
+
function _set_prototype_of$o(o, p) {
|
|
3871
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3821
3872
|
o.__proto__ = p;
|
|
3822
3873
|
return o;
|
|
3823
3874
|
};
|
|
3824
|
-
return _set_prototype_of$
|
|
3875
|
+
return _set_prototype_of$o(o, p);
|
|
3825
3876
|
}
|
|
3826
3877
|
/**
|
|
3827
3878
|
* 截图控件
|
|
3828
3879
|
* @category Content
|
|
3829
3880
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3830
|
-
_inherits$
|
|
3881
|
+
_inherits$o(Content, EventEmitter);
|
|
3831
3882
|
function Content(options) {
|
|
3832
3883
|
var _this;
|
|
3833
3884
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3942,8 +3993,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
3942
3993
|
return Content;
|
|
3943
3994
|
}(EventEmitter);
|
|
3944
3995
|
|
|
3945
|
-
function _extends$
|
|
3946
|
-
_extends$
|
|
3996
|
+
function _extends$o() {
|
|
3997
|
+
_extends$o = Object.assign || function(target) {
|
|
3947
3998
|
for(var i = 1; i < arguments.length; i++){
|
|
3948
3999
|
var source = arguments[i];
|
|
3949
4000
|
for(var key in source){
|
|
@@ -3954,9 +4005,9 @@ function _extends$l() {
|
|
|
3954
4005
|
}
|
|
3955
4006
|
return target;
|
|
3956
4007
|
};
|
|
3957
|
-
return _extends$
|
|
4008
|
+
return _extends$o.apply(this, arguments);
|
|
3958
4009
|
}
|
|
3959
|
-
function _inherits$
|
|
4010
|
+
function _inherits$n(subClass, superClass) {
|
|
3960
4011
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3961
4012
|
throw new TypeError("Super expression must either be null or a function");
|
|
3962
4013
|
}
|
|
@@ -3967,23 +4018,23 @@ function _inherits$k(subClass, superClass) {
|
|
|
3967
4018
|
configurable: true
|
|
3968
4019
|
}
|
|
3969
4020
|
});
|
|
3970
|
-
if (superClass) _set_prototype_of$
|
|
4021
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
3971
4022
|
}
|
|
3972
|
-
function _set_prototype_of$
|
|
3973
|
-
_set_prototype_of$
|
|
4023
|
+
function _set_prototype_of$n(o, p) {
|
|
4024
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3974
4025
|
o.__proto__ = p;
|
|
3975
4026
|
return o;
|
|
3976
4027
|
};
|
|
3977
|
-
return _set_prototype_of$
|
|
4028
|
+
return _set_prototype_of$n(o, p);
|
|
3978
4029
|
}
|
|
3979
4030
|
/**
|
|
3980
4031
|
* 更多控件
|
|
3981
4032
|
* @category Control
|
|
3982
4033
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3983
|
-
_inherits$
|
|
4034
|
+
_inherits$n(More, Control);
|
|
3984
4035
|
function More(options) {
|
|
3985
4036
|
var _this;
|
|
3986
|
-
_this = Control.call(this, _extends$
|
|
4037
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
3987
4038
|
tagName: 'span',
|
|
3988
4039
|
controlType: 'button',
|
|
3989
4040
|
classNameSuffix: 'more'
|
|
@@ -4199,6 +4250,15 @@ function debounce(func, wait) {
|
|
|
4199
4250
|
}
|
|
4200
4251
|
});
|
|
4201
4252
|
// =======================================================
|
|
4253
|
+
// 告警消息
|
|
4254
|
+
// =======================================================
|
|
4255
|
+
theme.on(EVENTS.alarmMessageChange, function(active) {
|
|
4256
|
+
var _theme_controls;
|
|
4257
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
|
|
4258
|
+
theme.controls.alarmMessageControl._panelOpen = active;
|
|
4259
|
+
}
|
|
4260
|
+
});
|
|
4261
|
+
// =======================================================
|
|
4202
4262
|
// 录制
|
|
4203
4263
|
// =======================================================
|
|
4204
4264
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4294,7 +4354,7 @@ function debounce(func, wait) {
|
|
|
4294
4354
|
*
|
|
4295
4355
|
* @param theme - Theme
|
|
4296
4356
|
*/ function _controlEventemitter(theme) {
|
|
4297
|
-
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16;
|
|
4357
|
+
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16, _theme_controls17, _theme_controls18, _theme_controls19, _theme_controls20, _theme_controls21;
|
|
4298
4358
|
// Controls
|
|
4299
4359
|
if (theme._recFooter) {
|
|
4300
4360
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4405,8 +4465,50 @@ function debounce(func, wait) {
|
|
|
4405
4465
|
theme.emit(EVENTS.control.aichatDestroy);
|
|
4406
4466
|
});
|
|
4407
4467
|
}
|
|
4468
|
+
// 直播按钮
|
|
4469
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
|
|
4470
|
+
theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
|
|
4471
|
+
var _theme_controls;
|
|
4472
|
+
// 直接设置回放下拉控件为非激活状态
|
|
4473
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
|
|
4474
|
+
theme.controls.recDropdownControl.active = false;
|
|
4475
|
+
}
|
|
4476
|
+
theme.emit(EVENTS.control.liveChange);
|
|
4477
|
+
});
|
|
4478
|
+
}
|
|
4479
|
+
// 回放下拉
|
|
4480
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
|
|
4481
|
+
theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
|
|
4482
|
+
var _theme_controls;
|
|
4483
|
+
// 直接设置直播控件为非激活状态
|
|
4484
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4485
|
+
theme.controls.liveControl.active = false;
|
|
4486
|
+
}
|
|
4487
|
+
theme.emit(EVENTS.control.recDropdownChange, type);
|
|
4488
|
+
});
|
|
4489
|
+
}
|
|
4490
|
+
// 告警消息
|
|
4491
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
|
|
4492
|
+
theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
|
|
4493
|
+
theme.emit(EVENTS.control.alarmMessageChange, active);
|
|
4494
|
+
});
|
|
4495
|
+
}
|
|
4496
|
+
// 播放地址切换后同步 Live/RecDropdown 激活状态
|
|
4497
|
+
// changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
|
|
4498
|
+
if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
|
|
4499
|
+
theme.on(EVENTS.firstFrameDisplay, function() {
|
|
4500
|
+
var _theme_controls, _theme_controls1;
|
|
4501
|
+
var urlInfo = theme.urlInfo;
|
|
4502
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4503
|
+
theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
|
|
4504
|
+
}
|
|
4505
|
+
if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
|
|
4506
|
+
theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
|
|
4507
|
+
}
|
|
4508
|
+
});
|
|
4509
|
+
}
|
|
4408
4510
|
// 缩放控件
|
|
4409
|
-
if ((
|
|
4511
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
|
|
4410
4512
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4411
4513
|
if (theme.zoom !== value) {
|
|
4412
4514
|
theme.zoom = value;
|
|
@@ -4428,7 +4530,7 @@ function debounce(func, wait) {
|
|
|
4428
4530
|
});
|
|
4429
4531
|
}
|
|
4430
4532
|
// 清晰度控件
|
|
4431
|
-
if ((
|
|
4533
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
|
|
4432
4534
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4433
4535
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4434
4536
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4441,7 +4543,7 @@ function debounce(func, wait) {
|
|
|
4441
4543
|
});
|
|
4442
4544
|
}
|
|
4443
4545
|
// 倍速控件
|
|
4444
|
-
if ((
|
|
4546
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
|
|
4445
4547
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4446
4548
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4447
4549
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4454,7 +4556,7 @@ function debounce(func, wait) {
|
|
|
4454
4556
|
});
|
|
4455
4557
|
}
|
|
4456
4558
|
// 截图控件
|
|
4457
|
-
if ((
|
|
4559
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
|
|
4458
4560
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4459
4561
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4460
4562
|
});
|
|
@@ -4463,25 +4565,25 @@ function debounce(func, wait) {
|
|
|
4463
4565
|
});
|
|
4464
4566
|
}
|
|
4465
4567
|
// 全屏控件
|
|
4466
|
-
if ((
|
|
4568
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
|
|
4467
4569
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4468
4570
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4469
4571
|
});
|
|
4470
4572
|
}
|
|
4471
4573
|
// 全局全屏控件
|
|
4472
|
-
if ((
|
|
4574
|
+
if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
|
|
4473
4575
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4474
4576
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4475
4577
|
});
|
|
4476
4578
|
}
|
|
4477
4579
|
// 设备信息控件
|
|
4478
|
-
if ((
|
|
4580
|
+
if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
|
|
4479
4581
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4480
4582
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4481
4583
|
});
|
|
4482
4584
|
}
|
|
4483
4585
|
// 回放类型切换控件
|
|
4484
|
-
if ((
|
|
4586
|
+
if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
|
|
4485
4587
|
// prettier-ignore
|
|
4486
4588
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4487
4589
|
if (theme.recType !== type) {
|
|
@@ -4502,7 +4604,7 @@ function debounce(func, wait) {
|
|
|
4502
4604
|
});
|
|
4503
4605
|
}
|
|
4504
4606
|
// 时间轴控件
|
|
4505
|
-
if ((
|
|
4607
|
+
if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
|
|
4506
4608
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4507
4609
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4508
4610
|
});
|
|
@@ -4519,7 +4621,7 @@ function debounce(func, wait) {
|
|
|
4519
4621
|
});
|
|
4520
4622
|
}
|
|
4521
4623
|
// 日历控件
|
|
4522
|
-
if ((
|
|
4624
|
+
if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
|
|
4523
4625
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4524
4626
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4525
4627
|
});
|
|
@@ -4614,8 +4716,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4614
4716
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4615
4717
|
return Constructor;
|
|
4616
4718
|
}
|
|
4617
|
-
function _extends$
|
|
4618
|
-
_extends$
|
|
4719
|
+
function _extends$n() {
|
|
4720
|
+
_extends$n = Object.assign || function(target) {
|
|
4619
4721
|
for(var i = 1; i < arguments.length; i++){
|
|
4620
4722
|
var source = arguments[i];
|
|
4621
4723
|
for(var key in source){
|
|
@@ -4626,9 +4728,9 @@ function _extends$k() {
|
|
|
4626
4728
|
}
|
|
4627
4729
|
return target;
|
|
4628
4730
|
};
|
|
4629
|
-
return _extends$
|
|
4731
|
+
return _extends$n.apply(this, arguments);
|
|
4630
4732
|
}
|
|
4631
|
-
function _inherits$
|
|
4733
|
+
function _inherits$m(subClass, superClass) {
|
|
4632
4734
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4633
4735
|
throw new TypeError("Super expression must either be null or a function");
|
|
4634
4736
|
}
|
|
@@ -4639,14 +4741,14 @@ function _inherits$j(subClass, superClass) {
|
|
|
4639
4741
|
configurable: true
|
|
4640
4742
|
}
|
|
4641
4743
|
});
|
|
4642
|
-
if (superClass) _set_prototype_of$
|
|
4744
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
4643
4745
|
}
|
|
4644
|
-
function _set_prototype_of$
|
|
4645
|
-
_set_prototype_of$
|
|
4746
|
+
function _set_prototype_of$m(o, p) {
|
|
4747
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4646
4748
|
o.__proto__ = p;
|
|
4647
4749
|
return o;
|
|
4648
4750
|
};
|
|
4649
|
-
return _set_prototype_of$
|
|
4751
|
+
return _set_prototype_of$m(o, p);
|
|
4650
4752
|
}
|
|
4651
4753
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4652
4754
|
open: false,
|
|
@@ -4656,10 +4758,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4656
4758
|
* 电子放大控件
|
|
4657
4759
|
* @category Control
|
|
4658
4760
|
*/ var Zoom = /*#__PURE__*/ function(Control) {
|
|
4659
|
-
_inherits$
|
|
4761
|
+
_inherits$m(Zoom, Control);
|
|
4660
4762
|
function Zoom(options) {
|
|
4661
4763
|
var _this;
|
|
4662
|
-
_this = Control.call(this, _extends$
|
|
4764
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
4663
4765
|
tagName: 'span',
|
|
4664
4766
|
controlType: 'button',
|
|
4665
4767
|
classNameSuffix: 'zoom'
|
|
@@ -4787,8 +4889,8 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4787
4889
|
return Zoom;
|
|
4788
4890
|
}(Control);
|
|
4789
4891
|
|
|
4790
|
-
function _extends$
|
|
4791
|
-
_extends$
|
|
4892
|
+
function _extends$m() {
|
|
4893
|
+
_extends$m = Object.assign || function(target) {
|
|
4792
4894
|
for(var i = 1; i < arguments.length; i++){
|
|
4793
4895
|
var source = arguments[i];
|
|
4794
4896
|
for(var key in source){
|
|
@@ -4799,10 +4901,10 @@ function _extends$j() {
|
|
|
4799
4901
|
}
|
|
4800
4902
|
return target;
|
|
4801
4903
|
};
|
|
4802
|
-
return _extends$
|
|
4904
|
+
return _extends$m.apply(this, arguments);
|
|
4803
4905
|
}
|
|
4804
4906
|
function __zoom(theme, container, options) {
|
|
4805
|
-
theme.zoomUtil = new Zoom$1(container, _extends$
|
|
4907
|
+
theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
|
|
4806
4908
|
min: 1,
|
|
4807
4909
|
onChange: function(zoom, reset) {
|
|
4808
4910
|
if (zoom !== theme._zoom) {
|
|
@@ -5027,8 +5129,8 @@ function _async_to_generator$5(fn) {
|
|
|
5027
5129
|
});
|
|
5028
5130
|
};
|
|
5029
5131
|
}
|
|
5030
|
-
function _extends$
|
|
5031
|
-
_extends$
|
|
5132
|
+
function _extends$l() {
|
|
5133
|
+
_extends$l = Object.assign || function(target) {
|
|
5032
5134
|
for(var i = 1; i < arguments.length; i++){
|
|
5033
5135
|
var source = arguments[i];
|
|
5034
5136
|
for(var key in source){
|
|
@@ -5039,7 +5141,7 @@ function _extends$i() {
|
|
|
5039
5141
|
}
|
|
5040
5142
|
return target;
|
|
5041
5143
|
};
|
|
5042
|
-
return _extends$
|
|
5144
|
+
return _extends$l.apply(this, arguments);
|
|
5043
5145
|
}
|
|
5044
5146
|
function _ts_generator$5(thisArg, body) {
|
|
5045
5147
|
var f, y, t, _ = {
|
|
@@ -5167,7 +5269,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5167
5269
|
}
|
|
5168
5270
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5169
5271
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5170
|
-
recControls.push(recControls[0] ? _extends$
|
|
5272
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5171
5273
|
part: recControls[0].part
|
|
5172
5274
|
}) : item);
|
|
5173
5275
|
return false;
|
|
@@ -5190,7 +5292,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5190
5292
|
}
|
|
5191
5293
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5192
5294
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5193
|
-
recControls.push(recControls[0] ? _extends$
|
|
5295
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5194
5296
|
part: recControls[0].part
|
|
5195
5297
|
}) : item);
|
|
5196
5298
|
return false;
|
|
@@ -5441,8 +5543,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5441
5543
|
return Component;
|
|
5442
5544
|
}();
|
|
5443
5545
|
|
|
5444
|
-
function _extends$
|
|
5445
|
-
_extends$
|
|
5546
|
+
function _extends$k() {
|
|
5547
|
+
_extends$k = Object.assign || function(target) {
|
|
5446
5548
|
for(var i = 1; i < arguments.length; i++){
|
|
5447
5549
|
var source = arguments[i];
|
|
5448
5550
|
for(var key in source){
|
|
@@ -5453,9 +5555,9 @@ function _extends$h() {
|
|
|
5453
5555
|
}
|
|
5454
5556
|
return target;
|
|
5455
5557
|
};
|
|
5456
|
-
return _extends$
|
|
5558
|
+
return _extends$k.apply(this, arguments);
|
|
5457
5559
|
}
|
|
5458
|
-
function _inherits$
|
|
5560
|
+
function _inherits$l(subClass, superClass) {
|
|
5459
5561
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5460
5562
|
throw new TypeError("Super expression must either be null or a function");
|
|
5461
5563
|
}
|
|
@@ -5466,28 +5568,28 @@ function _inherits$i(subClass, superClass) {
|
|
|
5466
5568
|
configurable: true
|
|
5467
5569
|
}
|
|
5468
5570
|
});
|
|
5469
|
-
if (superClass) _set_prototype_of$
|
|
5571
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
5470
5572
|
}
|
|
5471
|
-
function _set_prototype_of$
|
|
5472
|
-
_set_prototype_of$
|
|
5573
|
+
function _set_prototype_of$l(o, p) {
|
|
5574
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5473
5575
|
o.__proto__ = p;
|
|
5474
5576
|
return o;
|
|
5475
5577
|
};
|
|
5476
|
-
return _set_prototype_of$
|
|
5578
|
+
return _set_prototype_of$l(o, p);
|
|
5477
5579
|
}
|
|
5478
5580
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
5479
|
-
_inherits$
|
|
5581
|
+
_inherits$l(Footer, Component);
|
|
5480
5582
|
function Footer(options) {
|
|
5481
5583
|
if (options === void 0) options = {};
|
|
5482
|
-
return Component.call(this, _extends$
|
|
5584
|
+
return Component.call(this, _extends$k({}, options, {
|
|
5483
5585
|
cType: 'footer'
|
|
5484
5586
|
})) || this;
|
|
5485
5587
|
}
|
|
5486
5588
|
return Footer;
|
|
5487
5589
|
}(Component);
|
|
5488
5590
|
|
|
5489
|
-
function _extends$
|
|
5490
|
-
_extends$
|
|
5591
|
+
function _extends$j() {
|
|
5592
|
+
_extends$j = Object.assign || function(target) {
|
|
5491
5593
|
for(var i = 1; i < arguments.length; i++){
|
|
5492
5594
|
var source = arguments[i];
|
|
5493
5595
|
for(var key in source){
|
|
@@ -5498,9 +5600,9 @@ function _extends$g() {
|
|
|
5498
5600
|
}
|
|
5499
5601
|
return target;
|
|
5500
5602
|
};
|
|
5501
|
-
return _extends$
|
|
5603
|
+
return _extends$j.apply(this, arguments);
|
|
5502
5604
|
}
|
|
5503
|
-
function _inherits$
|
|
5605
|
+
function _inherits$k(subClass, superClass) {
|
|
5504
5606
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5505
5607
|
throw new TypeError("Super expression must either be null or a function");
|
|
5506
5608
|
}
|
|
@@ -5511,20 +5613,20 @@ function _inherits$h(subClass, superClass) {
|
|
|
5511
5613
|
configurable: true
|
|
5512
5614
|
}
|
|
5513
5615
|
});
|
|
5514
|
-
if (superClass) _set_prototype_of$
|
|
5616
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
5515
5617
|
}
|
|
5516
|
-
function _set_prototype_of$
|
|
5517
|
-
_set_prototype_of$
|
|
5618
|
+
function _set_prototype_of$k(o, p) {
|
|
5619
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5518
5620
|
o.__proto__ = p;
|
|
5519
5621
|
return o;
|
|
5520
5622
|
};
|
|
5521
|
-
return _set_prototype_of$
|
|
5623
|
+
return _set_prototype_of$k(o, p);
|
|
5522
5624
|
}
|
|
5523
5625
|
var Header = /*#__PURE__*/ function(Component) {
|
|
5524
|
-
_inherits$
|
|
5626
|
+
_inherits$k(Header, Component);
|
|
5525
5627
|
function Header(options) {
|
|
5526
5628
|
if (options === void 0) options = {};
|
|
5527
|
-
return Component.call(this, _extends$
|
|
5629
|
+
return Component.call(this, _extends$j({}, options, {
|
|
5528
5630
|
cType: 'header'
|
|
5529
5631
|
})) || this;
|
|
5530
5632
|
}
|
|
@@ -5690,8 +5792,8 @@ function interactiveHF($container, second, callback) {
|
|
|
5690
5792
|
};
|
|
5691
5793
|
}
|
|
5692
5794
|
|
|
5693
|
-
function _extends$
|
|
5694
|
-
_extends$
|
|
5795
|
+
function _extends$i() {
|
|
5796
|
+
_extends$i = Object.assign || function(target) {
|
|
5695
5797
|
for(var i = 1; i < arguments.length; i++){
|
|
5696
5798
|
var source = arguments[i];
|
|
5697
5799
|
for(var key in source){
|
|
@@ -5702,9 +5804,9 @@ function _extends$f() {
|
|
|
5702
5804
|
}
|
|
5703
5805
|
return target;
|
|
5704
5806
|
};
|
|
5705
|
-
return _extends$
|
|
5807
|
+
return _extends$i.apply(this, arguments);
|
|
5706
5808
|
}
|
|
5707
|
-
function _inherits$
|
|
5809
|
+
function _inherits$j(subClass, superClass) {
|
|
5708
5810
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5709
5811
|
throw new TypeError("Super expression must either be null or a function");
|
|
5710
5812
|
}
|
|
@@ -5715,23 +5817,23 @@ function _inherits$g(subClass, superClass) {
|
|
|
5715
5817
|
configurable: true
|
|
5716
5818
|
}
|
|
5717
5819
|
});
|
|
5718
|
-
if (superClass) _set_prototype_of$
|
|
5820
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
5719
5821
|
}
|
|
5720
|
-
function _set_prototype_of$
|
|
5721
|
-
_set_prototype_of$
|
|
5822
|
+
function _set_prototype_of$j(o, p) {
|
|
5823
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5722
5824
|
o.__proto__ = p;
|
|
5723
5825
|
return o;
|
|
5724
5826
|
};
|
|
5725
|
-
return _set_prototype_of$
|
|
5827
|
+
return _set_prototype_of$j(o, p);
|
|
5726
5828
|
}
|
|
5727
5829
|
/**
|
|
5728
5830
|
* 全局全屏
|
|
5729
5831
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
5730
5832
|
* @category Control
|
|
5731
5833
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
5732
|
-
_inherits$
|
|
5834
|
+
_inherits$j(GlobalFullscreen, Fullscreen);
|
|
5733
5835
|
function GlobalFullscreen(options) {
|
|
5734
|
-
return Fullscreen.call(this, _extends$
|
|
5836
|
+
return Fullscreen.call(this, _extends$i({}, options, {
|
|
5735
5837
|
controlType: 'button',
|
|
5736
5838
|
classNameSuffix: 'global-fullscreen'
|
|
5737
5839
|
})) || this;
|
|
@@ -5762,8 +5864,8 @@ function _set_prototype_of$g(o, p) {
|
|
|
5762
5864
|
return GlobalFullscreen;
|
|
5763
5865
|
}(Fullscreen);
|
|
5764
5866
|
|
|
5765
|
-
function _extends$
|
|
5766
|
-
_extends$
|
|
5867
|
+
function _extends$h() {
|
|
5868
|
+
_extends$h = Object.assign || function(target) {
|
|
5767
5869
|
for(var i = 1; i < arguments.length; i++){
|
|
5768
5870
|
var source = arguments[i];
|
|
5769
5871
|
for(var key in source){
|
|
@@ -5774,9 +5876,9 @@ function _extends$e() {
|
|
|
5774
5876
|
}
|
|
5775
5877
|
return target;
|
|
5776
5878
|
};
|
|
5777
|
-
return _extends$
|
|
5879
|
+
return _extends$h.apply(this, arguments);
|
|
5778
5880
|
}
|
|
5779
|
-
function _inherits$
|
|
5881
|
+
function _inherits$i(subClass, superClass) {
|
|
5780
5882
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5781
5883
|
throw new TypeError("Super expression must either be null or a function");
|
|
5782
5884
|
}
|
|
@@ -5787,23 +5889,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
5787
5889
|
configurable: true
|
|
5788
5890
|
}
|
|
5789
5891
|
});
|
|
5790
|
-
if (superClass) _set_prototype_of$
|
|
5892
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
5791
5893
|
}
|
|
5792
|
-
function _set_prototype_of$
|
|
5793
|
-
_set_prototype_of$
|
|
5894
|
+
function _set_prototype_of$i(o, p) {
|
|
5895
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5794
5896
|
o.__proto__ = p;
|
|
5795
5897
|
return o;
|
|
5796
5898
|
};
|
|
5797
|
-
return _set_prototype_of$
|
|
5899
|
+
return _set_prototype_of$i(o, p);
|
|
5798
5900
|
}
|
|
5799
5901
|
/**
|
|
5800
5902
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
5801
5903
|
* @category Control
|
|
5802
5904
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
5803
|
-
_inherits$
|
|
5905
|
+
_inherits$i(CapturePicture, Control);
|
|
5804
5906
|
function CapturePicture(options) {
|
|
5805
5907
|
var _this;
|
|
5806
|
-
_this = Control.call(this, _extends$
|
|
5908
|
+
_this = Control.call(this, _extends$h({}, options, {
|
|
5807
5909
|
tagName: 'span',
|
|
5808
5910
|
classNameSuffix: 'capture-picture'
|
|
5809
5911
|
})) || this, _this._timer = null;
|
|
@@ -5869,8 +5971,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
5869
5971
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
5870
5972
|
return Constructor;
|
|
5871
5973
|
}
|
|
5872
|
-
function _extends$
|
|
5873
|
-
_extends$
|
|
5974
|
+
function _extends$g() {
|
|
5975
|
+
_extends$g = Object.assign || function(target) {
|
|
5874
5976
|
for(var i = 1; i < arguments.length; i++){
|
|
5875
5977
|
var source = arguments[i];
|
|
5876
5978
|
for(var key in source){
|
|
@@ -5881,9 +5983,9 @@ function _extends$d() {
|
|
|
5881
5983
|
}
|
|
5882
5984
|
return target;
|
|
5883
5985
|
};
|
|
5884
|
-
return _extends$
|
|
5986
|
+
return _extends$g.apply(this, arguments);
|
|
5885
5987
|
}
|
|
5886
|
-
function _inherits$
|
|
5988
|
+
function _inherits$h(subClass, superClass) {
|
|
5887
5989
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5888
5990
|
throw new TypeError("Super expression must either be null or a function");
|
|
5889
5991
|
}
|
|
@@ -5894,23 +5996,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
5894
5996
|
configurable: true
|
|
5895
5997
|
}
|
|
5896
5998
|
});
|
|
5897
|
-
if (superClass) _set_prototype_of$
|
|
5999
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
5898
6000
|
}
|
|
5899
|
-
function _set_prototype_of$
|
|
5900
|
-
_set_prototype_of$
|
|
6001
|
+
function _set_prototype_of$h(o, p) {
|
|
6002
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5901
6003
|
o.__proto__ = p;
|
|
5902
6004
|
return o;
|
|
5903
6005
|
};
|
|
5904
|
-
return _set_prototype_of$
|
|
6006
|
+
return _set_prototype_of$h(o, p);
|
|
5905
6007
|
}
|
|
5906
6008
|
/**
|
|
5907
6009
|
* 云台控件
|
|
5908
6010
|
* @category Control
|
|
5909
6011
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
5910
|
-
_inherits$
|
|
6012
|
+
_inherits$h(Ptz, Control);
|
|
5911
6013
|
function Ptz(options) {
|
|
5912
6014
|
var _this;
|
|
5913
|
-
_this = Control.call(this, _extends$
|
|
6015
|
+
_this = Control.call(this, _extends$g({}, options, {
|
|
5914
6016
|
tagName: 'span',
|
|
5915
6017
|
controlType: 'button',
|
|
5916
6018
|
classNameSuffix: 'ptz'
|
|
@@ -5953,7 +6055,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5953
6055
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
5954
6056
|
this.$panel.appendChild(this.$turntable);
|
|
5955
6057
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5956
|
-
this._ptzControl = new Ptz$1(this.$turntable, _extends$
|
|
6058
|
+
this._ptzControl = new Ptz$1(this.$turntable, _extends$g({}, this._options, {
|
|
5957
6059
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5958
6060
|
onDirection: this._onDirection.bind(this)
|
|
5959
6061
|
}));
|
|
@@ -5962,7 +6064,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5962
6064
|
};
|
|
5963
6065
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
5964
6066
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5965
|
-
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$
|
|
6067
|
+
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$g({}, this._options, {
|
|
5966
6068
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5967
6069
|
onDirection: this._onDirection.bind(this)
|
|
5968
6070
|
}));
|
|
@@ -6065,8 +6167,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6065
6167
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
6066
6168
|
return Constructor;
|
|
6067
6169
|
}
|
|
6068
|
-
function _extends$
|
|
6069
|
-
_extends$
|
|
6170
|
+
function _extends$f() {
|
|
6171
|
+
_extends$f = Object.assign || function(target) {
|
|
6070
6172
|
for(var i = 1; i < arguments.length; i++){
|
|
6071
6173
|
var source = arguments[i];
|
|
6072
6174
|
for(var key in source){
|
|
@@ -6077,9 +6179,9 @@ function _extends$c() {
|
|
|
6077
6179
|
}
|
|
6078
6180
|
return target;
|
|
6079
6181
|
};
|
|
6080
|
-
return _extends$
|
|
6182
|
+
return _extends$f.apply(this, arguments);
|
|
6081
6183
|
}
|
|
6082
|
-
function _inherits$
|
|
6184
|
+
function _inherits$g(subClass, superClass) {
|
|
6083
6185
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6084
6186
|
throw new TypeError("Super expression must either be null or a function");
|
|
6085
6187
|
}
|
|
@@ -6090,14 +6192,14 @@ function _inherits$d(subClass, superClass) {
|
|
|
6090
6192
|
configurable: true
|
|
6091
6193
|
}
|
|
6092
6194
|
});
|
|
6093
|
-
if (superClass) _set_prototype_of$
|
|
6195
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6094
6196
|
}
|
|
6095
|
-
function _set_prototype_of$
|
|
6096
|
-
_set_prototype_of$
|
|
6197
|
+
function _set_prototype_of$g(o, p) {
|
|
6198
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6097
6199
|
o.__proto__ = p;
|
|
6098
6200
|
return o;
|
|
6099
6201
|
};
|
|
6100
|
-
return _set_prototype_of$
|
|
6202
|
+
return _set_prototype_of$g(o, p);
|
|
6101
6203
|
}
|
|
6102
6204
|
var RECORD_DEFAULT_OPTIONS = {
|
|
6103
6205
|
maxDuration: 3600
|
|
@@ -6111,10 +6213,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
6111
6213
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
6112
6214
|
* @category Control
|
|
6113
6215
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
6114
|
-
_inherits$
|
|
6216
|
+
_inherits$g(Record, Control);
|
|
6115
6217
|
function Record(options) {
|
|
6116
6218
|
var _this;
|
|
6117
|
-
_this = Control.call(this, _extends$
|
|
6219
|
+
_this = Control.call(this, _extends$f({}, options, {
|
|
6118
6220
|
tagName: 'span',
|
|
6119
6221
|
controlType: 'button',
|
|
6120
6222
|
classNameSuffix: 'record'
|
|
@@ -6255,8 +6357,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6255
6357
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
6256
6358
|
return Constructor;
|
|
6257
6359
|
}
|
|
6258
|
-
function _extends$
|
|
6259
|
-
_extends$
|
|
6360
|
+
function _extends$e() {
|
|
6361
|
+
_extends$e = Object.assign || function(target) {
|
|
6260
6362
|
for(var i = 1; i < arguments.length; i++){
|
|
6261
6363
|
var source = arguments[i];
|
|
6262
6364
|
for(var key in source){
|
|
@@ -6267,9 +6369,9 @@ function _extends$b() {
|
|
|
6267
6369
|
}
|
|
6268
6370
|
return target;
|
|
6269
6371
|
};
|
|
6270
|
-
return _extends$
|
|
6372
|
+
return _extends$e.apply(this, arguments);
|
|
6271
6373
|
}
|
|
6272
|
-
function _inherits$
|
|
6374
|
+
function _inherits$f(subClass, superClass) {
|
|
6273
6375
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6274
6376
|
throw new TypeError("Super expression must either be null or a function");
|
|
6275
6377
|
}
|
|
@@ -6280,14 +6382,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
6280
6382
|
configurable: true
|
|
6281
6383
|
}
|
|
6282
6384
|
});
|
|
6283
|
-
if (superClass) _set_prototype_of$
|
|
6385
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6284
6386
|
}
|
|
6285
|
-
function _set_prototype_of$
|
|
6286
|
-
_set_prototype_of$
|
|
6387
|
+
function _set_prototype_of$f(o, p) {
|
|
6388
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6287
6389
|
o.__proto__ = p;
|
|
6288
6390
|
return o;
|
|
6289
6391
|
};
|
|
6290
|
-
return _set_prototype_of$
|
|
6392
|
+
return _set_prototype_of$f(o, p);
|
|
6291
6393
|
}
|
|
6292
6394
|
function _ts_generator$4(thisArg, body) {
|
|
6293
6395
|
var f, y, t, _ = {
|
|
@@ -6389,10 +6491,10 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6389
6491
|
*
|
|
6390
6492
|
* @category Control
|
|
6391
6493
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
6392
|
-
_inherits$
|
|
6494
|
+
_inherits$f(Talk, Control);
|
|
6393
6495
|
function Talk(options) {
|
|
6394
6496
|
var _this;
|
|
6395
|
-
_this = Control.call(this, _extends$
|
|
6497
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6396
6498
|
tagName: 'span',
|
|
6397
6499
|
controlType: 'button',
|
|
6398
6500
|
classNameSuffix: 'talk'
|
|
@@ -6525,8 +6627,8 @@ function _async_to_generator$3(fn) {
|
|
|
6525
6627
|
});
|
|
6526
6628
|
};
|
|
6527
6629
|
}
|
|
6528
|
-
function _extends$
|
|
6529
|
-
_extends$
|
|
6630
|
+
function _extends$d() {
|
|
6631
|
+
_extends$d = Object.assign || function(target) {
|
|
6530
6632
|
for(var i = 1; i < arguments.length; i++){
|
|
6531
6633
|
var source = arguments[i];
|
|
6532
6634
|
for(var key in source){
|
|
@@ -6537,9 +6639,9 @@ function _extends$a() {
|
|
|
6537
6639
|
}
|
|
6538
6640
|
return target;
|
|
6539
6641
|
};
|
|
6540
|
-
return _extends$
|
|
6642
|
+
return _extends$d.apply(this, arguments);
|
|
6541
6643
|
}
|
|
6542
|
-
function _inherits$
|
|
6644
|
+
function _inherits$e(subClass, superClass) {
|
|
6543
6645
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6544
6646
|
throw new TypeError("Super expression must either be null or a function");
|
|
6545
6647
|
}
|
|
@@ -6550,14 +6652,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
6550
6652
|
configurable: true
|
|
6551
6653
|
}
|
|
6552
6654
|
});
|
|
6553
|
-
if (superClass) _set_prototype_of$
|
|
6655
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6554
6656
|
}
|
|
6555
|
-
function _set_prototype_of$
|
|
6556
|
-
_set_prototype_of$
|
|
6657
|
+
function _set_prototype_of$e(o, p) {
|
|
6658
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6557
6659
|
o.__proto__ = p;
|
|
6558
6660
|
return o;
|
|
6559
6661
|
};
|
|
6560
|
-
return _set_prototype_of$
|
|
6662
|
+
return _set_prototype_of$e(o, p);
|
|
6561
6663
|
}
|
|
6562
6664
|
function _ts_generator$3(thisArg, body) {
|
|
6563
6665
|
var f, y, t, _ = {
|
|
@@ -6657,10 +6759,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6657
6759
|
*
|
|
6658
6760
|
* @category Control
|
|
6659
6761
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
6660
|
-
_inherits$
|
|
6762
|
+
_inherits$e(Broadcast, Control);
|
|
6661
6763
|
function Broadcast(options) {
|
|
6662
6764
|
var _this;
|
|
6663
|
-
_this = Control.call(this, _extends$
|
|
6765
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6664
6766
|
tagName: 'span',
|
|
6665
6767
|
controlType: 'button',
|
|
6666
6768
|
classNameSuffix: 'broadcast'
|
|
@@ -6755,8 +6857,8 @@ function _async_to_generator$2(fn) {
|
|
|
6755
6857
|
});
|
|
6756
6858
|
};
|
|
6757
6859
|
}
|
|
6758
|
-
function _extends$
|
|
6759
|
-
_extends$
|
|
6860
|
+
function _extends$c() {
|
|
6861
|
+
_extends$c = Object.assign || function(target) {
|
|
6760
6862
|
for(var i = 1; i < arguments.length; i++){
|
|
6761
6863
|
var source = arguments[i];
|
|
6762
6864
|
for(var key in source){
|
|
@@ -6767,9 +6869,9 @@ function _extends$9() {
|
|
|
6767
6869
|
}
|
|
6768
6870
|
return target;
|
|
6769
6871
|
};
|
|
6770
|
-
return _extends$
|
|
6872
|
+
return _extends$c.apply(this, arguments);
|
|
6771
6873
|
}
|
|
6772
|
-
function _inherits$
|
|
6874
|
+
function _inherits$d(subClass, superClass) {
|
|
6773
6875
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6774
6876
|
throw new TypeError("Super expression must either be null or a function");
|
|
6775
6877
|
}
|
|
@@ -6780,14 +6882,14 @@ function _inherits$a(subClass, superClass) {
|
|
|
6780
6882
|
configurable: true
|
|
6781
6883
|
}
|
|
6782
6884
|
});
|
|
6783
|
-
if (superClass) _set_prototype_of$
|
|
6885
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
6784
6886
|
}
|
|
6785
|
-
function _set_prototype_of$
|
|
6786
|
-
_set_prototype_of$
|
|
6887
|
+
function _set_prototype_of$d(o, p) {
|
|
6888
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6787
6889
|
o.__proto__ = p;
|
|
6788
6890
|
return o;
|
|
6789
6891
|
};
|
|
6790
|
-
return _set_prototype_of$
|
|
6892
|
+
return _set_prototype_of$d(o, p);
|
|
6791
6893
|
}
|
|
6792
6894
|
function _ts_generator$2(thisArg, body) {
|
|
6793
6895
|
var f, y, t, _ = {
|
|
@@ -6887,10 +6989,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6887
6989
|
*
|
|
6888
6990
|
* @category Control
|
|
6889
6991
|
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
6890
|
-
_inherits$
|
|
6992
|
+
_inherits$d(AIChat, Control);
|
|
6891
6993
|
function AIChat(options) {
|
|
6892
6994
|
var _this;
|
|
6893
|
-
_this = Control.call(this, _extends$
|
|
6995
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
6894
6996
|
tagName: 'span',
|
|
6895
6997
|
controlType: 'button',
|
|
6896
6998
|
classNameSuffix: 'aichat'
|
|
@@ -6956,6 +7058,348 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6956
7058
|
return AIChat;
|
|
6957
7059
|
}(Control);
|
|
6958
7060
|
|
|
7061
|
+
function _extends$b() {
|
|
7062
|
+
_extends$b = Object.assign || function(target) {
|
|
7063
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7064
|
+
var source = arguments[i];
|
|
7065
|
+
for(var key in source){
|
|
7066
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7067
|
+
target[key] = source[key];
|
|
7068
|
+
}
|
|
7069
|
+
}
|
|
7070
|
+
}
|
|
7071
|
+
return target;
|
|
7072
|
+
};
|
|
7073
|
+
return _extends$b.apply(this, arguments);
|
|
7074
|
+
}
|
|
7075
|
+
function _inherits$c(subClass, superClass) {
|
|
7076
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7077
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7078
|
+
}
|
|
7079
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7080
|
+
constructor: {
|
|
7081
|
+
value: subClass,
|
|
7082
|
+
writable: true,
|
|
7083
|
+
configurable: true
|
|
7084
|
+
}
|
|
7085
|
+
});
|
|
7086
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7087
|
+
}
|
|
7088
|
+
function _set_prototype_of$c(o, p) {
|
|
7089
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7090
|
+
o.__proto__ = p;
|
|
7091
|
+
return o;
|
|
7092
|
+
};
|
|
7093
|
+
return _set_prototype_of$c(o, p);
|
|
7094
|
+
}
|
|
7095
|
+
/**
|
|
7096
|
+
* 直播按钮控件
|
|
7097
|
+
*
|
|
7098
|
+
* 点击切换到直播模式
|
|
7099
|
+
*
|
|
7100
|
+
* @category Control
|
|
7101
|
+
*/ var Live = /*#__PURE__*/ function(Control) {
|
|
7102
|
+
_inherits$c(Live, Control);
|
|
7103
|
+
function Live(options) {
|
|
7104
|
+
var _this;
|
|
7105
|
+
var _this___options_props1;
|
|
7106
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7107
|
+
tagName: 'span',
|
|
7108
|
+
controlType: 'button',
|
|
7109
|
+
classNameSuffix: 'live'
|
|
7110
|
+
})) || this;
|
|
7111
|
+
_this._options = options;
|
|
7112
|
+
_this._render();
|
|
7113
|
+
// H5 端不展示直播/回放切换按钮
|
|
7114
|
+
if (Utils.isMobile) {
|
|
7115
|
+
_this.$container.style.display = 'none';
|
|
7116
|
+
}
|
|
7117
|
+
// 初始化时根据当前播放模式确定激活状态
|
|
7118
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7119
|
+
return _this;
|
|
7120
|
+
}
|
|
7121
|
+
var _proto = Live.prototype;
|
|
7122
|
+
/**
|
|
7123
|
+
* 根据 urlInfo 同步激活状态
|
|
7124
|
+
* 在初始化和播放地址切换后调用
|
|
7125
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7126
|
+
var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
|
|
7127
|
+
this.active = shouldBeActive;
|
|
7128
|
+
};
|
|
7129
|
+
_proto._render = function _render() {
|
|
7130
|
+
var _this_locale;
|
|
7131
|
+
this.$container.innerHTML = IconComponents.live({
|
|
7132
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
|
|
7133
|
+
});
|
|
7134
|
+
};
|
|
7135
|
+
/**
|
|
7136
|
+
* 销毁
|
|
7137
|
+
*/ _proto.destroy = function destroy() {
|
|
7138
|
+
Control.prototype.destroy.call(this);
|
|
7139
|
+
};
|
|
7140
|
+
/**
|
|
7141
|
+
* 点击 Control 会触发
|
|
7142
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7143
|
+
var _this__options_onChange, _this__options;
|
|
7144
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7145
|
+
// 已经是直播模式则不触发
|
|
7146
|
+
if (this.active) {
|
|
7147
|
+
return;
|
|
7148
|
+
}
|
|
7149
|
+
this.active = true;
|
|
7150
|
+
this.emit(EVENTS.control.liveChange);
|
|
7151
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options);
|
|
7152
|
+
};
|
|
7153
|
+
return Live;
|
|
7154
|
+
}(Control);
|
|
7155
|
+
|
|
7156
|
+
function _extends$a() {
|
|
7157
|
+
_extends$a = Object.assign || function(target) {
|
|
7158
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7159
|
+
var source = arguments[i];
|
|
7160
|
+
for(var key in source){
|
|
7161
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7162
|
+
target[key] = source[key];
|
|
7163
|
+
}
|
|
7164
|
+
}
|
|
7165
|
+
}
|
|
7166
|
+
return target;
|
|
7167
|
+
};
|
|
7168
|
+
return _extends$a.apply(this, arguments);
|
|
7169
|
+
}
|
|
7170
|
+
function _inherits$b(subClass, superClass) {
|
|
7171
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7172
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7173
|
+
}
|
|
7174
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7175
|
+
constructor: {
|
|
7176
|
+
value: subClass,
|
|
7177
|
+
writable: true,
|
|
7178
|
+
configurable: true
|
|
7179
|
+
}
|
|
7180
|
+
});
|
|
7181
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7182
|
+
}
|
|
7183
|
+
function _set_prototype_of$b(o, p) {
|
|
7184
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7185
|
+
o.__proto__ = p;
|
|
7186
|
+
return o;
|
|
7187
|
+
};
|
|
7188
|
+
return _set_prototype_of$b(o, p);
|
|
7189
|
+
}
|
|
7190
|
+
/**
|
|
7191
|
+
* 回放下拉控件
|
|
7192
|
+
*
|
|
7193
|
+
* 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
|
|
7194
|
+
*
|
|
7195
|
+
* @category Control
|
|
7196
|
+
*/ var RecDropdown = /*#__PURE__*/ function(Control) {
|
|
7197
|
+
_inherits$b(RecDropdown, Control);
|
|
7198
|
+
function RecDropdown(options) {
|
|
7199
|
+
var _this;
|
|
7200
|
+
var _options_props, _this___options_props1;
|
|
7201
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
7202
|
+
tagName: 'span',
|
|
7203
|
+
controlType: 'button',
|
|
7204
|
+
classNameSuffix: 'rec-dropdown'
|
|
7205
|
+
})) || this;
|
|
7206
|
+
_this._options = options;
|
|
7207
|
+
// H5 端不展示直播/回放切换按钮
|
|
7208
|
+
if (Utils.isMobile) {
|
|
7209
|
+
_this.$container.style.display = 'none';
|
|
7210
|
+
}
|
|
7211
|
+
// 初始化时根据 urlInfo 确定当前回放类型和激活状态
|
|
7212
|
+
_this._recType = options.recType || ((_options_props = options.props) == null ? void 0 : _options_props.recType) || 'cloudRec';
|
|
7213
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7214
|
+
_this._render();
|
|
7215
|
+
_this._initPicker();
|
|
7216
|
+
return _this;
|
|
7217
|
+
}
|
|
7218
|
+
var _proto = RecDropdown.prototype;
|
|
7219
|
+
/**
|
|
7220
|
+
* 根据 urlInfo 同步激活状态和回放类型
|
|
7221
|
+
* 在初始化和播放地址切换后调用
|
|
7222
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7223
|
+
if (urlInfo && urlInfo.type === 'rec') {
|
|
7224
|
+
var _urlInfo_searchParams1;
|
|
7225
|
+
this.active = true;
|
|
7226
|
+
if (urlInfo.recType === 'cloud' && ((_urlInfo_searchParams1 = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams1.busType) === '7') {
|
|
7227
|
+
this._recType = 'cloudRecord';
|
|
7228
|
+
} else if (urlInfo.recType === 'cloud') {
|
|
7229
|
+
this._recType = 'cloudRec';
|
|
7230
|
+
} else {
|
|
7231
|
+
this._recType = 'rec';
|
|
7232
|
+
}
|
|
7233
|
+
this._activeOption(this._recType);
|
|
7234
|
+
} else {
|
|
7235
|
+
this.active = false;
|
|
7236
|
+
}
|
|
7237
|
+
};
|
|
7238
|
+
_proto._render = function _render() {
|
|
7239
|
+
var _this_locale;
|
|
7240
|
+
this.$container.innerHTML = IconComponents.recDropdown({
|
|
7241
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_REC_DROPDOWN) || '回放'
|
|
7242
|
+
});
|
|
7243
|
+
};
|
|
7244
|
+
_proto._initPicker = function _initPicker() {
|
|
7245
|
+
var _this = this;
|
|
7246
|
+
this._picker = new Picker(this.$container, {
|
|
7247
|
+
getPopupContainer: function() {
|
|
7248
|
+
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7249
|
+
},
|
|
7250
|
+
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
7251
|
+
isMobile: Utils.isMobile,
|
|
7252
|
+
wrapClassName: "" + PREFIX_CLASS + "-rec-dropdown-picker",
|
|
7253
|
+
placement: 'bottom',
|
|
7254
|
+
offset: [
|
|
7255
|
+
0,
|
|
7256
|
+
4
|
|
7257
|
+
]
|
|
7258
|
+
});
|
|
7259
|
+
this._picker.innerHTML(this._getPanelHTML());
|
|
7260
|
+
this._activeOption(this._recType);
|
|
7261
|
+
this._bindPanelEvents();
|
|
7262
|
+
};
|
|
7263
|
+
_proto._getPanelHTML = function _getPanelHTML() {
|
|
7264
|
+
var _this_locale, _this_locale1, _this_locale2;
|
|
7265
|
+
var cloudRecLabel = ((_this_locale = this.locale) == null ? void 0 : _this_locale.REC_DROPDOWN_CLOUD_REC) || '云存储';
|
|
7266
|
+
var cloudRecordLabel = ((_this_locale1 = this.locale) == null ? void 0 : _this_locale1.REC_DROPDOWN_CLOUD_RECORD) || '云录制';
|
|
7267
|
+
var localRecLabel = ((_this_locale2 = this.locale) == null ? void 0 : _this_locale2.REC_DROPDOWN_LOCAL_REC) || '本地回放';
|
|
7268
|
+
return '<div class="' + PREFIX_CLASS + '-rec-dropdown-panel">\n <ul class="' + PREFIX_CLASS + '-rec-dropdown-list">\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRec">\n <span>' + cloudRecLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRecord">\n <span>' + cloudRecordLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="rec">\n <span>' + localRecLabel + "</span>\n </li>\n </ul>\n </div>";
|
|
7269
|
+
};
|
|
7270
|
+
_proto._bindPanelEvents = function _bindPanelEvents() {
|
|
7271
|
+
var _this = this;
|
|
7272
|
+
this._delegation = delegate(this._picker.$body, "." + PREFIX_CLASS + "-rec-dropdown-item", 'click', function(e) {
|
|
7273
|
+
e.stopPropagation();
|
|
7274
|
+
var type = e.delegateTarget.getAttribute('data-type');
|
|
7275
|
+
if (type) {
|
|
7276
|
+
var _this__options_onChange, _this__options;
|
|
7277
|
+
_this._recType = type;
|
|
7278
|
+
_this._activeOption(type);
|
|
7279
|
+
// 设置自身为激活状态
|
|
7280
|
+
_this.active = true;
|
|
7281
|
+
_this.emit(EVENTS.control.recDropdownChange, type);
|
|
7282
|
+
(_this__options = _this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, type);
|
|
7283
|
+
_this._picker.open = false;
|
|
7284
|
+
}
|
|
7285
|
+
});
|
|
7286
|
+
};
|
|
7287
|
+
_proto._activeOption = function _activeOption(type) {
|
|
7288
|
+
var _this__picker;
|
|
7289
|
+
if ((_this__picker = this._picker) == null ? void 0 : _this__picker.$body) {
|
|
7290
|
+
var items = this._picker.$body.querySelectorAll("." + PREFIX_CLASS + "-rec-dropdown-item");
|
|
7291
|
+
items.forEach(function(item) {
|
|
7292
|
+
item.classList.remove("" + PREFIX_CLASS + "-active");
|
|
7293
|
+
});
|
|
7294
|
+
var target = this._picker.$body.querySelector("." + PREFIX_CLASS + '-rec-dropdown-item[data-type="' + type + '"]');
|
|
7295
|
+
target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
|
|
7296
|
+
}
|
|
7297
|
+
};
|
|
7298
|
+
/**
|
|
7299
|
+
* 销毁
|
|
7300
|
+
*/ _proto.destroy = function destroy() {
|
|
7301
|
+
var _this__delegation_destroy, _this__delegation;
|
|
7302
|
+
(_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
|
|
7303
|
+
this._delegation = null;
|
|
7304
|
+
if (this._picker) {
|
|
7305
|
+
this._picker.destroy();
|
|
7306
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7307
|
+
this._picker = null;
|
|
7308
|
+
}
|
|
7309
|
+
Control.prototype.destroy.call(this);
|
|
7310
|
+
};
|
|
7311
|
+
/**
|
|
7312
|
+
* 点击 Control 会触发(移动端 click 触发 picker)
|
|
7313
|
+
*/ // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7314
|
+
_proto._onControlClick = function _onControlClick(_e) {
|
|
7315
|
+
// picker 自行处理 click/hover,这里不额外处理
|
|
7316
|
+
};
|
|
7317
|
+
return RecDropdown;
|
|
7318
|
+
}(Control);
|
|
7319
|
+
|
|
7320
|
+
function _extends$9() {
|
|
7321
|
+
_extends$9 = Object.assign || function(target) {
|
|
7322
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7323
|
+
var source = arguments[i];
|
|
7324
|
+
for(var key in source){
|
|
7325
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7326
|
+
target[key] = source[key];
|
|
7327
|
+
}
|
|
7328
|
+
}
|
|
7329
|
+
}
|
|
7330
|
+
return target;
|
|
7331
|
+
};
|
|
7332
|
+
return _extends$9.apply(this, arguments);
|
|
7333
|
+
}
|
|
7334
|
+
function _inherits$a(subClass, superClass) {
|
|
7335
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7336
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7337
|
+
}
|
|
7338
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7339
|
+
constructor: {
|
|
7340
|
+
value: subClass,
|
|
7341
|
+
writable: true,
|
|
7342
|
+
configurable: true
|
|
7343
|
+
}
|
|
7344
|
+
});
|
|
7345
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
7346
|
+
}
|
|
7347
|
+
function _set_prototype_of$a(o, p) {
|
|
7348
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7349
|
+
o.__proto__ = p;
|
|
7350
|
+
return o;
|
|
7351
|
+
};
|
|
7352
|
+
return _set_prototype_of$a(o, p);
|
|
7353
|
+
}
|
|
7354
|
+
/**
|
|
7355
|
+
* 告警消息按钮控件
|
|
7356
|
+
*
|
|
7357
|
+
* 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
|
|
7358
|
+
*
|
|
7359
|
+
* @category Control
|
|
7360
|
+
*/ var AlarmMessage = /*#__PURE__*/ function(Control) {
|
|
7361
|
+
_inherits$a(AlarmMessage, Control);
|
|
7362
|
+
function AlarmMessage(options) {
|
|
7363
|
+
var _this;
|
|
7364
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
7365
|
+
tagName: 'span',
|
|
7366
|
+
controlType: 'button',
|
|
7367
|
+
classNameSuffix: 'alarm-message'
|
|
7368
|
+
})) || this, _this._panelOpen = false;
|
|
7369
|
+
_this._options = options;
|
|
7370
|
+
_this._render();
|
|
7371
|
+
_this.on(EVENTS.alarmMessageChange, function(open) {
|
|
7372
|
+
_this._panelOpen = open;
|
|
7373
|
+
});
|
|
7374
|
+
return _this;
|
|
7375
|
+
}
|
|
7376
|
+
var _proto = AlarmMessage.prototype;
|
|
7377
|
+
_proto._render = function _render() {
|
|
7378
|
+
var _this_locale;
|
|
7379
|
+
this.$container.innerHTML = IconComponents.alarmMessage({
|
|
7380
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
|
|
7381
|
+
});
|
|
7382
|
+
};
|
|
7383
|
+
/**
|
|
7384
|
+
* 销毁
|
|
7385
|
+
*/ _proto.destroy = function destroy() {
|
|
7386
|
+
if (this._panelOpen) {
|
|
7387
|
+
this.emit(EVENTS.control.alarmMessageChange, false);
|
|
7388
|
+
}
|
|
7389
|
+
Control.prototype.destroy.call(this);
|
|
7390
|
+
};
|
|
7391
|
+
/**
|
|
7392
|
+
* 点击 Control 会触发
|
|
7393
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7394
|
+
var _this__options_onChange, _this__options;
|
|
7395
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7396
|
+
this._panelOpen = !this._panelOpen;
|
|
7397
|
+
this.emit(EVENTS.control.alarmMessageChange, this._panelOpen);
|
|
7398
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this._panelOpen);
|
|
7399
|
+
};
|
|
7400
|
+
return AlarmMessage;
|
|
7401
|
+
}(Control);
|
|
7402
|
+
|
|
6959
7403
|
function _defineProperties$1(target, props) {
|
|
6960
7404
|
for(var i = 0; i < props.length; i++){
|
|
6961
7405
|
var descriptor = props[i];
|
|
@@ -7948,6 +8392,9 @@ var Controls = {
|
|
|
7948
8392
|
talk: Talk,
|
|
7949
8393
|
broadcast: Broadcast,
|
|
7950
8394
|
aiChat: AIChat,
|
|
8395
|
+
live: Live,
|
|
8396
|
+
recDropdown: RecDropdown,
|
|
8397
|
+
alarmMessage: AlarmMessage,
|
|
7951
8398
|
zoom: Zoom,
|
|
7952
8399
|
definition: Definition,
|
|
7953
8400
|
fullscreen: Fullscreen,
|
|
@@ -8481,7 +8928,10 @@ function _ts_generator$1(thisArg, body) {
|
|
|
8481
8928
|
// 需要权限的控件
|
|
8482
8929
|
var AUTH_KEY = [
|
|
8483
8930
|
'ptz',
|
|
8484
|
-
'aiChat'
|
|
8931
|
+
'aiChat',
|
|
8932
|
+
'live',
|
|
8933
|
+
'recDropdown',
|
|
8934
|
+
'alarmMessage'
|
|
8485
8935
|
];
|
|
8486
8936
|
/**
|
|
8487
8937
|
* 渲染控件
|
|
@@ -8561,7 +9011,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
8561
9011
|
}
|
|
8562
9012
|
function _renderTheme(theme, data) {
|
|
8563
9013
|
return _async_to_generator$1(function() {
|
|
8564
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9014
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_controls2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
|
|
8565
9015
|
return _ts_generator$1(this, function(_state) {
|
|
8566
9016
|
switch(_state.label){
|
|
8567
9017
|
case 0:
|
|
@@ -8702,8 +9152,8 @@ function _renderTheme(theme, data) {
|
|
|
8702
9152
|
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_filterThemeData_footer_btnList = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _filterThemeData_footer_btnList : []);
|
|
8703
9153
|
// FIXME: 这个逻辑实际上是有问题的
|
|
8704
9154
|
_needTimeLine = list.some(function(item) {
|
|
8705
|
-
return REC_GROUP.includes(item.iconId);
|
|
8706
|
-
});
|
|
9155
|
+
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
9156
|
+
}) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
|
|
8707
9157
|
theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
|
|
8708
9158
|
// PC 单独渲染timeLine
|
|
8709
9159
|
if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
|
|
@@ -8736,6 +9186,23 @@ function _renderTheme(theme, data) {
|
|
|
8736
9186
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
8737
9187
|
});
|
|
8738
9188
|
}
|
|
9189
|
+
// 移动端:在 rec 控件旁渲染 alarmMessage 按钮
|
|
9190
|
+
if (theme.options.alarmMessageOptions !== null && !((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['alarmMessageControl'])) {
|
|
9191
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9192
|
+
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9193
|
+
rootContainer: theme.$container,
|
|
9194
|
+
getPopupContainer: function() {
|
|
9195
|
+
var _theme__mobileExtend;
|
|
9196
|
+
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9197
|
+
},
|
|
9198
|
+
language: theme.options.language || 'zh',
|
|
9199
|
+
locales: theme.i18n.translations,
|
|
9200
|
+
sdkType: theme.options.sdkType,
|
|
9201
|
+
urlInfo: theme.urlInfo
|
|
9202
|
+
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options.alarmMessageOptions) || {}, {
|
|
9203
|
+
props: props
|
|
9204
|
+
}));
|
|
9205
|
+
}
|
|
8739
9206
|
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
8740
9207
|
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
8741
9208
|
}
|
|
@@ -8746,6 +9213,10 @@ function _renderTheme(theme, data) {
|
|
|
8746
9213
|
}
|
|
8747
9214
|
theme.emit(EVENTS.control.mountedControls);
|
|
8748
9215
|
if (!theme.playing) theme._disabled(true);
|
|
9216
|
+
// 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
|
|
9217
|
+
if (theme._loading && theme._loadingControl) {
|
|
9218
|
+
theme._loadingControl.show();
|
|
9219
|
+
}
|
|
8749
9220
|
_controlEventemitter(theme);
|
|
8750
9221
|
return [
|
|
8751
9222
|
2
|
|
@@ -10353,6 +10824,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10353
10824
|
zh: zh,
|
|
10354
10825
|
en: en
|
|
10355
10826
|
};
|
|
10356
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.
|
|
10827
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.3';
|
|
10357
10828
|
|
|
10358
10829
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|