@ezuikit/player-theme 3.0.0-beta.5 → 3.0.1-beta.4
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 +696 -225
- package/dist/index.esm.js +696 -225
- package/dist/index.umd.js +697 -226
- 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.
|
|
3
|
-
* Copyright (c) 2026-05-
|
|
2
|
+
* @ezuikit/player-theme v3.0.1-beta.4
|
|
3
|
+
* Copyright (c) 2026-05-18 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;
|
|
@@ -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',
|
|
@@ -3295,6 +3331,21 @@ var en = {
|
|
|
3295
3331
|
iconId: 'deviceName',
|
|
3296
3332
|
part: 'left',
|
|
3297
3333
|
isrender: 1
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
iconId: 'live',
|
|
3337
|
+
part: 'right',
|
|
3338
|
+
isrender: 1
|
|
3339
|
+
},
|
|
3340
|
+
{
|
|
3341
|
+
iconId: 'recDropdown',
|
|
3342
|
+
part: 'right',
|
|
3343
|
+
isrender: 1
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
iconId: 'alarmMessage',
|
|
3347
|
+
part: 'right',
|
|
3348
|
+
isrender: 1
|
|
3298
3349
|
}
|
|
3299
3350
|
]
|
|
3300
3351
|
},
|
|
@@ -3382,19 +3433,19 @@ var en = {
|
|
|
3382
3433
|
isrender: 1
|
|
3383
3434
|
},
|
|
3384
3435
|
{
|
|
3385
|
-
iconId: '
|
|
3436
|
+
iconId: 'live',
|
|
3386
3437
|
part: 'right',
|
|
3387
3438
|
defaultActive: 0,
|
|
3388
3439
|
isrender: 1
|
|
3389
3440
|
},
|
|
3390
3441
|
{
|
|
3391
|
-
iconId: '
|
|
3442
|
+
iconId: 'recDropdown',
|
|
3392
3443
|
part: 'right',
|
|
3393
3444
|
defaultActive: 0,
|
|
3394
3445
|
isrender: 1
|
|
3395
3446
|
},
|
|
3396
3447
|
{
|
|
3397
|
-
iconId: '
|
|
3448
|
+
iconId: 'alarmMessage',
|
|
3398
3449
|
part: 'right',
|
|
3399
3450
|
defaultActive: 0,
|
|
3400
3451
|
isrender: 1
|
|
@@ -3797,7 +3848,7 @@ var en = {
|
|
|
3797
3848
|
voice: voice
|
|
3798
3849
|
};
|
|
3799
3850
|
|
|
3800
|
-
function _inherits$
|
|
3851
|
+
function _inherits$o(subClass, superClass) {
|
|
3801
3852
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3802
3853
|
throw new TypeError("Super expression must either be null or a function");
|
|
3803
3854
|
}
|
|
@@ -3808,20 +3859,20 @@ function _inherits$l(subClass, superClass) {
|
|
|
3808
3859
|
configurable: true
|
|
3809
3860
|
}
|
|
3810
3861
|
});
|
|
3811
|
-
if (superClass) _set_prototype_of$
|
|
3862
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
3812
3863
|
}
|
|
3813
|
-
function _set_prototype_of$
|
|
3814
|
-
_set_prototype_of$
|
|
3864
|
+
function _set_prototype_of$o(o, p) {
|
|
3865
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3815
3866
|
o.__proto__ = p;
|
|
3816
3867
|
return o;
|
|
3817
3868
|
};
|
|
3818
|
-
return _set_prototype_of$
|
|
3869
|
+
return _set_prototype_of$o(o, p);
|
|
3819
3870
|
}
|
|
3820
3871
|
/**
|
|
3821
3872
|
* 截图控件
|
|
3822
3873
|
* @category Content
|
|
3823
3874
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3824
|
-
_inherits$
|
|
3875
|
+
_inherits$o(Content, EventEmitter);
|
|
3825
3876
|
function Content(options) {
|
|
3826
3877
|
var _this;
|
|
3827
3878
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3936,8 +3987,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
3936
3987
|
return Content;
|
|
3937
3988
|
}(EventEmitter);
|
|
3938
3989
|
|
|
3939
|
-
function _extends$
|
|
3940
|
-
_extends$
|
|
3990
|
+
function _extends$o() {
|
|
3991
|
+
_extends$o = Object.assign || function(target) {
|
|
3941
3992
|
for(var i = 1; i < arguments.length; i++){
|
|
3942
3993
|
var source = arguments[i];
|
|
3943
3994
|
for(var key in source){
|
|
@@ -3948,9 +3999,9 @@ function _extends$l() {
|
|
|
3948
3999
|
}
|
|
3949
4000
|
return target;
|
|
3950
4001
|
};
|
|
3951
|
-
return _extends$
|
|
4002
|
+
return _extends$o.apply(this, arguments);
|
|
3952
4003
|
}
|
|
3953
|
-
function _inherits$
|
|
4004
|
+
function _inherits$n(subClass, superClass) {
|
|
3954
4005
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3955
4006
|
throw new TypeError("Super expression must either be null or a function");
|
|
3956
4007
|
}
|
|
@@ -3961,23 +4012,23 @@ function _inherits$k(subClass, superClass) {
|
|
|
3961
4012
|
configurable: true
|
|
3962
4013
|
}
|
|
3963
4014
|
});
|
|
3964
|
-
if (superClass) _set_prototype_of$
|
|
4015
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
3965
4016
|
}
|
|
3966
|
-
function _set_prototype_of$
|
|
3967
|
-
_set_prototype_of$
|
|
4017
|
+
function _set_prototype_of$n(o, p) {
|
|
4018
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3968
4019
|
o.__proto__ = p;
|
|
3969
4020
|
return o;
|
|
3970
4021
|
};
|
|
3971
|
-
return _set_prototype_of$
|
|
4022
|
+
return _set_prototype_of$n(o, p);
|
|
3972
4023
|
}
|
|
3973
4024
|
/**
|
|
3974
4025
|
* 更多控件
|
|
3975
4026
|
* @category Control
|
|
3976
4027
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3977
|
-
_inherits$
|
|
4028
|
+
_inherits$n(More, Control);
|
|
3978
4029
|
function More(options) {
|
|
3979
4030
|
var _this;
|
|
3980
|
-
_this = Control.call(this, _extends$
|
|
4031
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
3981
4032
|
tagName: 'span',
|
|
3982
4033
|
controlType: 'button',
|
|
3983
4034
|
classNameSuffix: 'more'
|
|
@@ -4193,6 +4244,15 @@ function debounce(func, wait) {
|
|
|
4193
4244
|
}
|
|
4194
4245
|
});
|
|
4195
4246
|
// =======================================================
|
|
4247
|
+
// 告警消息
|
|
4248
|
+
// =======================================================
|
|
4249
|
+
theme.on(EVENTS.alarmMessageChange, function(active) {
|
|
4250
|
+
var _theme_controls;
|
|
4251
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
|
|
4252
|
+
theme.controls.alarmMessageControl._panelOpen = active;
|
|
4253
|
+
}
|
|
4254
|
+
});
|
|
4255
|
+
// =======================================================
|
|
4196
4256
|
// 录制
|
|
4197
4257
|
// =======================================================
|
|
4198
4258
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4288,7 +4348,7 @@ function debounce(func, wait) {
|
|
|
4288
4348
|
*
|
|
4289
4349
|
* @param theme - Theme
|
|
4290
4350
|
*/ function _controlEventemitter(theme) {
|
|
4291
|
-
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;
|
|
4351
|
+
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;
|
|
4292
4352
|
// Controls
|
|
4293
4353
|
if (theme._recFooter) {
|
|
4294
4354
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4399,8 +4459,50 @@ function debounce(func, wait) {
|
|
|
4399
4459
|
theme.emit(EVENTS.control.aichatDestroy);
|
|
4400
4460
|
});
|
|
4401
4461
|
}
|
|
4462
|
+
// 直播按钮
|
|
4463
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
|
|
4464
|
+
theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
|
|
4465
|
+
var _theme_controls;
|
|
4466
|
+
// 直接设置回放下拉控件为非激活状态
|
|
4467
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
|
|
4468
|
+
theme.controls.recDropdownControl.active = false;
|
|
4469
|
+
}
|
|
4470
|
+
theme.emit(EVENTS.control.liveChange);
|
|
4471
|
+
});
|
|
4472
|
+
}
|
|
4473
|
+
// 回放下拉
|
|
4474
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
|
|
4475
|
+
theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
|
|
4476
|
+
var _theme_controls;
|
|
4477
|
+
// 直接设置直播控件为非激活状态
|
|
4478
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4479
|
+
theme.controls.liveControl.active = false;
|
|
4480
|
+
}
|
|
4481
|
+
theme.emit(EVENTS.control.recDropdownChange, type);
|
|
4482
|
+
});
|
|
4483
|
+
}
|
|
4484
|
+
// 告警消息
|
|
4485
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
|
|
4486
|
+
theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
|
|
4487
|
+
theme.emit(EVENTS.control.alarmMessageChange, active);
|
|
4488
|
+
});
|
|
4489
|
+
}
|
|
4490
|
+
// 播放地址切换后同步 Live/RecDropdown 激活状态
|
|
4491
|
+
// changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
|
|
4492
|
+
if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
|
|
4493
|
+
theme.on(EVENTS.firstFrameDisplay, function() {
|
|
4494
|
+
var _theme_controls, _theme_controls1;
|
|
4495
|
+
var urlInfo = theme.urlInfo;
|
|
4496
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4497
|
+
theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
|
|
4498
|
+
}
|
|
4499
|
+
if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
|
|
4500
|
+
theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
|
|
4501
|
+
}
|
|
4502
|
+
});
|
|
4503
|
+
}
|
|
4402
4504
|
// 缩放控件
|
|
4403
|
-
if ((
|
|
4505
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
|
|
4404
4506
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4405
4507
|
if (theme.zoom !== value) {
|
|
4406
4508
|
theme.zoom = value;
|
|
@@ -4422,7 +4524,7 @@ function debounce(func, wait) {
|
|
|
4422
4524
|
});
|
|
4423
4525
|
}
|
|
4424
4526
|
// 清晰度控件
|
|
4425
|
-
if ((
|
|
4527
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
|
|
4426
4528
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4427
4529
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4428
4530
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4435,7 +4537,7 @@ function debounce(func, wait) {
|
|
|
4435
4537
|
});
|
|
4436
4538
|
}
|
|
4437
4539
|
// 倍速控件
|
|
4438
|
-
if ((
|
|
4540
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
|
|
4439
4541
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4440
4542
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4441
4543
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4448,7 +4550,7 @@ function debounce(func, wait) {
|
|
|
4448
4550
|
});
|
|
4449
4551
|
}
|
|
4450
4552
|
// 截图控件
|
|
4451
|
-
if ((
|
|
4553
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
|
|
4452
4554
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4453
4555
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4454
4556
|
});
|
|
@@ -4457,25 +4559,25 @@ function debounce(func, wait) {
|
|
|
4457
4559
|
});
|
|
4458
4560
|
}
|
|
4459
4561
|
// 全屏控件
|
|
4460
|
-
if ((
|
|
4562
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
|
|
4461
4563
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4462
4564
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4463
4565
|
});
|
|
4464
4566
|
}
|
|
4465
4567
|
// 全局全屏控件
|
|
4466
|
-
if ((
|
|
4568
|
+
if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
|
|
4467
4569
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4468
4570
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4469
4571
|
});
|
|
4470
4572
|
}
|
|
4471
4573
|
// 设备信息控件
|
|
4472
|
-
if ((
|
|
4574
|
+
if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
|
|
4473
4575
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4474
4576
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4475
4577
|
});
|
|
4476
4578
|
}
|
|
4477
4579
|
// 回放类型切换控件
|
|
4478
|
-
if ((
|
|
4580
|
+
if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
|
|
4479
4581
|
// prettier-ignore
|
|
4480
4582
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4481
4583
|
if (theme.recType !== type) {
|
|
@@ -4496,7 +4598,7 @@ function debounce(func, wait) {
|
|
|
4496
4598
|
});
|
|
4497
4599
|
}
|
|
4498
4600
|
// 时间轴控件
|
|
4499
|
-
if ((
|
|
4601
|
+
if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
|
|
4500
4602
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4501
4603
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4502
4604
|
});
|
|
@@ -4513,7 +4615,7 @@ function debounce(func, wait) {
|
|
|
4513
4615
|
});
|
|
4514
4616
|
}
|
|
4515
4617
|
// 日历控件
|
|
4516
|
-
if ((
|
|
4618
|
+
if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
|
|
4517
4619
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4518
4620
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4519
4621
|
});
|
|
@@ -4608,8 +4710,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4608
4710
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4609
4711
|
return Constructor;
|
|
4610
4712
|
}
|
|
4611
|
-
function _extends$
|
|
4612
|
-
_extends$
|
|
4713
|
+
function _extends$n() {
|
|
4714
|
+
_extends$n = Object.assign || function(target) {
|
|
4613
4715
|
for(var i = 1; i < arguments.length; i++){
|
|
4614
4716
|
var source = arguments[i];
|
|
4615
4717
|
for(var key in source){
|
|
@@ -4620,9 +4722,9 @@ function _extends$k() {
|
|
|
4620
4722
|
}
|
|
4621
4723
|
return target;
|
|
4622
4724
|
};
|
|
4623
|
-
return _extends$
|
|
4725
|
+
return _extends$n.apply(this, arguments);
|
|
4624
4726
|
}
|
|
4625
|
-
function _inherits$
|
|
4727
|
+
function _inherits$m(subClass, superClass) {
|
|
4626
4728
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4627
4729
|
throw new TypeError("Super expression must either be null or a function");
|
|
4628
4730
|
}
|
|
@@ -4633,14 +4735,14 @@ function _inherits$j(subClass, superClass) {
|
|
|
4633
4735
|
configurable: true
|
|
4634
4736
|
}
|
|
4635
4737
|
});
|
|
4636
|
-
if (superClass) _set_prototype_of$
|
|
4738
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
4637
4739
|
}
|
|
4638
|
-
function _set_prototype_of$
|
|
4639
|
-
_set_prototype_of$
|
|
4740
|
+
function _set_prototype_of$m(o, p) {
|
|
4741
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4640
4742
|
o.__proto__ = p;
|
|
4641
4743
|
return o;
|
|
4642
4744
|
};
|
|
4643
|
-
return _set_prototype_of$
|
|
4745
|
+
return _set_prototype_of$m(o, p);
|
|
4644
4746
|
}
|
|
4645
4747
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4646
4748
|
open: false,
|
|
@@ -4650,10 +4752,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4650
4752
|
* 电子放大控件
|
|
4651
4753
|
* @category Control
|
|
4652
4754
|
*/ var Zoom = /*#__PURE__*/ function(Control) {
|
|
4653
|
-
_inherits$
|
|
4755
|
+
_inherits$m(Zoom, Control);
|
|
4654
4756
|
function Zoom(options) {
|
|
4655
4757
|
var _this;
|
|
4656
|
-
_this = Control.call(this, _extends$
|
|
4758
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
4657
4759
|
tagName: 'span',
|
|
4658
4760
|
controlType: 'button',
|
|
4659
4761
|
classNameSuffix: 'zoom'
|
|
@@ -4781,8 +4883,8 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4781
4883
|
return Zoom;
|
|
4782
4884
|
}(Control);
|
|
4783
4885
|
|
|
4784
|
-
function _extends$
|
|
4785
|
-
_extends$
|
|
4886
|
+
function _extends$m() {
|
|
4887
|
+
_extends$m = Object.assign || function(target) {
|
|
4786
4888
|
for(var i = 1; i < arguments.length; i++){
|
|
4787
4889
|
var source = arguments[i];
|
|
4788
4890
|
for(var key in source){
|
|
@@ -4793,10 +4895,10 @@ function _extends$j() {
|
|
|
4793
4895
|
}
|
|
4794
4896
|
return target;
|
|
4795
4897
|
};
|
|
4796
|
-
return _extends$
|
|
4898
|
+
return _extends$m.apply(this, arguments);
|
|
4797
4899
|
}
|
|
4798
4900
|
function __zoom(theme, container, options) {
|
|
4799
|
-
theme.zoomUtil = new Zoom$1(container, _extends$
|
|
4901
|
+
theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
|
|
4800
4902
|
min: 1,
|
|
4801
4903
|
onChange: function(zoom, reset) {
|
|
4802
4904
|
if (zoom !== theme._zoom) {
|
|
@@ -5021,8 +5123,8 @@ function _async_to_generator$5(fn) {
|
|
|
5021
5123
|
});
|
|
5022
5124
|
};
|
|
5023
5125
|
}
|
|
5024
|
-
function _extends$
|
|
5025
|
-
_extends$
|
|
5126
|
+
function _extends$l() {
|
|
5127
|
+
_extends$l = Object.assign || function(target) {
|
|
5026
5128
|
for(var i = 1; i < arguments.length; i++){
|
|
5027
5129
|
var source = arguments[i];
|
|
5028
5130
|
for(var key in source){
|
|
@@ -5033,7 +5135,7 @@ function _extends$i() {
|
|
|
5033
5135
|
}
|
|
5034
5136
|
return target;
|
|
5035
5137
|
};
|
|
5036
|
-
return _extends$
|
|
5138
|
+
return _extends$l.apply(this, arguments);
|
|
5037
5139
|
}
|
|
5038
5140
|
function _ts_generator$5(thisArg, body) {
|
|
5039
5141
|
var f, y, t, _ = {
|
|
@@ -5161,7 +5263,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5161
5263
|
}
|
|
5162
5264
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5163
5265
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5164
|
-
recControls.push(recControls[0] ? _extends$
|
|
5266
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5165
5267
|
part: recControls[0].part
|
|
5166
5268
|
}) : item);
|
|
5167
5269
|
return false;
|
|
@@ -5184,7 +5286,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5184
5286
|
}
|
|
5185
5287
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5186
5288
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5187
|
-
recControls.push(recControls[0] ? _extends$
|
|
5289
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5188
5290
|
part: recControls[0].part
|
|
5189
5291
|
}) : item);
|
|
5190
5292
|
return false;
|
|
@@ -5435,8 +5537,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5435
5537
|
return Component;
|
|
5436
5538
|
}();
|
|
5437
5539
|
|
|
5438
|
-
function _extends$
|
|
5439
|
-
_extends$
|
|
5540
|
+
function _extends$k() {
|
|
5541
|
+
_extends$k = Object.assign || function(target) {
|
|
5440
5542
|
for(var i = 1; i < arguments.length; i++){
|
|
5441
5543
|
var source = arguments[i];
|
|
5442
5544
|
for(var key in source){
|
|
@@ -5447,9 +5549,9 @@ function _extends$h() {
|
|
|
5447
5549
|
}
|
|
5448
5550
|
return target;
|
|
5449
5551
|
};
|
|
5450
|
-
return _extends$
|
|
5552
|
+
return _extends$k.apply(this, arguments);
|
|
5451
5553
|
}
|
|
5452
|
-
function _inherits$
|
|
5554
|
+
function _inherits$l(subClass, superClass) {
|
|
5453
5555
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5454
5556
|
throw new TypeError("Super expression must either be null or a function");
|
|
5455
5557
|
}
|
|
@@ -5460,28 +5562,28 @@ function _inherits$i(subClass, superClass) {
|
|
|
5460
5562
|
configurable: true
|
|
5461
5563
|
}
|
|
5462
5564
|
});
|
|
5463
|
-
if (superClass) _set_prototype_of$
|
|
5565
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
5464
5566
|
}
|
|
5465
|
-
function _set_prototype_of$
|
|
5466
|
-
_set_prototype_of$
|
|
5567
|
+
function _set_prototype_of$l(o, p) {
|
|
5568
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5467
5569
|
o.__proto__ = p;
|
|
5468
5570
|
return o;
|
|
5469
5571
|
};
|
|
5470
|
-
return _set_prototype_of$
|
|
5572
|
+
return _set_prototype_of$l(o, p);
|
|
5471
5573
|
}
|
|
5472
5574
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
5473
|
-
_inherits$
|
|
5575
|
+
_inherits$l(Footer, Component);
|
|
5474
5576
|
function Footer(options) {
|
|
5475
5577
|
if (options === void 0) options = {};
|
|
5476
|
-
return Component.call(this, _extends$
|
|
5578
|
+
return Component.call(this, _extends$k({}, options, {
|
|
5477
5579
|
cType: 'footer'
|
|
5478
5580
|
})) || this;
|
|
5479
5581
|
}
|
|
5480
5582
|
return Footer;
|
|
5481
5583
|
}(Component);
|
|
5482
5584
|
|
|
5483
|
-
function _extends$
|
|
5484
|
-
_extends$
|
|
5585
|
+
function _extends$j() {
|
|
5586
|
+
_extends$j = Object.assign || function(target) {
|
|
5485
5587
|
for(var i = 1; i < arguments.length; i++){
|
|
5486
5588
|
var source = arguments[i];
|
|
5487
5589
|
for(var key in source){
|
|
@@ -5492,9 +5594,9 @@ function _extends$g() {
|
|
|
5492
5594
|
}
|
|
5493
5595
|
return target;
|
|
5494
5596
|
};
|
|
5495
|
-
return _extends$
|
|
5597
|
+
return _extends$j.apply(this, arguments);
|
|
5496
5598
|
}
|
|
5497
|
-
function _inherits$
|
|
5599
|
+
function _inherits$k(subClass, superClass) {
|
|
5498
5600
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5499
5601
|
throw new TypeError("Super expression must either be null or a function");
|
|
5500
5602
|
}
|
|
@@ -5505,20 +5607,20 @@ function _inherits$h(subClass, superClass) {
|
|
|
5505
5607
|
configurable: true
|
|
5506
5608
|
}
|
|
5507
5609
|
});
|
|
5508
|
-
if (superClass) _set_prototype_of$
|
|
5610
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
5509
5611
|
}
|
|
5510
|
-
function _set_prototype_of$
|
|
5511
|
-
_set_prototype_of$
|
|
5612
|
+
function _set_prototype_of$k(o, p) {
|
|
5613
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5512
5614
|
o.__proto__ = p;
|
|
5513
5615
|
return o;
|
|
5514
5616
|
};
|
|
5515
|
-
return _set_prototype_of$
|
|
5617
|
+
return _set_prototype_of$k(o, p);
|
|
5516
5618
|
}
|
|
5517
5619
|
var Header = /*#__PURE__*/ function(Component) {
|
|
5518
|
-
_inherits$
|
|
5620
|
+
_inherits$k(Header, Component);
|
|
5519
5621
|
function Header(options) {
|
|
5520
5622
|
if (options === void 0) options = {};
|
|
5521
|
-
return Component.call(this, _extends$
|
|
5623
|
+
return Component.call(this, _extends$j({}, options, {
|
|
5522
5624
|
cType: 'header'
|
|
5523
5625
|
})) || this;
|
|
5524
5626
|
}
|
|
@@ -5684,8 +5786,8 @@ function interactiveHF($container, second, callback) {
|
|
|
5684
5786
|
};
|
|
5685
5787
|
}
|
|
5686
5788
|
|
|
5687
|
-
function _extends$
|
|
5688
|
-
_extends$
|
|
5789
|
+
function _extends$i() {
|
|
5790
|
+
_extends$i = Object.assign || function(target) {
|
|
5689
5791
|
for(var i = 1; i < arguments.length; i++){
|
|
5690
5792
|
var source = arguments[i];
|
|
5691
5793
|
for(var key in source){
|
|
@@ -5696,9 +5798,9 @@ function _extends$f() {
|
|
|
5696
5798
|
}
|
|
5697
5799
|
return target;
|
|
5698
5800
|
};
|
|
5699
|
-
return _extends$
|
|
5801
|
+
return _extends$i.apply(this, arguments);
|
|
5700
5802
|
}
|
|
5701
|
-
function _inherits$
|
|
5803
|
+
function _inherits$j(subClass, superClass) {
|
|
5702
5804
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5703
5805
|
throw new TypeError("Super expression must either be null or a function");
|
|
5704
5806
|
}
|
|
@@ -5709,23 +5811,23 @@ function _inherits$g(subClass, superClass) {
|
|
|
5709
5811
|
configurable: true
|
|
5710
5812
|
}
|
|
5711
5813
|
});
|
|
5712
|
-
if (superClass) _set_prototype_of$
|
|
5814
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
5713
5815
|
}
|
|
5714
|
-
function _set_prototype_of$
|
|
5715
|
-
_set_prototype_of$
|
|
5816
|
+
function _set_prototype_of$j(o, p) {
|
|
5817
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5716
5818
|
o.__proto__ = p;
|
|
5717
5819
|
return o;
|
|
5718
5820
|
};
|
|
5719
|
-
return _set_prototype_of$
|
|
5821
|
+
return _set_prototype_of$j(o, p);
|
|
5720
5822
|
}
|
|
5721
5823
|
/**
|
|
5722
5824
|
* 全局全屏
|
|
5723
5825
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
5724
5826
|
* @category Control
|
|
5725
5827
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
5726
|
-
_inherits$
|
|
5828
|
+
_inherits$j(GlobalFullscreen, Fullscreen);
|
|
5727
5829
|
function GlobalFullscreen(options) {
|
|
5728
|
-
return Fullscreen.call(this, _extends$
|
|
5830
|
+
return Fullscreen.call(this, _extends$i({}, options, {
|
|
5729
5831
|
controlType: 'button',
|
|
5730
5832
|
classNameSuffix: 'global-fullscreen'
|
|
5731
5833
|
})) || this;
|
|
@@ -5756,8 +5858,8 @@ function _set_prototype_of$g(o, p) {
|
|
|
5756
5858
|
return GlobalFullscreen;
|
|
5757
5859
|
}(Fullscreen);
|
|
5758
5860
|
|
|
5759
|
-
function _extends$
|
|
5760
|
-
_extends$
|
|
5861
|
+
function _extends$h() {
|
|
5862
|
+
_extends$h = Object.assign || function(target) {
|
|
5761
5863
|
for(var i = 1; i < arguments.length; i++){
|
|
5762
5864
|
var source = arguments[i];
|
|
5763
5865
|
for(var key in source){
|
|
@@ -5768,9 +5870,9 @@ function _extends$e() {
|
|
|
5768
5870
|
}
|
|
5769
5871
|
return target;
|
|
5770
5872
|
};
|
|
5771
|
-
return _extends$
|
|
5873
|
+
return _extends$h.apply(this, arguments);
|
|
5772
5874
|
}
|
|
5773
|
-
function _inherits$
|
|
5875
|
+
function _inherits$i(subClass, superClass) {
|
|
5774
5876
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5775
5877
|
throw new TypeError("Super expression must either be null or a function");
|
|
5776
5878
|
}
|
|
@@ -5781,23 +5883,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
5781
5883
|
configurable: true
|
|
5782
5884
|
}
|
|
5783
5885
|
});
|
|
5784
|
-
if (superClass) _set_prototype_of$
|
|
5886
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
5785
5887
|
}
|
|
5786
|
-
function _set_prototype_of$
|
|
5787
|
-
_set_prototype_of$
|
|
5888
|
+
function _set_prototype_of$i(o, p) {
|
|
5889
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5788
5890
|
o.__proto__ = p;
|
|
5789
5891
|
return o;
|
|
5790
5892
|
};
|
|
5791
|
-
return _set_prototype_of$
|
|
5893
|
+
return _set_prototype_of$i(o, p);
|
|
5792
5894
|
}
|
|
5793
5895
|
/**
|
|
5794
5896
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
5795
5897
|
* @category Control
|
|
5796
5898
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
5797
|
-
_inherits$
|
|
5899
|
+
_inherits$i(CapturePicture, Control);
|
|
5798
5900
|
function CapturePicture(options) {
|
|
5799
5901
|
var _this;
|
|
5800
|
-
_this = Control.call(this, _extends$
|
|
5902
|
+
_this = Control.call(this, _extends$h({}, options, {
|
|
5801
5903
|
tagName: 'span',
|
|
5802
5904
|
classNameSuffix: 'capture-picture'
|
|
5803
5905
|
})) || this, _this._timer = null;
|
|
@@ -5863,8 +5965,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
5863
5965
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
5864
5966
|
return Constructor;
|
|
5865
5967
|
}
|
|
5866
|
-
function _extends$
|
|
5867
|
-
_extends$
|
|
5968
|
+
function _extends$g() {
|
|
5969
|
+
_extends$g = Object.assign || function(target) {
|
|
5868
5970
|
for(var i = 1; i < arguments.length; i++){
|
|
5869
5971
|
var source = arguments[i];
|
|
5870
5972
|
for(var key in source){
|
|
@@ -5875,9 +5977,9 @@ function _extends$d() {
|
|
|
5875
5977
|
}
|
|
5876
5978
|
return target;
|
|
5877
5979
|
};
|
|
5878
|
-
return _extends$
|
|
5980
|
+
return _extends$g.apply(this, arguments);
|
|
5879
5981
|
}
|
|
5880
|
-
function _inherits$
|
|
5982
|
+
function _inherits$h(subClass, superClass) {
|
|
5881
5983
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5882
5984
|
throw new TypeError("Super expression must either be null or a function");
|
|
5883
5985
|
}
|
|
@@ -5888,23 +5990,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
5888
5990
|
configurable: true
|
|
5889
5991
|
}
|
|
5890
5992
|
});
|
|
5891
|
-
if (superClass) _set_prototype_of$
|
|
5993
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
5892
5994
|
}
|
|
5893
|
-
function _set_prototype_of$
|
|
5894
|
-
_set_prototype_of$
|
|
5995
|
+
function _set_prototype_of$h(o, p) {
|
|
5996
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5895
5997
|
o.__proto__ = p;
|
|
5896
5998
|
return o;
|
|
5897
5999
|
};
|
|
5898
|
-
return _set_prototype_of$
|
|
6000
|
+
return _set_prototype_of$h(o, p);
|
|
5899
6001
|
}
|
|
5900
6002
|
/**
|
|
5901
6003
|
* 云台控件
|
|
5902
6004
|
* @category Control
|
|
5903
6005
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
5904
|
-
_inherits$
|
|
6006
|
+
_inherits$h(Ptz, Control);
|
|
5905
6007
|
function Ptz(options) {
|
|
5906
6008
|
var _this;
|
|
5907
|
-
_this = Control.call(this, _extends$
|
|
6009
|
+
_this = Control.call(this, _extends$g({}, options, {
|
|
5908
6010
|
tagName: 'span',
|
|
5909
6011
|
controlType: 'button',
|
|
5910
6012
|
classNameSuffix: 'ptz'
|
|
@@ -5947,7 +6049,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5947
6049
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
5948
6050
|
this.$panel.appendChild(this.$turntable);
|
|
5949
6051
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5950
|
-
this._ptzControl = new Ptz$1(this.$turntable, _extends$
|
|
6052
|
+
this._ptzControl = new Ptz$1(this.$turntable, _extends$g({}, this._options, {
|
|
5951
6053
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5952
6054
|
onDirection: this._onDirection.bind(this)
|
|
5953
6055
|
}));
|
|
@@ -5956,7 +6058,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5956
6058
|
};
|
|
5957
6059
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
5958
6060
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5959
|
-
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$
|
|
6061
|
+
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$g({}, this._options, {
|
|
5960
6062
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5961
6063
|
onDirection: this._onDirection.bind(this)
|
|
5962
6064
|
}));
|
|
@@ -6059,8 +6161,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6059
6161
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
6060
6162
|
return Constructor;
|
|
6061
6163
|
}
|
|
6062
|
-
function _extends$
|
|
6063
|
-
_extends$
|
|
6164
|
+
function _extends$f() {
|
|
6165
|
+
_extends$f = Object.assign || function(target) {
|
|
6064
6166
|
for(var i = 1; i < arguments.length; i++){
|
|
6065
6167
|
var source = arguments[i];
|
|
6066
6168
|
for(var key in source){
|
|
@@ -6071,9 +6173,9 @@ function _extends$c() {
|
|
|
6071
6173
|
}
|
|
6072
6174
|
return target;
|
|
6073
6175
|
};
|
|
6074
|
-
return _extends$
|
|
6176
|
+
return _extends$f.apply(this, arguments);
|
|
6075
6177
|
}
|
|
6076
|
-
function _inherits$
|
|
6178
|
+
function _inherits$g(subClass, superClass) {
|
|
6077
6179
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6078
6180
|
throw new TypeError("Super expression must either be null or a function");
|
|
6079
6181
|
}
|
|
@@ -6084,14 +6186,14 @@ function _inherits$d(subClass, superClass) {
|
|
|
6084
6186
|
configurable: true
|
|
6085
6187
|
}
|
|
6086
6188
|
});
|
|
6087
|
-
if (superClass) _set_prototype_of$
|
|
6189
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6088
6190
|
}
|
|
6089
|
-
function _set_prototype_of$
|
|
6090
|
-
_set_prototype_of$
|
|
6191
|
+
function _set_prototype_of$g(o, p) {
|
|
6192
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6091
6193
|
o.__proto__ = p;
|
|
6092
6194
|
return o;
|
|
6093
6195
|
};
|
|
6094
|
-
return _set_prototype_of$
|
|
6196
|
+
return _set_prototype_of$g(o, p);
|
|
6095
6197
|
}
|
|
6096
6198
|
var RECORD_DEFAULT_OPTIONS = {
|
|
6097
6199
|
maxDuration: 3600
|
|
@@ -6105,10 +6207,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
6105
6207
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
6106
6208
|
* @category Control
|
|
6107
6209
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
6108
|
-
_inherits$
|
|
6210
|
+
_inherits$g(Record, Control);
|
|
6109
6211
|
function Record(options) {
|
|
6110
6212
|
var _this;
|
|
6111
|
-
_this = Control.call(this, _extends$
|
|
6213
|
+
_this = Control.call(this, _extends$f({}, options, {
|
|
6112
6214
|
tagName: 'span',
|
|
6113
6215
|
controlType: 'button',
|
|
6114
6216
|
classNameSuffix: 'record'
|
|
@@ -6249,8 +6351,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6249
6351
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
6250
6352
|
return Constructor;
|
|
6251
6353
|
}
|
|
6252
|
-
function _extends$
|
|
6253
|
-
_extends$
|
|
6354
|
+
function _extends$e() {
|
|
6355
|
+
_extends$e = Object.assign || function(target) {
|
|
6254
6356
|
for(var i = 1; i < arguments.length; i++){
|
|
6255
6357
|
var source = arguments[i];
|
|
6256
6358
|
for(var key in source){
|
|
@@ -6261,9 +6363,9 @@ function _extends$b() {
|
|
|
6261
6363
|
}
|
|
6262
6364
|
return target;
|
|
6263
6365
|
};
|
|
6264
|
-
return _extends$
|
|
6366
|
+
return _extends$e.apply(this, arguments);
|
|
6265
6367
|
}
|
|
6266
|
-
function _inherits$
|
|
6368
|
+
function _inherits$f(subClass, superClass) {
|
|
6267
6369
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6268
6370
|
throw new TypeError("Super expression must either be null or a function");
|
|
6269
6371
|
}
|
|
@@ -6274,14 +6376,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
6274
6376
|
configurable: true
|
|
6275
6377
|
}
|
|
6276
6378
|
});
|
|
6277
|
-
if (superClass) _set_prototype_of$
|
|
6379
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6278
6380
|
}
|
|
6279
|
-
function _set_prototype_of$
|
|
6280
|
-
_set_prototype_of$
|
|
6381
|
+
function _set_prototype_of$f(o, p) {
|
|
6382
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6281
6383
|
o.__proto__ = p;
|
|
6282
6384
|
return o;
|
|
6283
6385
|
};
|
|
6284
|
-
return _set_prototype_of$
|
|
6386
|
+
return _set_prototype_of$f(o, p);
|
|
6285
6387
|
}
|
|
6286
6388
|
function _ts_generator$4(thisArg, body) {
|
|
6287
6389
|
var f, y, t, _ = {
|
|
@@ -6383,10 +6485,10 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6383
6485
|
*
|
|
6384
6486
|
* @category Control
|
|
6385
6487
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
6386
|
-
_inherits$
|
|
6488
|
+
_inherits$f(Talk, Control);
|
|
6387
6489
|
function Talk(options) {
|
|
6388
6490
|
var _this;
|
|
6389
|
-
_this = Control.call(this, _extends$
|
|
6491
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6390
6492
|
tagName: 'span',
|
|
6391
6493
|
controlType: 'button',
|
|
6392
6494
|
classNameSuffix: 'talk'
|
|
@@ -6519,8 +6621,8 @@ function _async_to_generator$3(fn) {
|
|
|
6519
6621
|
});
|
|
6520
6622
|
};
|
|
6521
6623
|
}
|
|
6522
|
-
function _extends$
|
|
6523
|
-
_extends$
|
|
6624
|
+
function _extends$d() {
|
|
6625
|
+
_extends$d = Object.assign || function(target) {
|
|
6524
6626
|
for(var i = 1; i < arguments.length; i++){
|
|
6525
6627
|
var source = arguments[i];
|
|
6526
6628
|
for(var key in source){
|
|
@@ -6531,9 +6633,9 @@ function _extends$a() {
|
|
|
6531
6633
|
}
|
|
6532
6634
|
return target;
|
|
6533
6635
|
};
|
|
6534
|
-
return _extends$
|
|
6636
|
+
return _extends$d.apply(this, arguments);
|
|
6535
6637
|
}
|
|
6536
|
-
function _inherits$
|
|
6638
|
+
function _inherits$e(subClass, superClass) {
|
|
6537
6639
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6538
6640
|
throw new TypeError("Super expression must either be null or a function");
|
|
6539
6641
|
}
|
|
@@ -6544,14 +6646,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
6544
6646
|
configurable: true
|
|
6545
6647
|
}
|
|
6546
6648
|
});
|
|
6547
|
-
if (superClass) _set_prototype_of$
|
|
6649
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6548
6650
|
}
|
|
6549
|
-
function _set_prototype_of$
|
|
6550
|
-
_set_prototype_of$
|
|
6651
|
+
function _set_prototype_of$e(o, p) {
|
|
6652
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6551
6653
|
o.__proto__ = p;
|
|
6552
6654
|
return o;
|
|
6553
6655
|
};
|
|
6554
|
-
return _set_prototype_of$
|
|
6656
|
+
return _set_prototype_of$e(o, p);
|
|
6555
6657
|
}
|
|
6556
6658
|
function _ts_generator$3(thisArg, body) {
|
|
6557
6659
|
var f, y, t, _ = {
|
|
@@ -6651,10 +6753,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6651
6753
|
*
|
|
6652
6754
|
* @category Control
|
|
6653
6755
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
6654
|
-
_inherits$
|
|
6756
|
+
_inherits$e(Broadcast, Control);
|
|
6655
6757
|
function Broadcast(options) {
|
|
6656
6758
|
var _this;
|
|
6657
|
-
_this = Control.call(this, _extends$
|
|
6759
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6658
6760
|
tagName: 'span',
|
|
6659
6761
|
controlType: 'button',
|
|
6660
6762
|
classNameSuffix: 'broadcast'
|
|
@@ -6749,8 +6851,8 @@ function _async_to_generator$2(fn) {
|
|
|
6749
6851
|
});
|
|
6750
6852
|
};
|
|
6751
6853
|
}
|
|
6752
|
-
function _extends$
|
|
6753
|
-
_extends$
|
|
6854
|
+
function _extends$c() {
|
|
6855
|
+
_extends$c = Object.assign || function(target) {
|
|
6754
6856
|
for(var i = 1; i < arguments.length; i++){
|
|
6755
6857
|
var source = arguments[i];
|
|
6756
6858
|
for(var key in source){
|
|
@@ -6761,9 +6863,9 @@ function _extends$9() {
|
|
|
6761
6863
|
}
|
|
6762
6864
|
return target;
|
|
6763
6865
|
};
|
|
6764
|
-
return _extends$
|
|
6866
|
+
return _extends$c.apply(this, arguments);
|
|
6765
6867
|
}
|
|
6766
|
-
function _inherits$
|
|
6868
|
+
function _inherits$d(subClass, superClass) {
|
|
6767
6869
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6768
6870
|
throw new TypeError("Super expression must either be null or a function");
|
|
6769
6871
|
}
|
|
@@ -6774,14 +6876,14 @@ function _inherits$a(subClass, superClass) {
|
|
|
6774
6876
|
configurable: true
|
|
6775
6877
|
}
|
|
6776
6878
|
});
|
|
6777
|
-
if (superClass) _set_prototype_of$
|
|
6879
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
6778
6880
|
}
|
|
6779
|
-
function _set_prototype_of$
|
|
6780
|
-
_set_prototype_of$
|
|
6881
|
+
function _set_prototype_of$d(o, p) {
|
|
6882
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6781
6883
|
o.__proto__ = p;
|
|
6782
6884
|
return o;
|
|
6783
6885
|
};
|
|
6784
|
-
return _set_prototype_of$
|
|
6886
|
+
return _set_prototype_of$d(o, p);
|
|
6785
6887
|
}
|
|
6786
6888
|
function _ts_generator$2(thisArg, body) {
|
|
6787
6889
|
var f, y, t, _ = {
|
|
@@ -6881,10 +6983,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6881
6983
|
*
|
|
6882
6984
|
* @category Control
|
|
6883
6985
|
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
6884
|
-
_inherits$
|
|
6986
|
+
_inherits$d(AIChat, Control);
|
|
6885
6987
|
function AIChat(options) {
|
|
6886
6988
|
var _this;
|
|
6887
|
-
_this = Control.call(this, _extends$
|
|
6989
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
6888
6990
|
tagName: 'span',
|
|
6889
6991
|
controlType: 'button',
|
|
6890
6992
|
classNameSuffix: 'aichat'
|
|
@@ -6950,6 +7052,348 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6950
7052
|
return AIChat;
|
|
6951
7053
|
}(Control);
|
|
6952
7054
|
|
|
7055
|
+
function _extends$b() {
|
|
7056
|
+
_extends$b = Object.assign || function(target) {
|
|
7057
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7058
|
+
var source = arguments[i];
|
|
7059
|
+
for(var key in source){
|
|
7060
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7061
|
+
target[key] = source[key];
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
return target;
|
|
7066
|
+
};
|
|
7067
|
+
return _extends$b.apply(this, arguments);
|
|
7068
|
+
}
|
|
7069
|
+
function _inherits$c(subClass, superClass) {
|
|
7070
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7071
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7072
|
+
}
|
|
7073
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7074
|
+
constructor: {
|
|
7075
|
+
value: subClass,
|
|
7076
|
+
writable: true,
|
|
7077
|
+
configurable: true
|
|
7078
|
+
}
|
|
7079
|
+
});
|
|
7080
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7081
|
+
}
|
|
7082
|
+
function _set_prototype_of$c(o, p) {
|
|
7083
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7084
|
+
o.__proto__ = p;
|
|
7085
|
+
return o;
|
|
7086
|
+
};
|
|
7087
|
+
return _set_prototype_of$c(o, p);
|
|
7088
|
+
}
|
|
7089
|
+
/**
|
|
7090
|
+
* 直播按钮控件
|
|
7091
|
+
*
|
|
7092
|
+
* 点击切换到直播模式
|
|
7093
|
+
*
|
|
7094
|
+
* @category Control
|
|
7095
|
+
*/ var Live = /*#__PURE__*/ function(Control) {
|
|
7096
|
+
_inherits$c(Live, Control);
|
|
7097
|
+
function Live(options) {
|
|
7098
|
+
var _this;
|
|
7099
|
+
var _this___options_props1;
|
|
7100
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7101
|
+
tagName: 'span',
|
|
7102
|
+
controlType: 'button',
|
|
7103
|
+
classNameSuffix: 'live'
|
|
7104
|
+
})) || this;
|
|
7105
|
+
_this._options = options;
|
|
7106
|
+
_this._render();
|
|
7107
|
+
// H5 端不展示直播/回放切换按钮
|
|
7108
|
+
if (Utils.isMobile) {
|
|
7109
|
+
_this.$container.style.display = 'none';
|
|
7110
|
+
}
|
|
7111
|
+
// 初始化时根据当前播放模式确定激活状态
|
|
7112
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7113
|
+
return _this;
|
|
7114
|
+
}
|
|
7115
|
+
var _proto = Live.prototype;
|
|
7116
|
+
/**
|
|
7117
|
+
* 根据 urlInfo 同步激活状态
|
|
7118
|
+
* 在初始化和播放地址切换后调用
|
|
7119
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7120
|
+
var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
|
|
7121
|
+
this.active = shouldBeActive;
|
|
7122
|
+
};
|
|
7123
|
+
_proto._render = function _render() {
|
|
7124
|
+
var _this_locale;
|
|
7125
|
+
this.$container.innerHTML = IconComponents.live({
|
|
7126
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
|
|
7127
|
+
});
|
|
7128
|
+
};
|
|
7129
|
+
/**
|
|
7130
|
+
* 销毁
|
|
7131
|
+
*/ _proto.destroy = function destroy() {
|
|
7132
|
+
Control.prototype.destroy.call(this);
|
|
7133
|
+
};
|
|
7134
|
+
/**
|
|
7135
|
+
* 点击 Control 会触发
|
|
7136
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7137
|
+
var _this__options_onChange, _this__options;
|
|
7138
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7139
|
+
// 已经是直播模式则不触发
|
|
7140
|
+
if (this.active) {
|
|
7141
|
+
return;
|
|
7142
|
+
}
|
|
7143
|
+
this.active = true;
|
|
7144
|
+
this.emit(EVENTS.control.liveChange);
|
|
7145
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options);
|
|
7146
|
+
};
|
|
7147
|
+
return Live;
|
|
7148
|
+
}(Control);
|
|
7149
|
+
|
|
7150
|
+
function _extends$a() {
|
|
7151
|
+
_extends$a = Object.assign || function(target) {
|
|
7152
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7153
|
+
var source = arguments[i];
|
|
7154
|
+
for(var key in source){
|
|
7155
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7156
|
+
target[key] = source[key];
|
|
7157
|
+
}
|
|
7158
|
+
}
|
|
7159
|
+
}
|
|
7160
|
+
return target;
|
|
7161
|
+
};
|
|
7162
|
+
return _extends$a.apply(this, arguments);
|
|
7163
|
+
}
|
|
7164
|
+
function _inherits$b(subClass, superClass) {
|
|
7165
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7166
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7167
|
+
}
|
|
7168
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7169
|
+
constructor: {
|
|
7170
|
+
value: subClass,
|
|
7171
|
+
writable: true,
|
|
7172
|
+
configurable: true
|
|
7173
|
+
}
|
|
7174
|
+
});
|
|
7175
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7176
|
+
}
|
|
7177
|
+
function _set_prototype_of$b(o, p) {
|
|
7178
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7179
|
+
o.__proto__ = p;
|
|
7180
|
+
return o;
|
|
7181
|
+
};
|
|
7182
|
+
return _set_prototype_of$b(o, p);
|
|
7183
|
+
}
|
|
7184
|
+
/**
|
|
7185
|
+
* 回放下拉控件
|
|
7186
|
+
*
|
|
7187
|
+
* 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
|
|
7188
|
+
*
|
|
7189
|
+
* @category Control
|
|
7190
|
+
*/ var RecDropdown = /*#__PURE__*/ function(Control) {
|
|
7191
|
+
_inherits$b(RecDropdown, Control);
|
|
7192
|
+
function RecDropdown(options) {
|
|
7193
|
+
var _this;
|
|
7194
|
+
var _options_props, _this___options_props1;
|
|
7195
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
7196
|
+
tagName: 'span',
|
|
7197
|
+
controlType: 'button',
|
|
7198
|
+
classNameSuffix: 'rec-dropdown'
|
|
7199
|
+
})) || this;
|
|
7200
|
+
_this._options = options;
|
|
7201
|
+
// H5 端不展示直播/回放切换按钮
|
|
7202
|
+
if (Utils.isMobile) {
|
|
7203
|
+
_this.$container.style.display = 'none';
|
|
7204
|
+
}
|
|
7205
|
+
// 初始化时根据 urlInfo 确定当前回放类型和激活状态
|
|
7206
|
+
_this._recType = options.recType || ((_options_props = options.props) == null ? void 0 : _options_props.recType) || 'cloudRec';
|
|
7207
|
+
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7208
|
+
_this._render();
|
|
7209
|
+
_this._initPicker();
|
|
7210
|
+
return _this;
|
|
7211
|
+
}
|
|
7212
|
+
var _proto = RecDropdown.prototype;
|
|
7213
|
+
/**
|
|
7214
|
+
* 根据 urlInfo 同步激活状态和回放类型
|
|
7215
|
+
* 在初始化和播放地址切换后调用
|
|
7216
|
+
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7217
|
+
if (urlInfo && urlInfo.type === 'rec') {
|
|
7218
|
+
var _urlInfo_searchParams1;
|
|
7219
|
+
this.active = true;
|
|
7220
|
+
if (urlInfo.recType === 'cloud' && ((_urlInfo_searchParams1 = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams1.busType) === '7') {
|
|
7221
|
+
this._recType = 'cloudRecord';
|
|
7222
|
+
} else if (urlInfo.recType === 'cloud') {
|
|
7223
|
+
this._recType = 'cloudRec';
|
|
7224
|
+
} else {
|
|
7225
|
+
this._recType = 'rec';
|
|
7226
|
+
}
|
|
7227
|
+
this._activeOption(this._recType);
|
|
7228
|
+
} else {
|
|
7229
|
+
this.active = false;
|
|
7230
|
+
}
|
|
7231
|
+
};
|
|
7232
|
+
_proto._render = function _render() {
|
|
7233
|
+
var _this_locale;
|
|
7234
|
+
this.$container.innerHTML = IconComponents.recDropdown({
|
|
7235
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_REC_DROPDOWN) || '回放'
|
|
7236
|
+
});
|
|
7237
|
+
};
|
|
7238
|
+
_proto._initPicker = function _initPicker() {
|
|
7239
|
+
var _this = this;
|
|
7240
|
+
this._picker = new Picker(this.$container, {
|
|
7241
|
+
getPopupContainer: function() {
|
|
7242
|
+
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7243
|
+
},
|
|
7244
|
+
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
7245
|
+
isMobile: Utils.isMobile,
|
|
7246
|
+
wrapClassName: "" + PREFIX_CLASS + "-rec-dropdown-picker",
|
|
7247
|
+
placement: 'bottom',
|
|
7248
|
+
offset: [
|
|
7249
|
+
0,
|
|
7250
|
+
4
|
|
7251
|
+
]
|
|
7252
|
+
});
|
|
7253
|
+
this._picker.innerHTML(this._getPanelHTML());
|
|
7254
|
+
this._activeOption(this._recType);
|
|
7255
|
+
this._bindPanelEvents();
|
|
7256
|
+
};
|
|
7257
|
+
_proto._getPanelHTML = function _getPanelHTML() {
|
|
7258
|
+
var _this_locale, _this_locale1, _this_locale2;
|
|
7259
|
+
var cloudRecLabel = ((_this_locale = this.locale) == null ? void 0 : _this_locale.REC_DROPDOWN_CLOUD_REC) || '云存储';
|
|
7260
|
+
var cloudRecordLabel = ((_this_locale1 = this.locale) == null ? void 0 : _this_locale1.REC_DROPDOWN_CLOUD_RECORD) || '云录制';
|
|
7261
|
+
var localRecLabel = ((_this_locale2 = this.locale) == null ? void 0 : _this_locale2.REC_DROPDOWN_LOCAL_REC) || '本地回放';
|
|
7262
|
+
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>";
|
|
7263
|
+
};
|
|
7264
|
+
_proto._bindPanelEvents = function _bindPanelEvents() {
|
|
7265
|
+
var _this = this;
|
|
7266
|
+
this._delegation = delegate(this._picker.$body, "." + PREFIX_CLASS + "-rec-dropdown-item", 'click', function(e) {
|
|
7267
|
+
e.stopPropagation();
|
|
7268
|
+
var type = e.delegateTarget.getAttribute('data-type');
|
|
7269
|
+
if (type) {
|
|
7270
|
+
var _this__options_onChange, _this__options;
|
|
7271
|
+
_this._recType = type;
|
|
7272
|
+
_this._activeOption(type);
|
|
7273
|
+
// 设置自身为激活状态
|
|
7274
|
+
_this.active = true;
|
|
7275
|
+
_this.emit(EVENTS.control.recDropdownChange, type);
|
|
7276
|
+
(_this__options = _this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, type);
|
|
7277
|
+
_this._picker.open = false;
|
|
7278
|
+
}
|
|
7279
|
+
});
|
|
7280
|
+
};
|
|
7281
|
+
_proto._activeOption = function _activeOption(type) {
|
|
7282
|
+
var _this__picker;
|
|
7283
|
+
if ((_this__picker = this._picker) == null ? void 0 : _this__picker.$body) {
|
|
7284
|
+
var items = this._picker.$body.querySelectorAll("." + PREFIX_CLASS + "-rec-dropdown-item");
|
|
7285
|
+
items.forEach(function(item) {
|
|
7286
|
+
item.classList.remove("" + PREFIX_CLASS + "-active");
|
|
7287
|
+
});
|
|
7288
|
+
var target = this._picker.$body.querySelector("." + PREFIX_CLASS + '-rec-dropdown-item[data-type="' + type + '"]');
|
|
7289
|
+
target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
|
|
7290
|
+
}
|
|
7291
|
+
};
|
|
7292
|
+
/**
|
|
7293
|
+
* 销毁
|
|
7294
|
+
*/ _proto.destroy = function destroy() {
|
|
7295
|
+
var _this__delegation_destroy, _this__delegation;
|
|
7296
|
+
(_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
|
|
7297
|
+
this._delegation = null;
|
|
7298
|
+
if (this._picker) {
|
|
7299
|
+
this._picker.destroy();
|
|
7300
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7301
|
+
this._picker = null;
|
|
7302
|
+
}
|
|
7303
|
+
Control.prototype.destroy.call(this);
|
|
7304
|
+
};
|
|
7305
|
+
/**
|
|
7306
|
+
* 点击 Control 会触发(移动端 click 触发 picker)
|
|
7307
|
+
*/ // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7308
|
+
_proto._onControlClick = function _onControlClick(_e) {
|
|
7309
|
+
// picker 自行处理 click/hover,这里不额外处理
|
|
7310
|
+
};
|
|
7311
|
+
return RecDropdown;
|
|
7312
|
+
}(Control);
|
|
7313
|
+
|
|
7314
|
+
function _extends$9() {
|
|
7315
|
+
_extends$9 = Object.assign || function(target) {
|
|
7316
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7317
|
+
var source = arguments[i];
|
|
7318
|
+
for(var key in source){
|
|
7319
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7320
|
+
target[key] = source[key];
|
|
7321
|
+
}
|
|
7322
|
+
}
|
|
7323
|
+
}
|
|
7324
|
+
return target;
|
|
7325
|
+
};
|
|
7326
|
+
return _extends$9.apply(this, arguments);
|
|
7327
|
+
}
|
|
7328
|
+
function _inherits$a(subClass, superClass) {
|
|
7329
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7330
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7331
|
+
}
|
|
7332
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7333
|
+
constructor: {
|
|
7334
|
+
value: subClass,
|
|
7335
|
+
writable: true,
|
|
7336
|
+
configurable: true
|
|
7337
|
+
}
|
|
7338
|
+
});
|
|
7339
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
7340
|
+
}
|
|
7341
|
+
function _set_prototype_of$a(o, p) {
|
|
7342
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7343
|
+
o.__proto__ = p;
|
|
7344
|
+
return o;
|
|
7345
|
+
};
|
|
7346
|
+
return _set_prototype_of$a(o, p);
|
|
7347
|
+
}
|
|
7348
|
+
/**
|
|
7349
|
+
* 告警消息按钮控件
|
|
7350
|
+
*
|
|
7351
|
+
* 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
|
|
7352
|
+
*
|
|
7353
|
+
* @category Control
|
|
7354
|
+
*/ var AlarmMessage = /*#__PURE__*/ function(Control) {
|
|
7355
|
+
_inherits$a(AlarmMessage, Control);
|
|
7356
|
+
function AlarmMessage(options) {
|
|
7357
|
+
var _this;
|
|
7358
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
7359
|
+
tagName: 'span',
|
|
7360
|
+
controlType: 'button',
|
|
7361
|
+
classNameSuffix: 'alarm-message'
|
|
7362
|
+
})) || this, _this._panelOpen = false;
|
|
7363
|
+
_this._options = options;
|
|
7364
|
+
_this._render();
|
|
7365
|
+
_this.on(EVENTS.alarmMessageChange, function(open) {
|
|
7366
|
+
_this._panelOpen = open;
|
|
7367
|
+
});
|
|
7368
|
+
return _this;
|
|
7369
|
+
}
|
|
7370
|
+
var _proto = AlarmMessage.prototype;
|
|
7371
|
+
_proto._render = function _render() {
|
|
7372
|
+
var _this_locale;
|
|
7373
|
+
this.$container.innerHTML = IconComponents.alarmMessage({
|
|
7374
|
+
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
|
|
7375
|
+
});
|
|
7376
|
+
};
|
|
7377
|
+
/**
|
|
7378
|
+
* 销毁
|
|
7379
|
+
*/ _proto.destroy = function destroy() {
|
|
7380
|
+
if (this._panelOpen) {
|
|
7381
|
+
this.emit(EVENTS.control.alarmMessageChange, false);
|
|
7382
|
+
}
|
|
7383
|
+
Control.prototype.destroy.call(this);
|
|
7384
|
+
};
|
|
7385
|
+
/**
|
|
7386
|
+
* 点击 Control 会触发
|
|
7387
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7388
|
+
var _this__options_onChange, _this__options;
|
|
7389
|
+
Control.prototype._onControlClick.call(this, e);
|
|
7390
|
+
this._panelOpen = !this._panelOpen;
|
|
7391
|
+
this.emit(EVENTS.control.alarmMessageChange, this._panelOpen);
|
|
7392
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this._panelOpen);
|
|
7393
|
+
};
|
|
7394
|
+
return AlarmMessage;
|
|
7395
|
+
}(Control);
|
|
7396
|
+
|
|
6953
7397
|
function _defineProperties$1(target, props) {
|
|
6954
7398
|
for(var i = 0; i < props.length; i++){
|
|
6955
7399
|
var descriptor = props[i];
|
|
@@ -7942,6 +8386,9 @@ var Controls = {
|
|
|
7942
8386
|
talk: Talk,
|
|
7943
8387
|
broadcast: Broadcast,
|
|
7944
8388
|
aiChat: AIChat,
|
|
8389
|
+
live: Live,
|
|
8390
|
+
recDropdown: RecDropdown,
|
|
8391
|
+
alarmMessage: AlarmMessage,
|
|
7945
8392
|
zoom: Zoom,
|
|
7946
8393
|
definition: Definition,
|
|
7947
8394
|
fullscreen: Fullscreen,
|
|
@@ -8475,7 +8922,10 @@ function _ts_generator$1(thisArg, body) {
|
|
|
8475
8922
|
// 需要权限的控件
|
|
8476
8923
|
var AUTH_KEY = [
|
|
8477
8924
|
'ptz',
|
|
8478
|
-
'aiChat'
|
|
8925
|
+
'aiChat',
|
|
8926
|
+
'live',
|
|
8927
|
+
'recDropdown',
|
|
8928
|
+
'alarmMessage'
|
|
8479
8929
|
];
|
|
8480
8930
|
/**
|
|
8481
8931
|
* 渲染控件
|
|
@@ -8555,7 +9005,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
8555
9005
|
}
|
|
8556
9006
|
function _renderTheme(theme, data) {
|
|
8557
9007
|
return _async_to_generator$1(function() {
|
|
8558
|
-
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;
|
|
9008
|
+
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;
|
|
8559
9009
|
return _ts_generator$1(this, function(_state) {
|
|
8560
9010
|
switch(_state.label){
|
|
8561
9011
|
case 0:
|
|
@@ -8696,8 +9146,8 @@ function _renderTheme(theme, data) {
|
|
|
8696
9146
|
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 : []);
|
|
8697
9147
|
// FIXME: 这个逻辑实际上是有问题的
|
|
8698
9148
|
_needTimeLine = list.some(function(item) {
|
|
8699
|
-
return REC_GROUP.includes(item.iconId);
|
|
8700
|
-
});
|
|
9149
|
+
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
9150
|
+
}) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
|
|
8701
9151
|
// PC 单独渲染timeLine
|
|
8702
9152
|
if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
|
|
8703
9153
|
theme._recFooter = new RecFooter(theme.$container, {
|
|
@@ -8728,6 +9178,23 @@ function _renderTheme(theme, data) {
|
|
|
8728
9178
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
8729
9179
|
});
|
|
8730
9180
|
}
|
|
9181
|
+
// 移动端:在 rec 控件旁渲染 alarmMessage 按钮
|
|
9182
|
+
if (theme.options.alarmMessageOptions !== null && !((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['alarmMessageControl'])) {
|
|
9183
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9184
|
+
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9185
|
+
rootContainer: theme.$container,
|
|
9186
|
+
getPopupContainer: function() {
|
|
9187
|
+
var _theme__mobileExtend;
|
|
9188
|
+
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9189
|
+
},
|
|
9190
|
+
language: theme.options.language || 'zh',
|
|
9191
|
+
locales: theme.i18n.translations,
|
|
9192
|
+
sdkType: theme.options.sdkType,
|
|
9193
|
+
urlInfo: theme.urlInfo
|
|
9194
|
+
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options.alarmMessageOptions) || {}, {
|
|
9195
|
+
props: props
|
|
9196
|
+
}));
|
|
9197
|
+
}
|
|
8731
9198
|
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
8732
9199
|
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
8733
9200
|
}
|
|
@@ -8738,6 +9205,10 @@ function _renderTheme(theme, data) {
|
|
|
8738
9205
|
}
|
|
8739
9206
|
theme.emit(EVENTS.control.mountedControls);
|
|
8740
9207
|
if (!theme.playing) theme._disabled(true);
|
|
9208
|
+
// 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
|
|
9209
|
+
if (theme._loading && theme._loadingControl) {
|
|
9210
|
+
theme._loadingControl.show();
|
|
9211
|
+
}
|
|
8741
9212
|
_controlEventemitter(theme);
|
|
8742
9213
|
return [
|
|
8743
9214
|
2
|
|
@@ -10333,6 +10804,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10333
10804
|
zh: zh,
|
|
10334
10805
|
en: en
|
|
10335
10806
|
};
|
|
10336
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.
|
|
10807
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.1-beta.4';
|
|
10337
10808
|
|
|
10338
10809
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|