@ezuikit/player-theme 2.1.0-beta.1 → 2.1.0-beta.11
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 +5 -2
- package/dist/index.js +659 -367
- package/dist/index.mjs +659 -367
- package/dist/index.umd.js +943 -915
- package/dist/style.css +3 -2
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +68 -44
- package/package.json +11 -4
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.11
|
|
3
|
+
* Copyright (c) 2026-01-16 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -139,6 +139,7 @@ var EVENTS = {
|
|
|
139
139
|
/** 控件开始录制 */ recordingChange: 'recordingChange',
|
|
140
140
|
/** 对讲状态变化 */ talkingChange: 'talkingChange',
|
|
141
141
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
142
|
+
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
142
143
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
143
144
|
records: 'records',
|
|
144
145
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -182,6 +183,8 @@ var EVENTS = {
|
|
|
182
183
|
/** 开始对讲 */ talkingChange: 'Control.talkingChange',
|
|
183
184
|
/** 对讲错误, 一般是麦克风权限被拒绝 */ talkError: 'Control.talkError',
|
|
184
185
|
/** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
|
|
186
|
+
/** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
|
|
187
|
+
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
185
188
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
186
189
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
187
190
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -233,7 +236,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
233
236
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
234
237
|
return Constructor;
|
|
235
238
|
}
|
|
236
|
-
function _inherits$
|
|
239
|
+
function _inherits$s(subClass, superClass) {
|
|
237
240
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
238
241
|
throw new TypeError("Super expression must either be null or a function");
|
|
239
242
|
}
|
|
@@ -244,14 +247,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
244
247
|
configurable: true
|
|
245
248
|
}
|
|
246
249
|
});
|
|
247
|
-
if (superClass) _set_prototype_of$
|
|
250
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
248
251
|
}
|
|
249
|
-
function _set_prototype_of$
|
|
250
|
-
_set_prototype_of$
|
|
252
|
+
function _set_prototype_of$s(o, p) {
|
|
253
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
251
254
|
o.__proto__ = p;
|
|
252
255
|
return o;
|
|
253
256
|
};
|
|
254
|
-
return _set_prototype_of$
|
|
257
|
+
return _set_prototype_of$s(o, p);
|
|
255
258
|
}
|
|
256
259
|
/**
|
|
257
260
|
* 控件基类
|
|
@@ -265,7 +268,7 @@ function _set_prototype_of$r(o, p) {
|
|
|
265
268
|
* const myControl = new MyControl({})
|
|
266
269
|
* ```
|
|
267
270
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
268
|
-
_inherits$
|
|
271
|
+
_inherits$s(Control, EventEmitter);
|
|
269
272
|
function Control(options) {
|
|
270
273
|
var _this;
|
|
271
274
|
var _this___options;
|
|
@@ -440,8 +443,8 @@ function _set_prototype_of$r(o, p) {
|
|
|
440
443
|
return Control;
|
|
441
444
|
}(EventEmitter);
|
|
442
445
|
|
|
443
|
-
function _extends$
|
|
444
|
-
_extends$
|
|
446
|
+
function _extends$r() {
|
|
447
|
+
_extends$r = Object.assign || function(target) {
|
|
445
448
|
for(var i = 1; i < arguments.length; i++){
|
|
446
449
|
var source = arguments[i];
|
|
447
450
|
for(var key in source){
|
|
@@ -452,9 +455,9 @@ function _extends$q() {
|
|
|
452
455
|
}
|
|
453
456
|
return target;
|
|
454
457
|
};
|
|
455
|
-
return _extends$
|
|
458
|
+
return _extends$r.apply(this, arguments);
|
|
456
459
|
}
|
|
457
|
-
function _inherits$
|
|
460
|
+
function _inherits$r(subClass, superClass) {
|
|
458
461
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
459
462
|
throw new TypeError("Super expression must either be null or a function");
|
|
460
463
|
}
|
|
@@ -465,25 +468,25 @@ function _inherits$q(subClass, superClass) {
|
|
|
465
468
|
configurable: true
|
|
466
469
|
}
|
|
467
470
|
});
|
|
468
|
-
if (superClass) _set_prototype_of$
|
|
471
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
469
472
|
}
|
|
470
|
-
function _set_prototype_of$
|
|
471
|
-
_set_prototype_of$
|
|
473
|
+
function _set_prototype_of$r(o, p) {
|
|
474
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
472
475
|
o.__proto__ = p;
|
|
473
476
|
return o;
|
|
474
477
|
};
|
|
475
|
-
return _set_prototype_of$
|
|
478
|
+
return _set_prototype_of$r(o, p);
|
|
476
479
|
}
|
|
477
480
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
478
481
|
/**
|
|
479
482
|
* 加载动画控件
|
|
480
483
|
* @category Control
|
|
481
484
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
482
|
-
_inherits$
|
|
485
|
+
_inherits$r(Loading, Control);
|
|
483
486
|
function Loading(options) {
|
|
484
487
|
if (options === void 0) options = {};
|
|
485
488
|
var _this;
|
|
486
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
489
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$r({}, options, {
|
|
487
490
|
tagName: 'div',
|
|
488
491
|
controlType: 'block',
|
|
489
492
|
classNameSuffix: 'loading'
|
|
@@ -521,8 +524,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
521
524
|
return Loading;
|
|
522
525
|
}(Control);
|
|
523
526
|
|
|
524
|
-
function _extends$
|
|
525
|
-
_extends$
|
|
527
|
+
function _extends$q() {
|
|
528
|
+
_extends$q = Object.assign || function(target) {
|
|
526
529
|
for(var i = 1; i < arguments.length; i++){
|
|
527
530
|
var source = arguments[i];
|
|
528
531
|
for(var key in source){
|
|
@@ -533,9 +536,9 @@ function _extends$p() {
|
|
|
533
536
|
}
|
|
534
537
|
return target;
|
|
535
538
|
};
|
|
536
|
-
return _extends$
|
|
539
|
+
return _extends$q.apply(this, arguments);
|
|
537
540
|
}
|
|
538
|
-
function _inherits$
|
|
541
|
+
function _inherits$q(subClass, superClass) {
|
|
539
542
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
540
543
|
throw new TypeError("Super expression must either be null or a function");
|
|
541
544
|
}
|
|
@@ -546,14 +549,14 @@ function _inherits$p(subClass, superClass) {
|
|
|
546
549
|
configurable: true
|
|
547
550
|
}
|
|
548
551
|
});
|
|
549
|
-
if (superClass) _set_prototype_of$
|
|
552
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
550
553
|
}
|
|
551
|
-
function _set_prototype_of$
|
|
552
|
-
_set_prototype_of$
|
|
554
|
+
function _set_prototype_of$q(o, p) {
|
|
555
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
553
556
|
o.__proto__ = p;
|
|
554
557
|
return o;
|
|
555
558
|
};
|
|
556
|
-
return _set_prototype_of$
|
|
559
|
+
return _set_prototype_of$q(o, p);
|
|
557
560
|
}
|
|
558
561
|
// 不放在服务器上 是因为有可能http加载失败
|
|
559
562
|
// prettier-ignore
|
|
@@ -565,11 +568,11 @@ var POSTER_OPTIONS = {
|
|
|
565
568
|
* 封面控件
|
|
566
569
|
* @category Control
|
|
567
570
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
568
|
-
_inherits$
|
|
571
|
+
_inherits$q(Poster, Control);
|
|
569
572
|
function Poster(options) {
|
|
570
573
|
if (options === void 0) options = {};
|
|
571
574
|
var _this;
|
|
572
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
575
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$q({}, options, {
|
|
573
576
|
tagName: 'div',
|
|
574
577
|
controlType: 'block',
|
|
575
578
|
classNameSuffix: 'poster'
|
|
@@ -664,6 +667,7 @@ var Icons = {
|
|
|
664
667
|
talkGrowth: function(prefix) {
|
|
665
668
|
return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
|
|
666
669
|
},
|
|
670
|
+
/** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
|
|
667
671
|
/** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
|
|
668
672
|
/** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
669
673
|
/** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
@@ -748,6 +752,10 @@ var IconComponents = {
|
|
|
748
752
|
if (attr === void 0) attr = {};
|
|
749
753
|
return createIcon(Icons.talk, 'talk', attr);
|
|
750
754
|
},
|
|
755
|
+
broadcast: function(attr) {
|
|
756
|
+
if (attr === void 0) attr = {};
|
|
757
|
+
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
758
|
+
},
|
|
751
759
|
talkGrowth: function(attr) {
|
|
752
760
|
if (attr === void 0) attr = {};
|
|
753
761
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
@@ -826,8 +834,8 @@ var IconComponents = {
|
|
|
826
834
|
}
|
|
827
835
|
};
|
|
828
836
|
|
|
829
|
-
function _extends$
|
|
830
|
-
_extends$
|
|
837
|
+
function _extends$p() {
|
|
838
|
+
_extends$p = Object.assign || function(target) {
|
|
831
839
|
for(var i = 1; i < arguments.length; i++){
|
|
832
840
|
var source = arguments[i];
|
|
833
841
|
for(var key in source){
|
|
@@ -838,9 +846,9 @@ function _extends$o() {
|
|
|
838
846
|
}
|
|
839
847
|
return target;
|
|
840
848
|
};
|
|
841
|
-
return _extends$
|
|
849
|
+
return _extends$p.apply(this, arguments);
|
|
842
850
|
}
|
|
843
|
-
function _inherits$
|
|
851
|
+
function _inherits$p(subClass, superClass) {
|
|
844
852
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
845
853
|
throw new TypeError("Super expression must either be null or a function");
|
|
846
854
|
}
|
|
@@ -851,25 +859,25 @@ function _inherits$o(subClass, superClass) {
|
|
|
851
859
|
configurable: true
|
|
852
860
|
}
|
|
853
861
|
});
|
|
854
|
-
if (superClass) _set_prototype_of$
|
|
862
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
855
863
|
}
|
|
856
|
-
function _set_prototype_of$
|
|
857
|
-
_set_prototype_of$
|
|
864
|
+
function _set_prototype_of$p(o, p) {
|
|
865
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
858
866
|
o.__proto__ = p;
|
|
859
867
|
return o;
|
|
860
868
|
};
|
|
861
|
-
return _set_prototype_of$
|
|
869
|
+
return _set_prototype_of$p(o, p);
|
|
862
870
|
}
|
|
863
871
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
864
872
|
/**
|
|
865
873
|
* 消息控件
|
|
866
874
|
* @category Control
|
|
867
875
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
868
|
-
_inherits$
|
|
876
|
+
_inherits$p(Message, Control);
|
|
869
877
|
function Message(options) {
|
|
870
878
|
if (options === void 0) options = {};
|
|
871
879
|
var _this;
|
|
872
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
880
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$p({}, options, {
|
|
873
881
|
tagName: 'div',
|
|
874
882
|
controlType: 'block'
|
|
875
883
|
}))) || this;
|
|
@@ -1022,8 +1030,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1022
1030
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1023
1031
|
return Constructor;
|
|
1024
1032
|
}
|
|
1025
|
-
function _extends$
|
|
1026
|
-
_extends$
|
|
1033
|
+
function _extends$o() {
|
|
1034
|
+
_extends$o = Object.assign || function(target) {
|
|
1027
1035
|
for(var i = 1; i < arguments.length; i++){
|
|
1028
1036
|
var source = arguments[i];
|
|
1029
1037
|
for(var key in source){
|
|
@@ -1034,9 +1042,9 @@ function _extends$n() {
|
|
|
1034
1042
|
}
|
|
1035
1043
|
return target;
|
|
1036
1044
|
};
|
|
1037
|
-
return _extends$
|
|
1045
|
+
return _extends$o.apply(this, arguments);
|
|
1038
1046
|
}
|
|
1039
|
-
function _inherits$
|
|
1047
|
+
function _inherits$o(subClass, superClass) {
|
|
1040
1048
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1041
1049
|
throw new TypeError("Super expression must either be null or a function");
|
|
1042
1050
|
}
|
|
@@ -1047,23 +1055,23 @@ function _inherits$n(subClass, superClass) {
|
|
|
1047
1055
|
configurable: true
|
|
1048
1056
|
}
|
|
1049
1057
|
});
|
|
1050
|
-
if (superClass) _set_prototype_of$
|
|
1058
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
1051
1059
|
}
|
|
1052
|
-
function _set_prototype_of$
|
|
1053
|
-
_set_prototype_of$
|
|
1060
|
+
function _set_prototype_of$o(o, p) {
|
|
1061
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1054
1062
|
o.__proto__ = p;
|
|
1055
1063
|
return o;
|
|
1056
1064
|
};
|
|
1057
|
-
return _set_prototype_of$
|
|
1065
|
+
return _set_prototype_of$o(o, p);
|
|
1058
1066
|
}
|
|
1059
1067
|
/**
|
|
1060
1068
|
* 播放/暂停控件
|
|
1061
1069
|
* @category Control
|
|
1062
1070
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1063
|
-
_inherits$
|
|
1071
|
+
_inherits$o(Play, Control);
|
|
1064
1072
|
function Play(options) {
|
|
1065
1073
|
var _this;
|
|
1066
|
-
_this = Control.call(this, _extends$
|
|
1074
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
1067
1075
|
tagName: 'span',
|
|
1068
1076
|
controlType: 'button',
|
|
1069
1077
|
classNameSuffix: 'play'
|
|
@@ -1679,8 +1687,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1679
1687
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1680
1688
|
return Constructor;
|
|
1681
1689
|
}
|
|
1682
|
-
function _extends$
|
|
1683
|
-
_extends$
|
|
1690
|
+
function _extends$n() {
|
|
1691
|
+
_extends$n = Object.assign || function(target) {
|
|
1684
1692
|
for(var i = 1; i < arguments.length; i++){
|
|
1685
1693
|
var source = arguments[i];
|
|
1686
1694
|
for(var key in source){
|
|
@@ -1691,9 +1699,9 @@ function _extends$m() {
|
|
|
1691
1699
|
}
|
|
1692
1700
|
return target;
|
|
1693
1701
|
};
|
|
1694
|
-
return _extends$
|
|
1702
|
+
return _extends$n.apply(this, arguments);
|
|
1695
1703
|
}
|
|
1696
|
-
function _inherits$
|
|
1704
|
+
function _inherits$n(subClass, superClass) {
|
|
1697
1705
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1698
1706
|
throw new TypeError("Super expression must either be null or a function");
|
|
1699
1707
|
}
|
|
@@ -1704,14 +1712,14 @@ function _inherits$m(subClass, superClass) {
|
|
|
1704
1712
|
configurable: true
|
|
1705
1713
|
}
|
|
1706
1714
|
});
|
|
1707
|
-
if (superClass) _set_prototype_of$
|
|
1715
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
1708
1716
|
}
|
|
1709
|
-
function _set_prototype_of$
|
|
1710
|
-
_set_prototype_of$
|
|
1717
|
+
function _set_prototype_of$n(o, p) {
|
|
1718
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1711
1719
|
o.__proto__ = p;
|
|
1712
1720
|
return o;
|
|
1713
1721
|
};
|
|
1714
|
-
return _set_prototype_of$
|
|
1722
|
+
return _set_prototype_of$n(o, p);
|
|
1715
1723
|
}
|
|
1716
1724
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1717
1725
|
volume: 0.8,
|
|
@@ -1725,12 +1733,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1725
1733
|
* 音量调节控件
|
|
1726
1734
|
* @category Control
|
|
1727
1735
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1728
|
-
_inherits$
|
|
1736
|
+
_inherits$n(Volume, Control);
|
|
1729
1737
|
function Volume(options) {
|
|
1730
1738
|
if (options === void 0) options = {};
|
|
1731
1739
|
var _this;
|
|
1732
1740
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1733
|
-
_this = Control.call(this, _extends$
|
|
1741
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
1734
1742
|
tagName: 'span',
|
|
1735
1743
|
classNameSuffix: 'volume',
|
|
1736
1744
|
controlType: 'button'
|
|
@@ -1909,7 +1917,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1909
1917
|
if (this._lastVolume !== _volume) {
|
|
1910
1918
|
this._volume = _volume;
|
|
1911
1919
|
this._lastVolume = this._volume;
|
|
1912
|
-
if (this._progress)
|
|
1920
|
+
if (this._progress) {
|
|
1921
|
+
// 静音时进度条为 0
|
|
1922
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1923
|
+
}
|
|
1913
1924
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1914
1925
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1915
1926
|
}
|
|
@@ -1943,7 +1954,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1943
1954
|
return Volume;
|
|
1944
1955
|
}(Control);
|
|
1945
1956
|
|
|
1946
|
-
function asyncGeneratorStep$
|
|
1957
|
+
function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1947
1958
|
try {
|
|
1948
1959
|
var info = gen[key](arg);
|
|
1949
1960
|
var value = info.value;
|
|
@@ -1957,22 +1968,22 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1957
1968
|
Promise.resolve(value).then(_next, _throw);
|
|
1958
1969
|
}
|
|
1959
1970
|
}
|
|
1960
|
-
function _async_to_generator$
|
|
1971
|
+
function _async_to_generator$6(fn) {
|
|
1961
1972
|
return function() {
|
|
1962
1973
|
var self = this, args = arguments;
|
|
1963
1974
|
return new Promise(function(resolve, reject) {
|
|
1964
1975
|
var gen = fn.apply(self, args);
|
|
1965
1976
|
function _next(value) {
|
|
1966
|
-
asyncGeneratorStep$
|
|
1977
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
|
|
1967
1978
|
}
|
|
1968
1979
|
function _throw(err) {
|
|
1969
|
-
asyncGeneratorStep$
|
|
1980
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1970
1981
|
}
|
|
1971
1982
|
_next(undefined);
|
|
1972
1983
|
});
|
|
1973
1984
|
};
|
|
1974
1985
|
}
|
|
1975
|
-
function _ts_generator$
|
|
1986
|
+
function _ts_generator$6(thisArg, body) {
|
|
1976
1987
|
var f, y, t, _ = {
|
|
1977
1988
|
label: 0,
|
|
1978
1989
|
sent: function() {
|
|
@@ -2186,8 +2197,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2186
2197
|
* 全屏
|
|
2187
2198
|
* @returns Promise<void>
|
|
2188
2199
|
*/ _proto.fullscreen = function fullscreen() {
|
|
2189
|
-
return _async_to_generator$
|
|
2190
|
-
return _ts_generator$
|
|
2200
|
+
return _async_to_generator$6(function() {
|
|
2201
|
+
return _ts_generator$6(this, function(_state) {
|
|
2191
2202
|
switch(_state.label){
|
|
2192
2203
|
case 0:
|
|
2193
2204
|
if (!Utils.isMobile) return [
|
|
@@ -2222,8 +2233,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2222
2233
|
* 退出全屏
|
|
2223
2234
|
* @returns Promise<void>
|
|
2224
2235
|
*/ _proto.exitFullscreen = function exitFullscreen() {
|
|
2225
|
-
return _async_to_generator$
|
|
2226
|
-
return _ts_generator$
|
|
2236
|
+
return _async_to_generator$6(function() {
|
|
2237
|
+
return _ts_generator$6(this, function(_state) {
|
|
2227
2238
|
switch(_state.label){
|
|
2228
2239
|
case 0:
|
|
2229
2240
|
if (!Utils.isMobile) return [
|
|
@@ -2262,8 +2273,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2262
2273
|
* 全屏切换
|
|
2263
2274
|
* @returns Promise<void>
|
|
2264
2275
|
*/ _proto.toggle = function toggle() {
|
|
2265
|
-
return _async_to_generator$
|
|
2266
|
-
return _ts_generator$
|
|
2276
|
+
return _async_to_generator$6(function() {
|
|
2277
|
+
return _ts_generator$6(this, function(_state) {
|
|
2267
2278
|
switch(_state.label){
|
|
2268
2279
|
case 0:
|
|
2269
2280
|
if (!Utils.isMobile) return [
|
|
@@ -2386,8 +2397,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2386
2397
|
return Fullscreen;
|
|
2387
2398
|
}();
|
|
2388
2399
|
|
|
2389
|
-
function _extends$
|
|
2390
|
-
_extends$
|
|
2400
|
+
function _extends$m() {
|
|
2401
|
+
_extends$m = Object.assign || function(target) {
|
|
2391
2402
|
for(var i = 1; i < arguments.length; i++){
|
|
2392
2403
|
var source = arguments[i];
|
|
2393
2404
|
for(var key in source){
|
|
@@ -2398,9 +2409,9 @@ function _extends$l() {
|
|
|
2398
2409
|
}
|
|
2399
2410
|
return target;
|
|
2400
2411
|
};
|
|
2401
|
-
return _extends$
|
|
2412
|
+
return _extends$m.apply(this, arguments);
|
|
2402
2413
|
}
|
|
2403
|
-
function _inherits$
|
|
2414
|
+
function _inherits$m(subClass, superClass) {
|
|
2404
2415
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2405
2416
|
throw new TypeError("Super expression must either be null or a function");
|
|
2406
2417
|
}
|
|
@@ -2411,24 +2422,24 @@ function _inherits$l(subClass, superClass) {
|
|
|
2411
2422
|
configurable: true
|
|
2412
2423
|
}
|
|
2413
2424
|
});
|
|
2414
|
-
if (superClass) _set_prototype_of$
|
|
2425
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
2415
2426
|
}
|
|
2416
|
-
function _set_prototype_of$
|
|
2417
|
-
_set_prototype_of$
|
|
2427
|
+
function _set_prototype_of$m(o, p) {
|
|
2428
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2418
2429
|
o.__proto__ = p;
|
|
2419
2430
|
return o;
|
|
2420
2431
|
};
|
|
2421
|
-
return _set_prototype_of$
|
|
2432
|
+
return _set_prototype_of$m(o, p);
|
|
2422
2433
|
}
|
|
2423
2434
|
/**
|
|
2424
2435
|
* 全屏控件
|
|
2425
2436
|
* @category Control
|
|
2426
2437
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2427
|
-
_inherits$
|
|
2438
|
+
_inherits$m(Fullscreen, Control);
|
|
2428
2439
|
function Fullscreen(options) {
|
|
2429
2440
|
var _this;
|
|
2430
2441
|
var _options_props, _this_options;
|
|
2431
|
-
_this = Control.call(this, _extends$
|
|
2442
|
+
_this = Control.call(this, _extends$m({
|
|
2432
2443
|
tagName: 'span',
|
|
2433
2444
|
classNameSuffix: 'fullscreen',
|
|
2434
2445
|
controlType: 'button'
|
|
@@ -2493,8 +2504,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
2493
2504
|
return Fullscreen;
|
|
2494
2505
|
}(Control);
|
|
2495
2506
|
|
|
2496
|
-
function _extends$
|
|
2497
|
-
_extends$
|
|
2507
|
+
function _extends$l() {
|
|
2508
|
+
_extends$l = Object.assign || function(target) {
|
|
2498
2509
|
for(var i = 1; i < arguments.length; i++){
|
|
2499
2510
|
var source = arguments[i];
|
|
2500
2511
|
for(var key in source){
|
|
@@ -2505,9 +2516,9 @@ function _extends$k() {
|
|
|
2505
2516
|
}
|
|
2506
2517
|
return target;
|
|
2507
2518
|
};
|
|
2508
|
-
return _extends$
|
|
2519
|
+
return _extends$l.apply(this, arguments);
|
|
2509
2520
|
}
|
|
2510
|
-
function _inherits$
|
|
2521
|
+
function _inherits$l(subClass, superClass) {
|
|
2511
2522
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2512
2523
|
throw new TypeError("Super expression must either be null or a function");
|
|
2513
2524
|
}
|
|
@@ -2518,24 +2529,24 @@ function _inherits$k(subClass, superClass) {
|
|
|
2518
2529
|
configurable: true
|
|
2519
2530
|
}
|
|
2520
2531
|
});
|
|
2521
|
-
if (superClass) _set_prototype_of$
|
|
2532
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
2522
2533
|
}
|
|
2523
|
-
function _set_prototype_of$
|
|
2524
|
-
_set_prototype_of$
|
|
2534
|
+
function _set_prototype_of$l(o, p) {
|
|
2535
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2525
2536
|
o.__proto__ = p;
|
|
2526
2537
|
return o;
|
|
2527
2538
|
};
|
|
2528
|
-
return _set_prototype_of$
|
|
2539
|
+
return _set_prototype_of$l(o, p);
|
|
2529
2540
|
}
|
|
2530
2541
|
/**
|
|
2531
2542
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2532
2543
|
* @category Control
|
|
2533
2544
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2534
|
-
_inherits$
|
|
2545
|
+
_inherits$l(Rec, Control);
|
|
2535
2546
|
function Rec(options) {
|
|
2536
2547
|
var _this;
|
|
2537
2548
|
var _options_props;
|
|
2538
|
-
_this = Control.call(this, _extends$
|
|
2549
|
+
_this = Control.call(this, _extends$l({}, options, {
|
|
2539
2550
|
tagName: 'div',
|
|
2540
2551
|
controlType: 'block',
|
|
2541
2552
|
classNameSuffix: 'rec'
|
|
@@ -2810,6 +2821,7 @@ var zh = {
|
|
|
2810
2821
|
BTN_RECORDVIDEO: '录屏',
|
|
2811
2822
|
BTN_CAPTURE: '截图',
|
|
2812
2823
|
BTN_TALK: '对讲',
|
|
2824
|
+
BTN_BROADCAST: '语音广播',
|
|
2813
2825
|
BTN_ZOOM: '电子放大',
|
|
2814
2826
|
BTN_3D_ZOOM: '3D定位',
|
|
2815
2827
|
BTN_PTZ: '云台控制',
|
|
@@ -3080,6 +3092,7 @@ var en = {
|
|
|
3080
3092
|
BTN_RECORDVIDEO: 'Screen recording',
|
|
3081
3093
|
BTN_CAPTURE: 'Screenshot',
|
|
3082
3094
|
BTN_TALK: 'Intercom',
|
|
3095
|
+
BTN_BROADCAST: 'Voice broadcast',
|
|
3083
3096
|
BTN_ZOOM: 'Electronic zoom',
|
|
3084
3097
|
BTN_3D_ZOOM: '3D positioning',
|
|
3085
3098
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3266,6 +3279,11 @@ var en = {
|
|
|
3266
3279
|
part: 'left',
|
|
3267
3280
|
isrender: 1
|
|
3268
3281
|
},
|
|
3282
|
+
{
|
|
3283
|
+
iconId: 'broadcast',
|
|
3284
|
+
part: 'left',
|
|
3285
|
+
isrender: 1
|
|
3286
|
+
},
|
|
3269
3287
|
{
|
|
3270
3288
|
iconId: 'zoom',
|
|
3271
3289
|
part: 'left',
|
|
@@ -3452,6 +3470,12 @@ var en = {
|
|
|
3452
3470
|
defaultActive: 0,
|
|
3453
3471
|
isrender: 1
|
|
3454
3472
|
},
|
|
3473
|
+
{
|
|
3474
|
+
iconId: 'broadcast',
|
|
3475
|
+
part: 'left',
|
|
3476
|
+
defaultActive: 0,
|
|
3477
|
+
isrender: 1
|
|
3478
|
+
},
|
|
3455
3479
|
{
|
|
3456
3480
|
iconId: 'zoom',
|
|
3457
3481
|
part: 'left',
|
|
@@ -3707,7 +3731,7 @@ var en = {
|
|
|
3707
3731
|
voice: voice
|
|
3708
3732
|
};
|
|
3709
3733
|
|
|
3710
|
-
function _inherits$
|
|
3734
|
+
function _inherits$k(subClass, superClass) {
|
|
3711
3735
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3712
3736
|
throw new TypeError("Super expression must either be null or a function");
|
|
3713
3737
|
}
|
|
@@ -3718,23 +3742,23 @@ function _inherits$j(subClass, superClass) {
|
|
|
3718
3742
|
configurable: true
|
|
3719
3743
|
}
|
|
3720
3744
|
});
|
|
3721
|
-
if (superClass) _set_prototype_of$
|
|
3745
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
3722
3746
|
}
|
|
3723
|
-
function _set_prototype_of$
|
|
3724
|
-
_set_prototype_of$
|
|
3747
|
+
function _set_prototype_of$k(o, p) {
|
|
3748
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3725
3749
|
o.__proto__ = p;
|
|
3726
3750
|
return o;
|
|
3727
3751
|
};
|
|
3728
|
-
return _set_prototype_of$
|
|
3752
|
+
return _set_prototype_of$k(o, p);
|
|
3729
3753
|
}
|
|
3730
3754
|
/**
|
|
3731
3755
|
* 截图控件
|
|
3732
3756
|
* @category Content
|
|
3733
3757
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3734
|
-
_inherits$
|
|
3758
|
+
_inherits$k(Content, EventEmitter);
|
|
3735
3759
|
function Content(options) {
|
|
3736
3760
|
var _this;
|
|
3737
|
-
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
3761
|
+
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
3738
3762
|
_this.options = options;
|
|
3739
3763
|
_this._scaleMode = options.scaleMode || 0;
|
|
3740
3764
|
_this.$wrapper = document.createElement('div');
|
|
@@ -3750,11 +3774,12 @@ function _set_prototype_of$j(o, p) {
|
|
|
3750
3774
|
$popupContainer.appendChild(_this.$wrapper);
|
|
3751
3775
|
}
|
|
3752
3776
|
_this.on(EVENTS.videoInfo, function(originWidth, originHeight) {
|
|
3753
|
-
_this.
|
|
3754
|
-
});
|
|
3755
|
-
_this.on(EVENTS.resize, function() {
|
|
3756
|
-
_this._rerender();
|
|
3777
|
+
_this.rerender(originWidth, originHeight);
|
|
3757
3778
|
});
|
|
3779
|
+
// prettier-ignore
|
|
3780
|
+
_this._cleanUpResizeObserver = Utils.resizeObserver(_this.$wrapper, throttle(function() {
|
|
3781
|
+
_this.rerender();
|
|
3782
|
+
}, 20));
|
|
3758
3783
|
return _this;
|
|
3759
3784
|
}
|
|
3760
3785
|
var _proto = Content.prototype;
|
|
@@ -3763,7 +3788,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3763
3788
|
* @param {number} originWidth 画面宽度
|
|
3764
3789
|
* @param {number} originHeight 画面高度
|
|
3765
3790
|
* @returns {void}
|
|
3766
|
-
*/ _proto.
|
|
3791
|
+
*/ _proto.rerender = function rerender(originWidth, originHeight) {
|
|
3767
3792
|
if (originWidth === void 0) originWidth = 0;
|
|
3768
3793
|
if (originHeight === void 0) originHeight = 0;
|
|
3769
3794
|
var width = this.$wrapper.clientWidth;
|
|
@@ -3787,6 +3812,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3787
3812
|
if (this._scaleMode === THEME_SCALE_MODE_TYPE.fullAuto) {
|
|
3788
3813
|
objectFill = 'cover';
|
|
3789
3814
|
}
|
|
3815
|
+
//
|
|
3790
3816
|
if (width > 0 && height > 0 && this._originWidth > 0 && this._originHeight > 0 && this.$video) {
|
|
3791
3817
|
var left = (width - this._originWidth) / 2;
|
|
3792
3818
|
var top = (height - this._originHeight) / 2;
|
|
@@ -3816,10 +3842,15 @@ function _set_prototype_of$j(o, p) {
|
|
|
3816
3842
|
_proto.setScaleMode = function setScaleMode(scaleMode) {
|
|
3817
3843
|
if (scaleMode === void 0) scaleMode = 0;
|
|
3818
3844
|
this._scaleMode = scaleMode;
|
|
3819
|
-
this.
|
|
3845
|
+
this.rerender();
|
|
3820
3846
|
};
|
|
3821
3847
|
_proto.destroy = function destroy() {
|
|
3822
3848
|
var _this_$wrapper;
|
|
3849
|
+
if (this._cleanUpResizeObserver) {
|
|
3850
|
+
this._cleanUpResizeObserver.unobserve();
|
|
3851
|
+
// this._cleanUpResizeObserver.disconnect();
|
|
3852
|
+
this._cleanUpResizeObserver = null;
|
|
3853
|
+
}
|
|
3823
3854
|
if (this.$video) {
|
|
3824
3855
|
this.$video.remove();
|
|
3825
3856
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -3839,8 +3870,8 @@ function _set_prototype_of$j(o, p) {
|
|
|
3839
3870
|
return Content;
|
|
3840
3871
|
}(EventEmitter);
|
|
3841
3872
|
|
|
3842
|
-
function _extends$
|
|
3843
|
-
_extends$
|
|
3873
|
+
function _extends$k() {
|
|
3874
|
+
_extends$k = Object.assign || function(target) {
|
|
3844
3875
|
for(var i = 1; i < arguments.length; i++){
|
|
3845
3876
|
var source = arguments[i];
|
|
3846
3877
|
for(var key in source){
|
|
@@ -3851,9 +3882,9 @@ function _extends$j() {
|
|
|
3851
3882
|
}
|
|
3852
3883
|
return target;
|
|
3853
3884
|
};
|
|
3854
|
-
return _extends$
|
|
3885
|
+
return _extends$k.apply(this, arguments);
|
|
3855
3886
|
}
|
|
3856
|
-
function _inherits$
|
|
3887
|
+
function _inherits$j(subClass, superClass) {
|
|
3857
3888
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3858
3889
|
throw new TypeError("Super expression must either be null or a function");
|
|
3859
3890
|
}
|
|
@@ -3864,23 +3895,23 @@ function _inherits$i(subClass, superClass) {
|
|
|
3864
3895
|
configurable: true
|
|
3865
3896
|
}
|
|
3866
3897
|
});
|
|
3867
|
-
if (superClass) _set_prototype_of$
|
|
3898
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
3868
3899
|
}
|
|
3869
|
-
function _set_prototype_of$
|
|
3870
|
-
_set_prototype_of$
|
|
3900
|
+
function _set_prototype_of$j(o, p) {
|
|
3901
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3871
3902
|
o.__proto__ = p;
|
|
3872
3903
|
return o;
|
|
3873
3904
|
};
|
|
3874
|
-
return _set_prototype_of$
|
|
3905
|
+
return _set_prototype_of$j(o, p);
|
|
3875
3906
|
}
|
|
3876
3907
|
/**
|
|
3877
3908
|
* 更多控件
|
|
3878
3909
|
* @category Control
|
|
3879
3910
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3880
|
-
_inherits$
|
|
3911
|
+
_inherits$j(More, Control);
|
|
3881
3912
|
function More(options) {
|
|
3882
3913
|
var _this;
|
|
3883
|
-
_this = Control.call(this, _extends$
|
|
3914
|
+
_this = Control.call(this, _extends$k({}, options, {
|
|
3884
3915
|
tagName: 'span',
|
|
3885
3916
|
controlType: 'button',
|
|
3886
3917
|
classNameSuffix: 'more'
|
|
@@ -3924,11 +3955,13 @@ function _set_prototype_of$i(o, p) {
|
|
|
3924
3955
|
/**
|
|
3925
3956
|
* 添加
|
|
3926
3957
|
* @param control
|
|
3927
|
-
*/ _proto.add = function add(key, part, control) {
|
|
3958
|
+
*/ _proto.add = function add(key, part, control, props) {
|
|
3928
3959
|
this.list.unshift({
|
|
3929
3960
|
part: part,
|
|
3930
3961
|
key: key,
|
|
3931
|
-
control: control
|
|
3962
|
+
control: control,
|
|
3963
|
+
width: props.width,
|
|
3964
|
+
height: props.height
|
|
3932
3965
|
});
|
|
3933
3966
|
};
|
|
3934
3967
|
/**
|
|
@@ -4074,6 +4107,16 @@ function debounce(func, wait) {
|
|
|
4074
4107
|
(_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_talkControl = _theme_controls.talkControl) == null ? void 0 : (_theme_controls_talkControl_emit = _theme_controls_talkControl.emit) == null ? void 0 : _theme_controls_talkControl_emit.call(_theme_controls_talkControl, EVENTS.talkVolumeChange, value);
|
|
4075
4108
|
});
|
|
4076
4109
|
// =======================================================
|
|
4110
|
+
// 语音广播
|
|
4111
|
+
// =======================================================
|
|
4112
|
+
theme.on(EVENTS.broadcastChange, function(active) {
|
|
4113
|
+
var _theme_controls, _theme_controls_broadcastControl, _theme_controls1;
|
|
4114
|
+
if (((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.broadcastControl) && active !== ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl = _theme_controls1.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl.active)) {
|
|
4115
|
+
var _theme_controls_broadcastControl1, _theme_controls2;
|
|
4116
|
+
(_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl1 = _theme_controls2.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl1.emit(EVENTS.broadcastChange, active);
|
|
4117
|
+
}
|
|
4118
|
+
});
|
|
4119
|
+
// =======================================================
|
|
4077
4120
|
// 录制
|
|
4078
4121
|
// =======================================================
|
|
4079
4122
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4169,7 +4212,7 @@ function debounce(func, wait) {
|
|
|
4169
4212
|
*
|
|
4170
4213
|
* @param theme - Theme
|
|
4171
4214
|
*/ function _controlEventemitter(theme) {
|
|
4172
|
-
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;
|
|
4215
|
+
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;
|
|
4173
4216
|
// Controls
|
|
4174
4217
|
if (theme._recFooter) {
|
|
4175
4218
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4262,8 +4305,17 @@ function debounce(func, wait) {
|
|
|
4262
4305
|
theme.emit(EVENTS.control.talkDestroy);
|
|
4263
4306
|
});
|
|
4264
4307
|
}
|
|
4308
|
+
// 语音广播控件
|
|
4309
|
+
if ((_theme_controls5 = theme.controls) == null ? void 0 : _theme_controls5.broadcastControl) {
|
|
4310
|
+
theme.controls.broadcastControl.on(EVENTS.control.broadcastChange, function(active) {
|
|
4311
|
+
theme.emit(EVENTS.control.broadcastChange, active);
|
|
4312
|
+
});
|
|
4313
|
+
theme.controls.broadcastControl.on(EVENTS.control.broadcastDestroy, function() {
|
|
4314
|
+
theme.emit(EVENTS.control.broadcastDestroy);
|
|
4315
|
+
});
|
|
4316
|
+
}
|
|
4265
4317
|
// 缩放控件
|
|
4266
|
-
if ((
|
|
4318
|
+
if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.zoomControl) {
|
|
4267
4319
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4268
4320
|
if (theme.zoom !== value) {
|
|
4269
4321
|
theme.zoom = value;
|
|
@@ -4285,7 +4337,7 @@ function debounce(func, wait) {
|
|
|
4285
4337
|
});
|
|
4286
4338
|
}
|
|
4287
4339
|
// 清晰度控件
|
|
4288
|
-
if ((
|
|
4340
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.definitionControl) {
|
|
4289
4341
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4290
4342
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4291
4343
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4298,7 +4350,7 @@ function debounce(func, wait) {
|
|
|
4298
4350
|
});
|
|
4299
4351
|
}
|
|
4300
4352
|
// 倍速控件
|
|
4301
|
-
if ((
|
|
4353
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.speedControl) {
|
|
4302
4354
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4303
4355
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4304
4356
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4311,7 +4363,7 @@ function debounce(func, wait) {
|
|
|
4311
4363
|
});
|
|
4312
4364
|
}
|
|
4313
4365
|
// 截图控件
|
|
4314
|
-
if ((
|
|
4366
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.capturePictureControl) {
|
|
4315
4367
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4316
4368
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4317
4369
|
});
|
|
@@ -4320,25 +4372,25 @@ function debounce(func, wait) {
|
|
|
4320
4372
|
});
|
|
4321
4373
|
}
|
|
4322
4374
|
// 全屏控件
|
|
4323
|
-
if ((
|
|
4375
|
+
if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.fullscreenControl) {
|
|
4324
4376
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4325
4377
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4326
4378
|
});
|
|
4327
4379
|
}
|
|
4328
4380
|
// 全局全屏控件
|
|
4329
|
-
if ((
|
|
4381
|
+
if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.globalFullscreenControl) {
|
|
4330
4382
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4331
4383
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4332
4384
|
});
|
|
4333
4385
|
}
|
|
4334
4386
|
// 设备信息控件
|
|
4335
|
-
if ((
|
|
4387
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.deviceControl) {
|
|
4336
4388
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4337
4389
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4338
4390
|
});
|
|
4339
4391
|
}
|
|
4340
4392
|
// 回放类型切换控件
|
|
4341
|
-
if ((
|
|
4393
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.recControl) {
|
|
4342
4394
|
// prettier-ignore
|
|
4343
4395
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4344
4396
|
if (theme.recType !== type) {
|
|
@@ -4359,7 +4411,7 @@ function debounce(func, wait) {
|
|
|
4359
4411
|
});
|
|
4360
4412
|
}
|
|
4361
4413
|
// 时间轴控件
|
|
4362
|
-
if ((
|
|
4414
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.timeLineControl) {
|
|
4363
4415
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4364
4416
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4365
4417
|
});
|
|
@@ -4376,7 +4428,7 @@ function debounce(func, wait) {
|
|
|
4376
4428
|
});
|
|
4377
4429
|
}
|
|
4378
4430
|
// 日历控件
|
|
4379
|
-
if ((
|
|
4431
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.dateControl) {
|
|
4380
4432
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4381
4433
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4382
4434
|
});
|
|
@@ -4387,12 +4439,6 @@ function debounce(func, wait) {
|
|
|
4387
4439
|
theme.emit(EVENTS.control.recDestroy);
|
|
4388
4440
|
});
|
|
4389
4441
|
}
|
|
4390
|
-
// content
|
|
4391
|
-
if (theme.contentControl) {
|
|
4392
|
-
theme.contentControl.on(EVENTS.control.contentRerender, function(info) {
|
|
4393
|
-
theme.emit(EVENTS.control.contentRerender, info);
|
|
4394
|
-
});
|
|
4395
|
-
}
|
|
4396
4442
|
}
|
|
4397
4443
|
var ignoreList = [
|
|
4398
4444
|
EVENTS.getOSDTime,
|
|
@@ -4477,8 +4523,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4477
4523
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4478
4524
|
return Constructor;
|
|
4479
4525
|
}
|
|
4480
|
-
function _extends$
|
|
4481
|
-
_extends$
|
|
4526
|
+
function _extends$j() {
|
|
4527
|
+
_extends$j = Object.assign || function(target) {
|
|
4482
4528
|
for(var i = 1; i < arguments.length; i++){
|
|
4483
4529
|
var source = arguments[i];
|
|
4484
4530
|
for(var key in source){
|
|
@@ -4489,9 +4535,9 @@ function _extends$i() {
|
|
|
4489
4535
|
}
|
|
4490
4536
|
return target;
|
|
4491
4537
|
};
|
|
4492
|
-
return _extends$
|
|
4538
|
+
return _extends$j.apply(this, arguments);
|
|
4493
4539
|
}
|
|
4494
|
-
function _inherits$
|
|
4540
|
+
function _inherits$i(subClass, superClass) {
|
|
4495
4541
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4496
4542
|
throw new TypeError("Super expression must either be null or a function");
|
|
4497
4543
|
}
|
|
@@ -4502,14 +4548,14 @@ function _inherits$h(subClass, superClass) {
|
|
|
4502
4548
|
configurable: true
|
|
4503
4549
|
}
|
|
4504
4550
|
});
|
|
4505
|
-
if (superClass) _set_prototype_of$
|
|
4551
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
4506
4552
|
}
|
|
4507
|
-
function _set_prototype_of$
|
|
4508
|
-
_set_prototype_of$
|
|
4553
|
+
function _set_prototype_of$i(o, p) {
|
|
4554
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4509
4555
|
o.__proto__ = p;
|
|
4510
4556
|
return o;
|
|
4511
4557
|
};
|
|
4512
|
-
return _set_prototype_of$
|
|
4558
|
+
return _set_prototype_of$i(o, p);
|
|
4513
4559
|
}
|
|
4514
4560
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4515
4561
|
open: false,
|
|
@@ -4519,10 +4565,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4519
4565
|
* 电子放大控件
|
|
4520
4566
|
* @category Control
|
|
4521
4567
|
*/ var Zoom$1 = /*#__PURE__*/ function(Control) {
|
|
4522
|
-
_inherits$
|
|
4568
|
+
_inherits$i(Zoom, Control);
|
|
4523
4569
|
function Zoom(options) {
|
|
4524
4570
|
var _this;
|
|
4525
|
-
_this = Control.call(this, _extends$
|
|
4571
|
+
_this = Control.call(this, _extends$j({}, options, {
|
|
4526
4572
|
tagName: 'span',
|
|
4527
4573
|
controlType: 'button',
|
|
4528
4574
|
classNameSuffix: 'zoom'
|
|
@@ -5379,8 +5425,8 @@ function requireDist$1 () {
|
|
|
5379
5425
|
var distExports$1 = requireDist$1();
|
|
5380
5426
|
var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$1);
|
|
5381
5427
|
|
|
5382
|
-
function _extends$
|
|
5383
|
-
_extends$
|
|
5428
|
+
function _extends$i() {
|
|
5429
|
+
_extends$i = Object.assign || function(target) {
|
|
5384
5430
|
for(var i = 1; i < arguments.length; i++){
|
|
5385
5431
|
var source = arguments[i];
|
|
5386
5432
|
for(var key in source){
|
|
@@ -5391,10 +5437,10 @@ function _extends$h() {
|
|
|
5391
5437
|
}
|
|
5392
5438
|
return target;
|
|
5393
5439
|
};
|
|
5394
|
-
return _extends$
|
|
5440
|
+
return _extends$i.apply(this, arguments);
|
|
5395
5441
|
}
|
|
5396
5442
|
function __zoom(theme, container, options) {
|
|
5397
|
-
theme.zoomUtil = new Zoom(container, _extends$
|
|
5443
|
+
theme.zoomUtil = new Zoom(container, _extends$i({}, options || {}, {
|
|
5398
5444
|
min: 1,
|
|
5399
5445
|
onChange: function(zoom, reset) {
|
|
5400
5446
|
if (zoom !== theme._zoom) {
|
|
@@ -5412,7 +5458,7 @@ function __zoom(theme, container, options) {
|
|
|
5412
5458
|
}));
|
|
5413
5459
|
}
|
|
5414
5460
|
|
|
5415
|
-
function asyncGeneratorStep$
|
|
5461
|
+
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5416
5462
|
try {
|
|
5417
5463
|
var info = gen[key](arg);
|
|
5418
5464
|
var value = info.value;
|
|
@@ -5426,22 +5472,22 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5426
5472
|
Promise.resolve(value).then(_next, _throw);
|
|
5427
5473
|
}
|
|
5428
5474
|
}
|
|
5429
|
-
function _async_to_generator$
|
|
5475
|
+
function _async_to_generator$5(fn) {
|
|
5430
5476
|
return function() {
|
|
5431
5477
|
var self = this, args = arguments;
|
|
5432
5478
|
return new Promise(function(resolve, reject) {
|
|
5433
5479
|
var gen = fn.apply(self, args);
|
|
5434
5480
|
function _next(value) {
|
|
5435
|
-
asyncGeneratorStep$
|
|
5481
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
5436
5482
|
}
|
|
5437
5483
|
function _throw(err) {
|
|
5438
|
-
asyncGeneratorStep$
|
|
5484
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5439
5485
|
}
|
|
5440
5486
|
_next(undefined);
|
|
5441
5487
|
});
|
|
5442
5488
|
};
|
|
5443
5489
|
}
|
|
5444
|
-
function _ts_generator$
|
|
5490
|
+
function _ts_generator$5(thisArg, body) {
|
|
5445
5491
|
var f, y, t, _ = {
|
|
5446
5492
|
label: 0,
|
|
5447
5493
|
sent: function() {
|
|
@@ -5533,9 +5579,9 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5533
5579
|
}
|
|
5534
5580
|
}
|
|
5535
5581
|
function getThemeDataByTemplate(theme, id) {
|
|
5536
|
-
return _async_to_generator$
|
|
5582
|
+
return _async_to_generator$5(function() {
|
|
5537
5583
|
var _theme_options_token_httpToken, _theme_options_token, url;
|
|
5538
|
-
return _ts_generator$
|
|
5584
|
+
return _ts_generator$5(this, function(_state) {
|
|
5539
5585
|
switch(_state.label){
|
|
5540
5586
|
case 0:
|
|
5541
5587
|
url = theme.options.env.domain + "/api/service/media/template/getDetail?accessToken=" + (theme.options.accessToken || ((_theme_options_token = theme.options.token) == null ? void 0 : (_theme_options_token_httpToken = _theme_options_token.httpToken) == null ? void 0 : _theme_options_token_httpToken.url)) + "&id=" + id;
|
|
@@ -5544,8 +5590,8 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5544
5590
|
fetch(url, {
|
|
5545
5591
|
method: 'GET'
|
|
5546
5592
|
}).then(function(response) {
|
|
5547
|
-
return _async_to_generator$
|
|
5548
|
-
return _ts_generator$
|
|
5593
|
+
return _async_to_generator$5(function() {
|
|
5594
|
+
return _ts_generator$5(this, function(_state) {
|
|
5549
5595
|
switch(_state.label){
|
|
5550
5596
|
case 0:
|
|
5551
5597
|
return [
|
|
@@ -5590,7 +5636,7 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5590
5636
|
})();
|
|
5591
5637
|
}
|
|
5592
5638
|
|
|
5593
|
-
function asyncGeneratorStep$
|
|
5639
|
+
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5594
5640
|
try {
|
|
5595
5641
|
var info = gen[key](arg);
|
|
5596
5642
|
var value = info.value;
|
|
@@ -5604,23 +5650,23 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5604
5650
|
Promise.resolve(value).then(_next, _throw);
|
|
5605
5651
|
}
|
|
5606
5652
|
}
|
|
5607
|
-
function _async_to_generator$
|
|
5653
|
+
function _async_to_generator$4(fn) {
|
|
5608
5654
|
return function() {
|
|
5609
5655
|
var self = this, args = arguments;
|
|
5610
5656
|
return new Promise(function(resolve, reject) {
|
|
5611
5657
|
var gen = fn.apply(self, args);
|
|
5612
5658
|
function _next(value) {
|
|
5613
|
-
asyncGeneratorStep$
|
|
5659
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
|
|
5614
5660
|
}
|
|
5615
5661
|
function _throw(err) {
|
|
5616
|
-
asyncGeneratorStep$
|
|
5662
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5617
5663
|
}
|
|
5618
5664
|
_next(undefined);
|
|
5619
5665
|
});
|
|
5620
5666
|
};
|
|
5621
5667
|
}
|
|
5622
|
-
function _extends$
|
|
5623
|
-
_extends$
|
|
5668
|
+
function _extends$h() {
|
|
5669
|
+
_extends$h = Object.assign || function(target) {
|
|
5624
5670
|
for(var i = 1; i < arguments.length; i++){
|
|
5625
5671
|
var source = arguments[i];
|
|
5626
5672
|
for(var key in source){
|
|
@@ -5631,9 +5677,9 @@ function _extends$g() {
|
|
|
5631
5677
|
}
|
|
5632
5678
|
return target;
|
|
5633
5679
|
};
|
|
5634
|
-
return _extends$
|
|
5680
|
+
return _extends$h.apply(this, arguments);
|
|
5635
5681
|
}
|
|
5636
|
-
function _ts_generator$
|
|
5682
|
+
function _ts_generator$4(thisArg, body) {
|
|
5637
5683
|
var f, y, t, _ = {
|
|
5638
5684
|
label: 0,
|
|
5639
5685
|
sent: function() {
|
|
@@ -5759,7 +5805,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
5759
5805
|
}
|
|
5760
5806
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5761
5807
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5762
|
-
recControls.push(recControls[0] ? _extends$
|
|
5808
|
+
recControls.push(recControls[0] ? _extends$h({}, item, {
|
|
5763
5809
|
part: recControls[0].part
|
|
5764
5810
|
}) : item);
|
|
5765
5811
|
return false;
|
|
@@ -5782,7 +5828,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
5782
5828
|
}
|
|
5783
5829
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5784
5830
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5785
|
-
recControls.push(recControls[0] ? _extends$
|
|
5831
|
+
recControls.push(recControls[0] ? _extends$h({}, item, {
|
|
5786
5832
|
part: recControls[0].part
|
|
5787
5833
|
}) : item);
|
|
5788
5834
|
return false;
|
|
@@ -5844,9 +5890,9 @@ function _filterLeftRightControls(btnList) {
|
|
|
5844
5890
|
* @param data
|
|
5845
5891
|
* @returns
|
|
5846
5892
|
*/ function getThemeData(theme, data) {
|
|
5847
|
-
return _async_to_generator$
|
|
5893
|
+
return _async_to_generator$4(function() {
|
|
5848
5894
|
var themeData, _theme_logger, template;
|
|
5849
|
-
return _ts_generator$
|
|
5895
|
+
return _ts_generator$4(this, function(_state) {
|
|
5850
5896
|
switch(_state.label){
|
|
5851
5897
|
case 0:
|
|
5852
5898
|
themeData = data;
|
|
@@ -6037,8 +6083,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
6037
6083
|
return Component;
|
|
6038
6084
|
}();
|
|
6039
6085
|
|
|
6040
|
-
function _extends$
|
|
6041
|
-
_extends$
|
|
6086
|
+
function _extends$g() {
|
|
6087
|
+
_extends$g = Object.assign || function(target) {
|
|
6042
6088
|
for(var i = 1; i < arguments.length; i++){
|
|
6043
6089
|
var source = arguments[i];
|
|
6044
6090
|
for(var key in source){
|
|
@@ -6049,9 +6095,9 @@ function _extends$f() {
|
|
|
6049
6095
|
}
|
|
6050
6096
|
return target;
|
|
6051
6097
|
};
|
|
6052
|
-
return _extends$
|
|
6098
|
+
return _extends$g.apply(this, arguments);
|
|
6053
6099
|
}
|
|
6054
|
-
function _inherits$
|
|
6100
|
+
function _inherits$h(subClass, superClass) {
|
|
6055
6101
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6056
6102
|
throw new TypeError("Super expression must either be null or a function");
|
|
6057
6103
|
}
|
|
@@ -6062,28 +6108,28 @@ function _inherits$g(subClass, superClass) {
|
|
|
6062
6108
|
configurable: true
|
|
6063
6109
|
}
|
|
6064
6110
|
});
|
|
6065
|
-
if (superClass) _set_prototype_of$
|
|
6111
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
6066
6112
|
}
|
|
6067
|
-
function _set_prototype_of$
|
|
6068
|
-
_set_prototype_of$
|
|
6113
|
+
function _set_prototype_of$h(o, p) {
|
|
6114
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6069
6115
|
o.__proto__ = p;
|
|
6070
6116
|
return o;
|
|
6071
6117
|
};
|
|
6072
|
-
return _set_prototype_of$
|
|
6118
|
+
return _set_prototype_of$h(o, p);
|
|
6073
6119
|
}
|
|
6074
6120
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
6075
|
-
_inherits$
|
|
6121
|
+
_inherits$h(Footer, Component);
|
|
6076
6122
|
function Footer(options) {
|
|
6077
6123
|
if (options === void 0) options = {};
|
|
6078
|
-
return Component.call(this, _extends$
|
|
6124
|
+
return Component.call(this, _extends$g({}, options, {
|
|
6079
6125
|
cType: 'footer'
|
|
6080
6126
|
})) || this;
|
|
6081
6127
|
}
|
|
6082
6128
|
return Footer;
|
|
6083
6129
|
}(Component);
|
|
6084
6130
|
|
|
6085
|
-
function _extends$
|
|
6086
|
-
_extends$
|
|
6131
|
+
function _extends$f() {
|
|
6132
|
+
_extends$f = Object.assign || function(target) {
|
|
6087
6133
|
for(var i = 1; i < arguments.length; i++){
|
|
6088
6134
|
var source = arguments[i];
|
|
6089
6135
|
for(var key in source){
|
|
@@ -6094,9 +6140,9 @@ function _extends$e() {
|
|
|
6094
6140
|
}
|
|
6095
6141
|
return target;
|
|
6096
6142
|
};
|
|
6097
|
-
return _extends$
|
|
6143
|
+
return _extends$f.apply(this, arguments);
|
|
6098
6144
|
}
|
|
6099
|
-
function _inherits$
|
|
6145
|
+
function _inherits$g(subClass, superClass) {
|
|
6100
6146
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6101
6147
|
throw new TypeError("Super expression must either be null or a function");
|
|
6102
6148
|
}
|
|
@@ -6107,20 +6153,20 @@ function _inherits$f(subClass, superClass) {
|
|
|
6107
6153
|
configurable: true
|
|
6108
6154
|
}
|
|
6109
6155
|
});
|
|
6110
|
-
if (superClass) _set_prototype_of$
|
|
6156
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6111
6157
|
}
|
|
6112
|
-
function _set_prototype_of$
|
|
6113
|
-
_set_prototype_of$
|
|
6158
|
+
function _set_prototype_of$g(o, p) {
|
|
6159
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6114
6160
|
o.__proto__ = p;
|
|
6115
6161
|
return o;
|
|
6116
6162
|
};
|
|
6117
|
-
return _set_prototype_of$
|
|
6163
|
+
return _set_prototype_of$g(o, p);
|
|
6118
6164
|
}
|
|
6119
6165
|
var Header = /*#__PURE__*/ function(Component) {
|
|
6120
|
-
_inherits$
|
|
6166
|
+
_inherits$g(Header, Component);
|
|
6121
6167
|
function Header(options) {
|
|
6122
6168
|
if (options === void 0) options = {};
|
|
6123
|
-
return Component.call(this, _extends$
|
|
6169
|
+
return Component.call(this, _extends$f({}, options, {
|
|
6124
6170
|
cType: 'header'
|
|
6125
6171
|
})) || this;
|
|
6126
6172
|
}
|
|
@@ -6286,8 +6332,8 @@ function interactiveHF($container, second, callback) {
|
|
|
6286
6332
|
};
|
|
6287
6333
|
}
|
|
6288
6334
|
|
|
6289
|
-
function _extends$
|
|
6290
|
-
_extends$
|
|
6335
|
+
function _extends$e() {
|
|
6336
|
+
_extends$e = Object.assign || function(target) {
|
|
6291
6337
|
for(var i = 1; i < arguments.length; i++){
|
|
6292
6338
|
var source = arguments[i];
|
|
6293
6339
|
for(var key in source){
|
|
@@ -6298,9 +6344,9 @@ function _extends$d() {
|
|
|
6298
6344
|
}
|
|
6299
6345
|
return target;
|
|
6300
6346
|
};
|
|
6301
|
-
return _extends$
|
|
6347
|
+
return _extends$e.apply(this, arguments);
|
|
6302
6348
|
}
|
|
6303
|
-
function _inherits$
|
|
6349
|
+
function _inherits$f(subClass, superClass) {
|
|
6304
6350
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6305
6351
|
throw new TypeError("Super expression must either be null or a function");
|
|
6306
6352
|
}
|
|
@@ -6311,23 +6357,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
6311
6357
|
configurable: true
|
|
6312
6358
|
}
|
|
6313
6359
|
});
|
|
6314
|
-
if (superClass) _set_prototype_of$
|
|
6360
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6315
6361
|
}
|
|
6316
|
-
function _set_prototype_of$
|
|
6317
|
-
_set_prototype_of$
|
|
6362
|
+
function _set_prototype_of$f(o, p) {
|
|
6363
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6318
6364
|
o.__proto__ = p;
|
|
6319
6365
|
return o;
|
|
6320
6366
|
};
|
|
6321
|
-
return _set_prototype_of$
|
|
6367
|
+
return _set_prototype_of$f(o, p);
|
|
6322
6368
|
}
|
|
6323
6369
|
/**
|
|
6324
6370
|
* 全局全屏
|
|
6325
6371
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
6326
6372
|
* @category Control
|
|
6327
6373
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
6328
|
-
_inherits$
|
|
6374
|
+
_inherits$f(GlobalFullscreen, Fullscreen);
|
|
6329
6375
|
function GlobalFullscreen(options) {
|
|
6330
|
-
return Fullscreen.call(this, _extends$
|
|
6376
|
+
return Fullscreen.call(this, _extends$e({}, options, {
|
|
6331
6377
|
controlType: 'button',
|
|
6332
6378
|
classNameSuffix: 'global-fullscreen'
|
|
6333
6379
|
})) || this;
|
|
@@ -6358,8 +6404,8 @@ function _set_prototype_of$e(o, p) {
|
|
|
6358
6404
|
return GlobalFullscreen;
|
|
6359
6405
|
}(Fullscreen);
|
|
6360
6406
|
|
|
6361
|
-
function _extends$
|
|
6362
|
-
_extends$
|
|
6407
|
+
function _extends$d() {
|
|
6408
|
+
_extends$d = Object.assign || function(target) {
|
|
6363
6409
|
for(var i = 1; i < arguments.length; i++){
|
|
6364
6410
|
var source = arguments[i];
|
|
6365
6411
|
for(var key in source){
|
|
@@ -6370,9 +6416,9 @@ function _extends$c() {
|
|
|
6370
6416
|
}
|
|
6371
6417
|
return target;
|
|
6372
6418
|
};
|
|
6373
|
-
return _extends$
|
|
6419
|
+
return _extends$d.apply(this, arguments);
|
|
6374
6420
|
}
|
|
6375
|
-
function _inherits$
|
|
6421
|
+
function _inherits$e(subClass, superClass) {
|
|
6376
6422
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6377
6423
|
throw new TypeError("Super expression must either be null or a function");
|
|
6378
6424
|
}
|
|
@@ -6383,23 +6429,23 @@ function _inherits$d(subClass, superClass) {
|
|
|
6383
6429
|
configurable: true
|
|
6384
6430
|
}
|
|
6385
6431
|
});
|
|
6386
|
-
if (superClass) _set_prototype_of$
|
|
6432
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6387
6433
|
}
|
|
6388
|
-
function _set_prototype_of$
|
|
6389
|
-
_set_prototype_of$
|
|
6434
|
+
function _set_prototype_of$e(o, p) {
|
|
6435
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6390
6436
|
o.__proto__ = p;
|
|
6391
6437
|
return o;
|
|
6392
6438
|
};
|
|
6393
|
-
return _set_prototype_of$
|
|
6439
|
+
return _set_prototype_of$e(o, p);
|
|
6394
6440
|
}
|
|
6395
6441
|
/**
|
|
6396
6442
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
6397
6443
|
* @category Control
|
|
6398
6444
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
6399
|
-
_inherits$
|
|
6445
|
+
_inherits$e(CapturePicture, Control);
|
|
6400
6446
|
function CapturePicture(options) {
|
|
6401
6447
|
var _this;
|
|
6402
|
-
_this = Control.call(this, _extends$
|
|
6448
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6403
6449
|
tagName: 'span',
|
|
6404
6450
|
classNameSuffix: 'capture-picture'
|
|
6405
6451
|
})) || this, _this._timer = null;
|
|
@@ -7408,8 +7454,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
7408
7454
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
7409
7455
|
return Constructor;
|
|
7410
7456
|
}
|
|
7411
|
-
function _extends$
|
|
7412
|
-
_extends$
|
|
7457
|
+
function _extends$c() {
|
|
7458
|
+
_extends$c = Object.assign || function(target) {
|
|
7413
7459
|
for(var i = 1; i < arguments.length; i++){
|
|
7414
7460
|
var source = arguments[i];
|
|
7415
7461
|
for(var key in source){
|
|
@@ -7420,9 +7466,9 @@ function _extends$b() {
|
|
|
7420
7466
|
}
|
|
7421
7467
|
return target;
|
|
7422
7468
|
};
|
|
7423
|
-
return _extends$
|
|
7469
|
+
return _extends$c.apply(this, arguments);
|
|
7424
7470
|
}
|
|
7425
|
-
function _inherits$
|
|
7471
|
+
function _inherits$d(subClass, superClass) {
|
|
7426
7472
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7427
7473
|
throw new TypeError("Super expression must either be null or a function");
|
|
7428
7474
|
}
|
|
@@ -7433,23 +7479,23 @@ function _inherits$c(subClass, superClass) {
|
|
|
7433
7479
|
configurable: true
|
|
7434
7480
|
}
|
|
7435
7481
|
});
|
|
7436
|
-
if (superClass) _set_prototype_of$
|
|
7482
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
7437
7483
|
}
|
|
7438
|
-
function _set_prototype_of$
|
|
7439
|
-
_set_prototype_of$
|
|
7484
|
+
function _set_prototype_of$d(o, p) {
|
|
7485
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7440
7486
|
o.__proto__ = p;
|
|
7441
7487
|
return o;
|
|
7442
7488
|
};
|
|
7443
|
-
return _set_prototype_of$
|
|
7489
|
+
return _set_prototype_of$d(o, p);
|
|
7444
7490
|
}
|
|
7445
7491
|
/**
|
|
7446
7492
|
* 云台控件
|
|
7447
7493
|
* @category Control
|
|
7448
7494
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
7449
|
-
_inherits$
|
|
7495
|
+
_inherits$d(Ptz, Control);
|
|
7450
7496
|
function Ptz(options) {
|
|
7451
7497
|
var _this;
|
|
7452
|
-
_this = Control.call(this, _extends$
|
|
7498
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
7453
7499
|
tagName: 'span',
|
|
7454
7500
|
controlType: 'button',
|
|
7455
7501
|
classNameSuffix: 'ptz'
|
|
@@ -7492,7 +7538,7 @@ function _set_prototype_of$c(o, p) {
|
|
|
7492
7538
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
7493
7539
|
this.$panel.appendChild(this.$turntable);
|
|
7494
7540
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7495
|
-
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$
|
|
7541
|
+
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$c({}, this._options, {
|
|
7496
7542
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7497
7543
|
onDirection: this._onDirection.bind(this)
|
|
7498
7544
|
}));
|
|
@@ -7501,7 +7547,7 @@ function _set_prototype_of$c(o, p) {
|
|
|
7501
7547
|
};
|
|
7502
7548
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
7503
7549
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7504
|
-
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$
|
|
7550
|
+
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$c({}, this._options, {
|
|
7505
7551
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7506
7552
|
onDirection: this._onDirection.bind(this)
|
|
7507
7553
|
}));
|
|
@@ -7604,8 +7650,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
7604
7650
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
7605
7651
|
return Constructor;
|
|
7606
7652
|
}
|
|
7607
|
-
function _extends$
|
|
7608
|
-
_extends$
|
|
7653
|
+
function _extends$b() {
|
|
7654
|
+
_extends$b = Object.assign || function(target) {
|
|
7609
7655
|
for(var i = 1; i < arguments.length; i++){
|
|
7610
7656
|
var source = arguments[i];
|
|
7611
7657
|
for(var key in source){
|
|
@@ -7616,9 +7662,9 @@ function _extends$a() {
|
|
|
7616
7662
|
}
|
|
7617
7663
|
return target;
|
|
7618
7664
|
};
|
|
7619
|
-
return _extends$
|
|
7665
|
+
return _extends$b.apply(this, arguments);
|
|
7620
7666
|
}
|
|
7621
|
-
function _inherits$
|
|
7667
|
+
function _inherits$c(subClass, superClass) {
|
|
7622
7668
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7623
7669
|
throw new TypeError("Super expression must either be null or a function");
|
|
7624
7670
|
}
|
|
@@ -7629,14 +7675,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
7629
7675
|
configurable: true
|
|
7630
7676
|
}
|
|
7631
7677
|
});
|
|
7632
|
-
if (superClass) _set_prototype_of$
|
|
7678
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7633
7679
|
}
|
|
7634
|
-
function _set_prototype_of$
|
|
7635
|
-
_set_prototype_of$
|
|
7680
|
+
function _set_prototype_of$c(o, p) {
|
|
7681
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7636
7682
|
o.__proto__ = p;
|
|
7637
7683
|
return o;
|
|
7638
7684
|
};
|
|
7639
|
-
return _set_prototype_of$
|
|
7685
|
+
return _set_prototype_of$c(o, p);
|
|
7640
7686
|
}
|
|
7641
7687
|
var RECORD_DEFAULT_OPTIONS = {
|
|
7642
7688
|
maxDuration: 3600
|
|
@@ -7650,10 +7696,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7650
7696
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
7651
7697
|
* @category Control
|
|
7652
7698
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
7653
|
-
_inherits$
|
|
7699
|
+
_inherits$c(Record, Control);
|
|
7654
7700
|
function Record(options) {
|
|
7655
7701
|
var _this;
|
|
7656
|
-
_this = Control.call(this, _extends$
|
|
7702
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7657
7703
|
tagName: 'span',
|
|
7658
7704
|
controlType: 'button',
|
|
7659
7705
|
classNameSuffix: 'record'
|
|
@@ -7752,7 +7798,7 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7752
7798
|
return Record;
|
|
7753
7799
|
}(Control);
|
|
7754
7800
|
|
|
7755
|
-
function asyncGeneratorStep$
|
|
7801
|
+
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7756
7802
|
try {
|
|
7757
7803
|
var info = gen[key](arg);
|
|
7758
7804
|
var value = info.value;
|
|
@@ -7766,16 +7812,16 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7766
7812
|
Promise.resolve(value).then(_next, _throw);
|
|
7767
7813
|
}
|
|
7768
7814
|
}
|
|
7769
|
-
function _async_to_generator$
|
|
7815
|
+
function _async_to_generator$3(fn) {
|
|
7770
7816
|
return function() {
|
|
7771
7817
|
var self = this, args = arguments;
|
|
7772
7818
|
return new Promise(function(resolve, reject) {
|
|
7773
7819
|
var gen = fn.apply(self, args);
|
|
7774
7820
|
function _next(value) {
|
|
7775
|
-
asyncGeneratorStep$
|
|
7821
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
|
|
7776
7822
|
}
|
|
7777
7823
|
function _throw(err) {
|
|
7778
|
-
asyncGeneratorStep$
|
|
7824
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
|
|
7779
7825
|
}
|
|
7780
7826
|
_next(undefined);
|
|
7781
7827
|
});
|
|
@@ -7794,8 +7840,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
7794
7840
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
7795
7841
|
return Constructor;
|
|
7796
7842
|
}
|
|
7797
|
-
function _extends$
|
|
7798
|
-
_extends$
|
|
7843
|
+
function _extends$a() {
|
|
7844
|
+
_extends$a = Object.assign || function(target) {
|
|
7799
7845
|
for(var i = 1; i < arguments.length; i++){
|
|
7800
7846
|
var source = arguments[i];
|
|
7801
7847
|
for(var key in source){
|
|
@@ -7806,9 +7852,9 @@ function _extends$9() {
|
|
|
7806
7852
|
}
|
|
7807
7853
|
return target;
|
|
7808
7854
|
};
|
|
7809
|
-
return _extends$
|
|
7855
|
+
return _extends$a.apply(this, arguments);
|
|
7810
7856
|
}
|
|
7811
|
-
function _inherits$
|
|
7857
|
+
function _inherits$b(subClass, superClass) {
|
|
7812
7858
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7813
7859
|
throw new TypeError("Super expression must either be null or a function");
|
|
7814
7860
|
}
|
|
@@ -7819,16 +7865,16 @@ function _inherits$a(subClass, superClass) {
|
|
|
7819
7865
|
configurable: true
|
|
7820
7866
|
}
|
|
7821
7867
|
});
|
|
7822
|
-
if (superClass) _set_prototype_of$
|
|
7868
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7823
7869
|
}
|
|
7824
|
-
function _set_prototype_of$
|
|
7825
|
-
_set_prototype_of$
|
|
7870
|
+
function _set_prototype_of$b(o, p) {
|
|
7871
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7826
7872
|
o.__proto__ = p;
|
|
7827
7873
|
return o;
|
|
7828
7874
|
};
|
|
7829
|
-
return _set_prototype_of$
|
|
7875
|
+
return _set_prototype_of$b(o, p);
|
|
7830
7876
|
}
|
|
7831
|
-
function _ts_generator$
|
|
7877
|
+
function _ts_generator$3(thisArg, body) {
|
|
7832
7878
|
var f, y, t, _ = {
|
|
7833
7879
|
label: 0,
|
|
7834
7880
|
sent: function() {
|
|
@@ -7928,10 +7974,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7928
7974
|
*
|
|
7929
7975
|
* @category Control
|
|
7930
7976
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
7931
|
-
_inherits$
|
|
7977
|
+
_inherits$b(Talk, Control);
|
|
7932
7978
|
function Talk(options) {
|
|
7933
7979
|
var _this;
|
|
7934
|
-
_this = Control.call(this, _extends$
|
|
7980
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
7935
7981
|
tagName: 'span',
|
|
7936
7982
|
controlType: 'button',
|
|
7937
7983
|
classNameSuffix: 'talk'
|
|
@@ -7983,8 +8029,8 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7983
8029
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
7984
8030
|
return Control.prototype._onControlClick;
|
|
7985
8031
|
};
|
|
7986
|
-
return _async_to_generator$
|
|
7987
|
-
return _ts_generator$
|
|
8032
|
+
return _async_to_generator$3(function() {
|
|
8033
|
+
return _ts_generator$3(this, function(_state) {
|
|
7988
8034
|
_superprop_get__onControlClick().call(_this, e);
|
|
7989
8035
|
this.active = !this.active;
|
|
7990
8036
|
this.emit(EVENTS.control.talkingChange, this.active);
|
|
@@ -8035,6 +8081,231 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8035
8081
|
return Talk;
|
|
8036
8082
|
}(Control);
|
|
8037
8083
|
|
|
8084
|
+
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8085
|
+
try {
|
|
8086
|
+
var info = gen[key](arg);
|
|
8087
|
+
var value = info.value;
|
|
8088
|
+
} catch (error) {
|
|
8089
|
+
reject(error);
|
|
8090
|
+
return;
|
|
8091
|
+
}
|
|
8092
|
+
if (info.done) {
|
|
8093
|
+
resolve(value);
|
|
8094
|
+
} else {
|
|
8095
|
+
Promise.resolve(value).then(_next, _throw);
|
|
8096
|
+
}
|
|
8097
|
+
}
|
|
8098
|
+
function _async_to_generator$2(fn) {
|
|
8099
|
+
return function() {
|
|
8100
|
+
var self = this, args = arguments;
|
|
8101
|
+
return new Promise(function(resolve, reject) {
|
|
8102
|
+
var gen = fn.apply(self, args);
|
|
8103
|
+
function _next(value) {
|
|
8104
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
|
|
8105
|
+
}
|
|
8106
|
+
function _throw(err) {
|
|
8107
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8108
|
+
}
|
|
8109
|
+
_next(undefined);
|
|
8110
|
+
});
|
|
8111
|
+
};
|
|
8112
|
+
}
|
|
8113
|
+
function _extends$9() {
|
|
8114
|
+
_extends$9 = Object.assign || function(target) {
|
|
8115
|
+
for(var i = 1; i < arguments.length; i++){
|
|
8116
|
+
var source = arguments[i];
|
|
8117
|
+
for(var key in source){
|
|
8118
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8119
|
+
target[key] = source[key];
|
|
8120
|
+
}
|
|
8121
|
+
}
|
|
8122
|
+
}
|
|
8123
|
+
return target;
|
|
8124
|
+
};
|
|
8125
|
+
return _extends$9.apply(this, arguments);
|
|
8126
|
+
}
|
|
8127
|
+
function _inherits$a(subClass, superClass) {
|
|
8128
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
8129
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
8130
|
+
}
|
|
8131
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
8132
|
+
constructor: {
|
|
8133
|
+
value: subClass,
|
|
8134
|
+
writable: true,
|
|
8135
|
+
configurable: true
|
|
8136
|
+
}
|
|
8137
|
+
});
|
|
8138
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
8139
|
+
}
|
|
8140
|
+
function _set_prototype_of$a(o, p) {
|
|
8141
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8142
|
+
o.__proto__ = p;
|
|
8143
|
+
return o;
|
|
8144
|
+
};
|
|
8145
|
+
return _set_prototype_of$a(o, p);
|
|
8146
|
+
}
|
|
8147
|
+
function _ts_generator$2(thisArg, body) {
|
|
8148
|
+
var f, y, t, _ = {
|
|
8149
|
+
label: 0,
|
|
8150
|
+
sent: function() {
|
|
8151
|
+
if (t[0] & 1) throw t[1];
|
|
8152
|
+
return t[1];
|
|
8153
|
+
},
|
|
8154
|
+
trys: [],
|
|
8155
|
+
ops: []
|
|
8156
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8157
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
8158
|
+
return this;
|
|
8159
|
+
}), g;
|
|
8160
|
+
function verb(n) {
|
|
8161
|
+
return function(v) {
|
|
8162
|
+
return step([
|
|
8163
|
+
n,
|
|
8164
|
+
v
|
|
8165
|
+
]);
|
|
8166
|
+
};
|
|
8167
|
+
}
|
|
8168
|
+
function step(op) {
|
|
8169
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
8170
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
8171
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
8172
|
+
if (y = 0, t) op = [
|
|
8173
|
+
op[0] & 2,
|
|
8174
|
+
t.value
|
|
8175
|
+
];
|
|
8176
|
+
switch(op[0]){
|
|
8177
|
+
case 0:
|
|
8178
|
+
case 1:
|
|
8179
|
+
t = op;
|
|
8180
|
+
break;
|
|
8181
|
+
case 4:
|
|
8182
|
+
_.label++;
|
|
8183
|
+
return {
|
|
8184
|
+
value: op[1],
|
|
8185
|
+
done: false
|
|
8186
|
+
};
|
|
8187
|
+
case 5:
|
|
8188
|
+
_.label++;
|
|
8189
|
+
y = op[1];
|
|
8190
|
+
op = [
|
|
8191
|
+
0
|
|
8192
|
+
];
|
|
8193
|
+
continue;
|
|
8194
|
+
case 7:
|
|
8195
|
+
op = _.ops.pop();
|
|
8196
|
+
_.trys.pop();
|
|
8197
|
+
continue;
|
|
8198
|
+
default:
|
|
8199
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8200
|
+
_ = 0;
|
|
8201
|
+
continue;
|
|
8202
|
+
}
|
|
8203
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
8204
|
+
_.label = op[1];
|
|
8205
|
+
break;
|
|
8206
|
+
}
|
|
8207
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
8208
|
+
_.label = t[1];
|
|
8209
|
+
t = op;
|
|
8210
|
+
break;
|
|
8211
|
+
}
|
|
8212
|
+
if (t && _.label < t[2]) {
|
|
8213
|
+
_.label = t[2];
|
|
8214
|
+
_.ops.push(op);
|
|
8215
|
+
break;
|
|
8216
|
+
}
|
|
8217
|
+
if (t[2]) _.ops.pop();
|
|
8218
|
+
_.trys.pop();
|
|
8219
|
+
continue;
|
|
8220
|
+
}
|
|
8221
|
+
op = body.call(thisArg, _);
|
|
8222
|
+
} catch (e) {
|
|
8223
|
+
op = [
|
|
8224
|
+
6,
|
|
8225
|
+
e
|
|
8226
|
+
];
|
|
8227
|
+
y = 0;
|
|
8228
|
+
} finally{
|
|
8229
|
+
f = t = 0;
|
|
8230
|
+
}
|
|
8231
|
+
if (op[0] & 5) throw op[1];
|
|
8232
|
+
return {
|
|
8233
|
+
value: op[0] ? op[1] : void 0,
|
|
8234
|
+
done: true
|
|
8235
|
+
};
|
|
8236
|
+
}
|
|
8237
|
+
}
|
|
8238
|
+
/**
|
|
8239
|
+
* 语音广播控件
|
|
8240
|
+
*
|
|
8241
|
+
* 用于触发语音广播功能的按钮控件
|
|
8242
|
+
*
|
|
8243
|
+
* @category Control
|
|
8244
|
+
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
8245
|
+
_inherits$a(Broadcast, Control);
|
|
8246
|
+
function Broadcast(options) {
|
|
8247
|
+
var _this;
|
|
8248
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
8249
|
+
tagName: 'span',
|
|
8250
|
+
controlType: 'button',
|
|
8251
|
+
classNameSuffix: 'broadcast'
|
|
8252
|
+
})) || this;
|
|
8253
|
+
_this._options = options;
|
|
8254
|
+
_this._render();
|
|
8255
|
+
_this.on(EVENTS.broadcastChange, function(active) {
|
|
8256
|
+
if (_this.active !== active) {
|
|
8257
|
+
_this.active = active;
|
|
8258
|
+
_this._render();
|
|
8259
|
+
}
|
|
8260
|
+
});
|
|
8261
|
+
return _this;
|
|
8262
|
+
}
|
|
8263
|
+
var _proto = Broadcast.prototype;
|
|
8264
|
+
_proto._render = function _render() {
|
|
8265
|
+
var _this_locale;
|
|
8266
|
+
this.$container.innerHTML = IconComponents.broadcast({
|
|
8267
|
+
title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_BROADCAST
|
|
8268
|
+
});
|
|
8269
|
+
};
|
|
8270
|
+
_proto.reset = function reset(hide) {
|
|
8271
|
+
if (this.active) {
|
|
8272
|
+
this.active = false;
|
|
8273
|
+
this._render();
|
|
8274
|
+
this.emit(EVENTS.control.broadcastChange, false);
|
|
8275
|
+
Control.prototype.reset.call(this, hide);
|
|
8276
|
+
}
|
|
8277
|
+
};
|
|
8278
|
+
/**
|
|
8279
|
+
* 销毁语音广播控件
|
|
8280
|
+
*/ _proto.destroy = function destroy() {
|
|
8281
|
+
if (this.active) {
|
|
8282
|
+
this.reset();
|
|
8283
|
+
}
|
|
8284
|
+
Control.prototype.destroy.call(this);
|
|
8285
|
+
};
|
|
8286
|
+
/**
|
|
8287
|
+
* 点击 Control 会触发
|
|
8288
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
8289
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
8290
|
+
return Control.prototype._onControlClick;
|
|
8291
|
+
};
|
|
8292
|
+
return _async_to_generator$2(function() {
|
|
8293
|
+
var _this__options_onChange, _this__options;
|
|
8294
|
+
return _ts_generator$2(this, function(_state) {
|
|
8295
|
+
_superprop_get__onControlClick().call(_this, e);
|
|
8296
|
+
this.active = !this.active;
|
|
8297
|
+
this.emit(EVENTS.control.broadcastChange, this.active);
|
|
8298
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
|
|
8299
|
+
this._render();
|
|
8300
|
+
return [
|
|
8301
|
+
2
|
|
8302
|
+
];
|
|
8303
|
+
});
|
|
8304
|
+
}).call(this);
|
|
8305
|
+
};
|
|
8306
|
+
return Broadcast;
|
|
8307
|
+
}(Control);
|
|
8308
|
+
|
|
8038
8309
|
function _defineProperties$1(target, props) {
|
|
8039
8310
|
for(var i = 0; i < props.length; i++){
|
|
8040
8311
|
var descriptor = props[i];
|
|
@@ -8714,7 +8985,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8714
8985
|
],
|
|
8715
8986
|
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
8716
8987
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
8717
|
-
current:
|
|
8988
|
+
current: DateTime.toDate(this._value),
|
|
8718
8989
|
placement: 'tr',
|
|
8719
8990
|
triggerClose: true,
|
|
8720
8991
|
disabledDate: function(date) {
|
|
@@ -9025,6 +9296,7 @@ var Controls = {
|
|
|
9025
9296
|
ptz: Ptz,
|
|
9026
9297
|
record: Record,
|
|
9027
9298
|
talk: Talk,
|
|
9299
|
+
broadcast: Broadcast,
|
|
9028
9300
|
zoom: Zoom$1,
|
|
9029
9301
|
definition: Definition,
|
|
9030
9302
|
fullscreen: Fullscreen,
|
|
@@ -10183,13 +10455,16 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10183
10455
|
_this.playing = true;
|
|
10184
10456
|
}
|
|
10185
10457
|
_this._initClassName();
|
|
10186
|
-
// 画布需要渲染在 this.contentControl.$
|
|
10458
|
+
// 画布需要渲染在 this.contentControl.$content 内
|
|
10187
10459
|
_this.contentControl = new Content({
|
|
10188
10460
|
getContainer: function() {
|
|
10189
10461
|
return _this.$container;
|
|
10190
10462
|
},
|
|
10191
10463
|
scaleMode: _this.scaleMode
|
|
10192
10464
|
});
|
|
10465
|
+
_this.contentControl.on(EVENTS.control.contentRerender, function(info) {
|
|
10466
|
+
_this.emit(EVENTS.control.contentRerender, info);
|
|
10467
|
+
});
|
|
10193
10468
|
// zoom utils
|
|
10194
10469
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10195
10470
|
onTap: function() {
|
|
@@ -10740,138 +11015,153 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10740
11015
|
* 尺寸变化结束时 进行判断,为了节省开销
|
|
10741
11016
|
* @WARN:这里会闪一下, 原因:需要控件渲染后才知是否需要放置到 More 中,
|
|
10742
11017
|
*/ _proto._footerMoreControlShow = function _footerMoreControlShow() {
|
|
11018
|
+
this._displayMore();
|
|
11019
|
+
};
|
|
11020
|
+
_proto._displayMore = function _displayMore() {
|
|
10743
11021
|
var _this = this;
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
10773
|
-
}
|
|
10774
|
-
});
|
|
10775
|
-
}
|
|
10776
|
-
//
|
|
10777
|
-
var list = (((_this__themeData = _this._themeData) == null ? void 0 : (_this__themeData_footer = _this__themeData.footer) == null ? void 0 : _this__themeData_footer.btnList) || []).filter(function(item) {
|
|
10778
|
-
var _this__footerMoreControl;
|
|
10779
|
-
var index = (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl.list) || []).findIndex(function(item1) {
|
|
10780
|
-
var _this_controls;
|
|
10781
|
-
return item1.control === ((_this_controls = _this.controls) == null ? void 0 : _this_controls["" + item.iconId + "Control"]);
|
|
10782
|
-
});
|
|
10783
|
-
return index === -1;
|
|
10784
|
-
});
|
|
10785
|
-
if (list.length <= 0) {
|
|
10786
|
-
return;
|
|
10787
|
-
}
|
|
10788
|
-
if (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list = _this__footerMoreControl.list) == null ? void 0 : _this__footerMoreControl_list.length) === 0) {
|
|
10789
|
-
// 为什么是两个, 因为More 也占用一个位置
|
|
10790
|
-
var popList = [
|
|
10791
|
-
list.pop(),
|
|
10792
|
-
list.pop()
|
|
10793
|
-
];
|
|
10794
|
-
for(var _iterator = _create_for_of_iterator_helper_loose(popList), _step; !(_step = _iterator()).done;){
|
|
10795
|
-
var item = _step.value;
|
|
10796
|
-
if (item) {
|
|
10797
|
-
var _this_controls_key_resetPopupContainer, _this_controls_key, _this_controls, _this_controls1, _this__footerMoreControl2;
|
|
10798
|
-
var key = "" + item.iconId + "Control";
|
|
10799
|
-
(_this_controls = _this.controls) == null ? void 0 : (_this_controls_key = _this_controls[key]) == null ? void 0 : (_this_controls_key_resetPopupContainer = _this_controls_key.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer.call(_this_controls_key, _this._footerMoreControl.$panel, 'prepend');
|
|
10800
|
-
(_this__footerMoreControl2 = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl2.add(key, item.part, (_this_controls1 = _this.controls) == null ? void 0 : _this_controls1[key]);
|
|
10801
|
-
}
|
|
11022
|
+
if (this._footer) {
|
|
11023
|
+
var _this__footer_$left, _this__footer_$right;
|
|
11024
|
+
// 判断 footer 的控件是否能放置的下, 否则隐藏暂时 more 按钮
|
|
11025
|
+
var leftWidth = ((_this__footer_$left = this._footer.$left) == null ? void 0 : _this__footer_$left.clientWidth) || 0;
|
|
11026
|
+
var rightWidth = ((_this__footer_$right = this._footer.$right) == null ? void 0 : _this__footer_$right.clientWidth) || 0;
|
|
11027
|
+
// 当footer 中 left 和 right 宽度之和大于 footer 宽度,则 footer more 显示
|
|
11028
|
+
var collapseControl = this._width - leftWidth - rightWidth < 16; // 收拢控件到 More 中
|
|
11029
|
+
if (collapseControl) {
|
|
11030
|
+
var _this__footer, _this__themeData_footer, _this__themeData, _this__footerMoreControl_list, _this__footerMoreControl, _this__footerMoreControl_list1, _this__footerMoreControl1;
|
|
11031
|
+
if (!this._footerMoreControl && ((_this__footer = this._footer) == null ? void 0 : _this__footer.$right)) {
|
|
11032
|
+
this._footerMoreControl = new More({
|
|
11033
|
+
language: this.options.language,
|
|
11034
|
+
locales: this.i18n.translations,
|
|
11035
|
+
rootContainer: this.$container,
|
|
11036
|
+
getPopupContainer: function() {
|
|
11037
|
+
var _this__footer;
|
|
11038
|
+
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11039
|
+
},
|
|
11040
|
+
placement: 'tr',
|
|
11041
|
+
controls: this.controls,
|
|
11042
|
+
open: false,
|
|
11043
|
+
offset: [
|
|
11044
|
+
0,
|
|
11045
|
+
-8
|
|
11046
|
+
],
|
|
11047
|
+
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11048
|
+
onOpenChange: function(open) {
|
|
11049
|
+
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
10802
11050
|
}
|
|
10803
|
-
}
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
11051
|
+
});
|
|
11052
|
+
}
|
|
11053
|
+
//
|
|
11054
|
+
var list = (((_this__themeData = this._themeData) == null ? void 0 : (_this__themeData_footer = _this__themeData.footer) == null ? void 0 : _this__themeData_footer.btnList) || []).filter(function(item) {
|
|
11055
|
+
var _this__footerMoreControl;
|
|
11056
|
+
var index = (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl.list) || []).findIndex(function(item1) {
|
|
11057
|
+
var _this_controls;
|
|
11058
|
+
return item1.control === ((_this_controls = _this.controls) == null ? void 0 : _this_controls["" + item.iconId + "Control"]);
|
|
11059
|
+
});
|
|
11060
|
+
return index === -1;
|
|
11061
|
+
});
|
|
11062
|
+
if (list.length <= 0) return;
|
|
11063
|
+
if (((_this__footerMoreControl = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list = _this__footerMoreControl.list) == null ? void 0 : _this__footerMoreControl_list.length) === 0) {
|
|
11064
|
+
// 为什么是两个, 因为More 也占用一个位置
|
|
11065
|
+
var popList = [
|
|
11066
|
+
list.pop(),
|
|
11067
|
+
list.pop()
|
|
11068
|
+
];
|
|
11069
|
+
for(var _iterator = _create_for_of_iterator_helper_loose(popList), _step; !(_step = _iterator()).done;){
|
|
11070
|
+
var item = _step.value;
|
|
11071
|
+
if (item) {
|
|
11072
|
+
var _this_controls_key_$container, _this_controls_key, _this_controls, _this_controls_key_$container1, _this_controls_key1, _this_controls1, _this_controls_key_resetPopupContainer, _this_controls_key2, _this_controls2, _this_controls3, _this__footerMoreControl2;
|
|
11073
|
+
var key = "" + item.iconId + "Control";
|
|
11074
|
+
var width = ((_this_controls = this.controls) == null ? void 0 : (_this_controls_key = _this_controls[key]) == null ? void 0 : (_this_controls_key_$container = _this_controls_key.$container) == null ? void 0 : _this_controls_key_$container.clientWidth) || 0;
|
|
11075
|
+
var height = ((_this_controls1 = this.controls) == null ? void 0 : (_this_controls_key1 = _this_controls1[key]) == null ? void 0 : (_this_controls_key_$container1 = _this_controls_key1.$container) == null ? void 0 : _this_controls_key_$container1.clientHeight) || 0;
|
|
11076
|
+
(_this_controls2 = this.controls) == null ? void 0 : (_this_controls_key2 = _this_controls2[key]) == null ? void 0 : (_this_controls_key_resetPopupContainer = _this_controls_key2.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer.call(_this_controls_key2, this._footerMoreControl.$panel, 'prepend');
|
|
11077
|
+
(_this__footerMoreControl2 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl2.add(key, item.part, (_this_controls3 = this.controls) == null ? void 0 : _this_controls3[key], {
|
|
11078
|
+
width: width,
|
|
11079
|
+
height: height
|
|
11080
|
+
});
|
|
10812
11081
|
}
|
|
10813
11082
|
}
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
11083
|
+
} else if (this._footerMoreControl) {
|
|
11084
|
+
var item1 = list.pop();
|
|
11085
|
+
if (item1) {
|
|
11086
|
+
var _this_controls_key_$container2, _this_controls_key3, _this_controls4, _this_controls_key_$container3, _this_controls_key4, _this_controls5, _this_controls_key_resetPopupContainer1, _this_controls_key5, _this_controls6, _this_controls7, _this__footerMoreControl3;
|
|
11087
|
+
var key1 = "" + item1.iconId + "Control";
|
|
11088
|
+
var width1 = ((_this_controls4 = this.controls) == null ? void 0 : (_this_controls_key3 = _this_controls4[key1]) == null ? void 0 : (_this_controls_key_$container2 = _this_controls_key3.$container) == null ? void 0 : _this_controls_key_$container2.clientWidth) || 0;
|
|
11089
|
+
var height1 = ((_this_controls5 = this.controls) == null ? void 0 : (_this_controls_key4 = _this_controls5[key1]) == null ? void 0 : (_this_controls_key_$container3 = _this_controls_key4.$container) == null ? void 0 : _this_controls_key_$container3.clientHeight) || 0;
|
|
11090
|
+
(_this_controls6 = this.controls) == null ? void 0 : (_this_controls_key5 = _this_controls6[key1]) == null ? void 0 : (_this_controls_key_resetPopupContainer1 = _this_controls_key5.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer1.call(_this_controls_key5, this._footerMoreControl.$panel, 'prepend');
|
|
11091
|
+
(_this__footerMoreControl3 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl3.add(key1, item1.part, (_this_controls7 = this.controls) == null ? void 0 : _this_controls7[key1], {
|
|
11092
|
+
width: width1,
|
|
11093
|
+
height: height1
|
|
11094
|
+
});
|
|
11095
|
+
} else {
|
|
11096
|
+
return;
|
|
10821
11097
|
}
|
|
10822
|
-
}
|
|
10823
|
-
|
|
11098
|
+
}
|
|
11099
|
+
// prettier-ignore
|
|
11100
|
+
this.emit(Theme.EVENTS.control.footerMoreShowControlsChange, !!this._footerMoreControl, (_this__footerMoreControl1 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list1 = _this__footerMoreControl1.list) == null ? void 0 : _this__footerMoreControl_list1.map(function(item) {
|
|
11101
|
+
return item.key;
|
|
11102
|
+
}));
|
|
11103
|
+
if (this._footerMoreControl) {
|
|
11104
|
+
// 防止 More 不存在导致死循环
|
|
11105
|
+
this._displayMore();
|
|
11106
|
+
}
|
|
11107
|
+
} else {
|
|
11108
|
+
var _this__footerMoreControl_list2, _this__footerMoreControl5, _this__footerMoreControl_list3, _this__footerMoreControl6;
|
|
11109
|
+
var offset = 50;
|
|
11110
|
+
// if (this._footerMoreControl?.list?.length && this._footerMoreControl?.list?.length > 2) {
|
|
11111
|
+
// offset = 16;
|
|
11112
|
+
// }
|
|
11113
|
+
if ((_this__footerMoreControl5 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list2 = _this__footerMoreControl5.list) == null ? void 0 : _this__footerMoreControl_list2.length) {
|
|
11114
|
+
offset = offset + this._footerMoreControl.list[0].width || 0;
|
|
11115
|
+
}
|
|
11116
|
+
if (((_this__footerMoreControl6 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list3 = _this__footerMoreControl6.list) == null ? void 0 : _this__footerMoreControl_list3.length) && this._width - leftWidth - rightWidth > offset) {
|
|
11117
|
+
var _this__footerMoreControl7, _this__footerMoreControl_list4, _this__footerMoreControl8, _this__footerMoreControl_list5, _this__footerMoreControl9;
|
|
10824
11118
|
// 110 是为了保住个别控件的宽度超出已知的值, 如英文下 按钮的宽度
|
|
10825
11119
|
// 从 More 中一次移除一个控件到 header/footer 中
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
var
|
|
10830
|
-
if (item2) {
|
|
10831
|
-
var
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
var
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
var _item_control_resetPopupContainer2, _item_control2;
|
|
10842
|
-
(_item_control2 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer2 = _item_control2.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer2.call(_item_control2, _this._footer.$right, 'before', _this._footerMoreControl.$container);
|
|
10843
|
-
}
|
|
11120
|
+
//
|
|
11121
|
+
var item2 = (_this__footerMoreControl7 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl7.list.shift();
|
|
11122
|
+
if (item2) {
|
|
11123
|
+
var _this__footerMoreControl10;
|
|
11124
|
+
if (item2.part === 'left') {
|
|
11125
|
+
var _item_control_resetPopupContainer, _item_control;
|
|
11126
|
+
(_item_control = item2.control) == null ? void 0 : (_item_control_resetPopupContainer = _item_control.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer.call(_item_control, this._footer.$left, 'append');
|
|
11127
|
+
} else if (item2.part === 'right') {
|
|
11128
|
+
var _this__footerMoreControl_list6, _this__footerMoreControl11;
|
|
11129
|
+
if (((_this__footerMoreControl11 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list6 = _this__footerMoreControl11.list) == null ? void 0 : _this__footerMoreControl_list6.length) === 0) {
|
|
11130
|
+
var _item_control_resetPopupContainer1, _item_control1;
|
|
11131
|
+
(_item_control1 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer1 = _item_control1.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer1.call(_item_control1, this._footer.$right, 'append');
|
|
11132
|
+
} else {
|
|
11133
|
+
var _item_control_resetPopupContainer2, _item_control2;
|
|
11134
|
+
(_item_control2 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer2 = _item_control2.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer2.call(_item_control2, this._footer.$right, 'before', this._footerMoreControl.$container);
|
|
10844
11135
|
}
|
|
10845
|
-
(_this__footerMoreControl8 = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl8.remove(item2.control);
|
|
10846
11136
|
}
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
(
|
|
11137
|
+
(_this__footerMoreControl10 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl10.remove(item2.control);
|
|
11138
|
+
}
|
|
11139
|
+
if (((_this__footerMoreControl8 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list4 = _this__footerMoreControl8.list) == null ? void 0 : _this__footerMoreControl_list4.length) === 1) {
|
|
11140
|
+
var _this__footerMoreControl12, _this__footerMoreControl_destroy, _this__footerMoreControl13;
|
|
11141
|
+
// 最后一个, 移除 More
|
|
11142
|
+
var item11 = (_this__footerMoreControl12 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl12.list.shift();
|
|
11143
|
+
if (item11) {
|
|
11144
|
+
var _this__footerMoreControl14;
|
|
11145
|
+
if (item11.part === 'left') {
|
|
11146
|
+
var _item1_control_resetPopupContainer, _item1_control;
|
|
11147
|
+
(_item1_control = item11.control) == null ? void 0 : (_item1_control_resetPopupContainer = _item1_control.resetPopupContainer) == null ? void 0 : _item1_control_resetPopupContainer.call(_item1_control, this._footer.$left, 'append');
|
|
11148
|
+
} else if (item11.part === 'right') {
|
|
11149
|
+
var _item1_control_resetPopupContainer1, _item1_control1;
|
|
11150
|
+
(_item1_control1 = item11.control) == null ? void 0 : (_item1_control_resetPopupContainer1 = _item1_control1.resetPopupContainer) == null ? void 0 : _item1_control_resetPopupContainer1.call(_item1_control1, this._footer.$right, 'append');
|
|
10861
11151
|
}
|
|
10862
|
-
(
|
|
10863
|
-
_this._footerMoreControl = null;
|
|
11152
|
+
(_this__footerMoreControl14 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl14.remove(item11.control);
|
|
10864
11153
|
}
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
return item.key;
|
|
10868
|
-
}));
|
|
10869
|
-
displayMore();
|
|
11154
|
+
(_this__footerMoreControl13 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_destroy = _this__footerMoreControl13.destroy) == null ? void 0 : _this__footerMoreControl_destroy.call(_this__footerMoreControl13);
|
|
11155
|
+
this._footerMoreControl = null;
|
|
10870
11156
|
}
|
|
11157
|
+
// prettier-ignore
|
|
11158
|
+
this.emit(Theme.EVENTS.control.footerMoreShowControlsChange, !!this._footerMoreControl, (_this__footerMoreControl9 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list5 = _this__footerMoreControl9.list) == null ? void 0 : _this__footerMoreControl_list5.map(function(item) {
|
|
11159
|
+
return item.key;
|
|
11160
|
+
}));
|
|
11161
|
+
this._displayMore();
|
|
10871
11162
|
}
|
|
10872
11163
|
}
|
|
10873
|
-
}
|
|
10874
|
-
displayMore();
|
|
11164
|
+
}
|
|
10875
11165
|
};
|
|
10876
11166
|
/**
|
|
10877
11167
|
* 移除事件
|
|
@@ -10949,6 +11239,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10949
11239
|
[
|
|
10950
11240
|
'ptz',
|
|
10951
11241
|
'talk',
|
|
11242
|
+
'broadcast',
|
|
10952
11243
|
'record',
|
|
10953
11244
|
'speed'
|
|
10954
11245
|
].forEach(function(key) {
|
|
@@ -11026,6 +11317,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11026
11317
|
[
|
|
11027
11318
|
'ptz',
|
|
11028
11319
|
'talk',
|
|
11320
|
+
'broadcast',
|
|
11029
11321
|
'record'
|
|
11030
11322
|
].forEach(function(key) {
|
|
11031
11323
|
var _this_controls;
|
|
@@ -11386,6 +11678,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11386
11678
|
zh: zh,
|
|
11387
11679
|
en: en
|
|
11388
11680
|
};
|
|
11389
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11681
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.11';
|
|
11390
11682
|
|
|
11391
11683
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|