@ezuikit/player-theme 3.0.1-beta.3 → 3.0.2-beta.1
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 +2 -11
- package/dist/index.cjs +247 -690
- package/dist/index.esm.js +247 -690
- package/dist/index.umd.js +248 -691
- package/dist/style.css +3 -6
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +30 -72
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.0.
|
|
3
|
-
* Copyright (c) 2026-05-
|
|
2
|
+
* @ezuikit/player-theme v3.0.2-beta.1
|
|
3
|
+
* Copyright (c) 2026-05-15 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -143,9 +143,6 @@ var EVENTS = {
|
|
|
143
143
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
144
144
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
145
145
|
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
146
|
-
/** 直播模式切换 */ liveChange: 'liveChange',
|
|
147
|
-
/** 回放下拉选择变化 */ recDropdownChange: 'recDropdownChange',
|
|
148
|
-
/** 告警消息面板状态变化 */ alarmMessageChange: 'alarmMessageChange',
|
|
149
146
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
150
147
|
records: 'records',
|
|
151
148
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -193,12 +190,6 @@ var EVENTS = {
|
|
|
193
190
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
194
191
|
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
195
192
|
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
196
|
-
/** 直播按钮点击 */ liveChange: 'Control.liveChange',
|
|
197
|
-
/** 直播控件销毁 */ liveDestroy: 'Control.liveDestroy',
|
|
198
|
-
/** 回放下拉选择变化 */ recDropdownChange: 'Control.recDropdownChange',
|
|
199
|
-
/** 回放下拉控件销毁 */ recDropdownDestroy: 'Control.recDropdownDestroy',
|
|
200
|
-
/** 告警消息面板开关 */ alarmMessageChange: 'Control.alarmMessageChange',
|
|
201
|
-
/** 告警消息面板销毁 */ alarmMessageDestroy: 'Control.alarmMessageDestroy',
|
|
202
193
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
203
194
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
204
195
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -250,7 +241,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
250
241
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
251
242
|
return Constructor;
|
|
252
243
|
}
|
|
253
|
-
function _inherits$
|
|
244
|
+
function _inherits$t(subClass, superClass) {
|
|
254
245
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
255
246
|
throw new TypeError("Super expression must either be null or a function");
|
|
256
247
|
}
|
|
@@ -261,14 +252,14 @@ function _inherits$w(subClass, superClass) {
|
|
|
261
252
|
configurable: true
|
|
262
253
|
}
|
|
263
254
|
});
|
|
264
|
-
if (superClass) _set_prototype_of$
|
|
255
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
265
256
|
}
|
|
266
|
-
function _set_prototype_of$
|
|
267
|
-
_set_prototype_of$
|
|
257
|
+
function _set_prototype_of$t(o, p) {
|
|
258
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
268
259
|
o.__proto__ = p;
|
|
269
260
|
return o;
|
|
270
261
|
};
|
|
271
|
-
return _set_prototype_of$
|
|
262
|
+
return _set_prototype_of$t(o, p);
|
|
272
263
|
}
|
|
273
264
|
/**
|
|
274
265
|
* 控件基类
|
|
@@ -282,7 +273,7 @@ function _set_prototype_of$w(o, p) {
|
|
|
282
273
|
* const myControl = new MyControl({})
|
|
283
274
|
* ```
|
|
284
275
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
285
|
-
_inherits$
|
|
276
|
+
_inherits$t(Control, EventEmitter);
|
|
286
277
|
function Control(options) {
|
|
287
278
|
var _this;
|
|
288
279
|
var _this___options;
|
|
@@ -457,8 +448,8 @@ function _set_prototype_of$w(o, p) {
|
|
|
457
448
|
return Control;
|
|
458
449
|
}(EventEmitter);
|
|
459
450
|
|
|
460
|
-
function _extends$
|
|
461
|
-
_extends$
|
|
451
|
+
function _extends$s() {
|
|
452
|
+
_extends$s = Object.assign || function(target) {
|
|
462
453
|
for(var i = 1; i < arguments.length; i++){
|
|
463
454
|
var source = arguments[i];
|
|
464
455
|
for(var key in source){
|
|
@@ -469,9 +460,9 @@ function _extends$v() {
|
|
|
469
460
|
}
|
|
470
461
|
return target;
|
|
471
462
|
};
|
|
472
|
-
return _extends$
|
|
463
|
+
return _extends$s.apply(this, arguments);
|
|
473
464
|
}
|
|
474
|
-
function _inherits$
|
|
465
|
+
function _inherits$s(subClass, superClass) {
|
|
475
466
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
476
467
|
throw new TypeError("Super expression must either be null or a function");
|
|
477
468
|
}
|
|
@@ -482,25 +473,25 @@ function _inherits$v(subClass, superClass) {
|
|
|
482
473
|
configurable: true
|
|
483
474
|
}
|
|
484
475
|
});
|
|
485
|
-
if (superClass) _set_prototype_of$
|
|
476
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
486
477
|
}
|
|
487
|
-
function _set_prototype_of$
|
|
488
|
-
_set_prototype_of$
|
|
478
|
+
function _set_prototype_of$s(o, p) {
|
|
479
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
489
480
|
o.__proto__ = p;
|
|
490
481
|
return o;
|
|
491
482
|
};
|
|
492
|
-
return _set_prototype_of$
|
|
483
|
+
return _set_prototype_of$s(o, p);
|
|
493
484
|
}
|
|
494
485
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
495
486
|
/**
|
|
496
487
|
* 加载动画控件
|
|
497
488
|
* @category Control
|
|
498
489
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
499
|
-
_inherits$
|
|
490
|
+
_inherits$s(Loading, Control);
|
|
500
491
|
function Loading(options) {
|
|
501
492
|
if (options === void 0) options = {};
|
|
502
493
|
var _this;
|
|
503
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
494
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$s({}, options, {
|
|
504
495
|
tagName: 'div',
|
|
505
496
|
controlType: 'block',
|
|
506
497
|
classNameSuffix: 'loading'
|
|
@@ -538,8 +529,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
538
529
|
return Loading;
|
|
539
530
|
}(Control);
|
|
540
531
|
|
|
541
|
-
function _extends$
|
|
542
|
-
_extends$
|
|
532
|
+
function _extends$r() {
|
|
533
|
+
_extends$r = Object.assign || function(target) {
|
|
543
534
|
for(var i = 1; i < arguments.length; i++){
|
|
544
535
|
var source = arguments[i];
|
|
545
536
|
for(var key in source){
|
|
@@ -550,9 +541,9 @@ function _extends$u() {
|
|
|
550
541
|
}
|
|
551
542
|
return target;
|
|
552
543
|
};
|
|
553
|
-
return _extends$
|
|
544
|
+
return _extends$r.apply(this, arguments);
|
|
554
545
|
}
|
|
555
|
-
function _inherits$
|
|
546
|
+
function _inherits$r(subClass, superClass) {
|
|
556
547
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
557
548
|
throw new TypeError("Super expression must either be null or a function");
|
|
558
549
|
}
|
|
@@ -563,14 +554,14 @@ function _inherits$u(subClass, superClass) {
|
|
|
563
554
|
configurable: true
|
|
564
555
|
}
|
|
565
556
|
});
|
|
566
|
-
if (superClass) _set_prototype_of$
|
|
557
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
567
558
|
}
|
|
568
|
-
function _set_prototype_of$
|
|
569
|
-
_set_prototype_of$
|
|
559
|
+
function _set_prototype_of$r(o, p) {
|
|
560
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
570
561
|
o.__proto__ = p;
|
|
571
562
|
return o;
|
|
572
563
|
};
|
|
573
|
-
return _set_prototype_of$
|
|
564
|
+
return _set_prototype_of$r(o, p);
|
|
574
565
|
}
|
|
575
566
|
// 不放在服务器上 是因为有可能http加载失败
|
|
576
567
|
// prettier-ignore
|
|
@@ -582,11 +573,11 @@ var POSTER_OPTIONS = {
|
|
|
582
573
|
* 封面控件
|
|
583
574
|
* @category Control
|
|
584
575
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
585
|
-
_inherits$
|
|
576
|
+
_inherits$r(Poster, Control);
|
|
586
577
|
function Poster(options) {
|
|
587
578
|
if (options === void 0) options = {};
|
|
588
579
|
var _this;
|
|
589
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
580
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$r({}, options, {
|
|
590
581
|
tagName: 'div',
|
|
591
582
|
controlType: 'block',
|
|
592
583
|
classNameSuffix: 'poster'
|
|
@@ -692,10 +683,7 @@ var Icons = {
|
|
|
692
683
|
warnCircleOutLined: '<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.5 8.875C7.5 8.94375 7.55625 9 7.625 9L8.375 9C8.44375 9 8.5 8.94375 8.5 8.875L8.5 4.625C8.5 4.55625 8.44375 4.5 8.375 4.5L7.625 4.5C7.55625 4.5 7.5 4.55625 7.5 4.625L7.5 8.875ZM7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75Z" fill-rule="evenodd" />\n </svg>',
|
|
693
684
|
date: '<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="date">\n <g>\n <path d="m13.35,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.3,0.5 -0.5,0.5z" />\n <path d="m6.65,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.2,0.5 -0.5,0.5z" />\n <path d="m17.45,8.4l-15,0c-0.3,0 -0.5,-0.2 -0.5,-0.5s0.2,-0.5 0.5,-0.5l15,0c0.3,0 0.5,0.2 0.5,0.5s-0.2,0.5 -0.5,0.5z" />\n <path d="m15.85,18.4l-11.7,0c-1.2,0 -2.2,-1 -2.2,-2.2l0,-10.8c0,-1.2 1,-2.2 2.2,-2.2l11.7,0c1.2,0 2.2,1 2.2,2.2l0,10.8c-0.1,1.3 -1,2.2 -2.2,2.2zm-11.7,-14.1c-0.6,0 -1.2,0.5 -1.2,1.2l0,10.8c0,0.6 0.5,1.2 1.2,1.2l11.7,0c0.6,0 1.2,-0.5 1.2,-1.2l0,-10.9c0,-0.6 -0.5,-1.2 -1.2,-1.2l-11.7,0l0,0.1z" />\n <path d="m9.95,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5s0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7z" />\n <path d="m14.15,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7zm0,-1c-0.2,0 -0.3,0.1 -0.3,0.3c0,0.2 0.3,0.4 0.5,0.2c0.1,-0.1 0.1,-0.1 0.1,-0.2c0,-0.2 -0.1,-0.3 -0.3,-0.3z" />\n <path d="m5.85,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0,0.4 -0.3,0.7 -0.7,0.7z" />\n <path d="m9.95,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0.1,0.4 -0.3,0.7 -0.7,0.7z" />\n </g>\n </svg>',
|
|
694
685
|
add: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="add">\n <path d="M10.5859 2.96875L9.41406 2.96875C9.3099 2.96875 9.25781 3.02083 9.25781 3.125L9.25781 9.25781L3.4375 9.25781C3.38542 9.25781 3.34635 9.27083 3.32031 9.29688C3.29427 9.32292 3.28125 9.36198 3.28125 9.41406L3.28125 10.5859C3.28125 10.6901 3.33333 10.7422 3.4375 10.7422L9.25781 10.7422L9.25781 16.875C9.25781 16.9792 9.3099 17.0312 9.41406 17.0312L10.5859 17.0312C10.6901 17.0312 10.7422 16.9792 10.7422 16.875L10.7422 10.7422L16.5625 10.7422C16.6667 10.7422 16.7188 10.6901 16.7188 10.5859L16.7188 9.41406C16.7188 9.3099 16.6667 9.25781 16.5625 9.25781L10.7422 9.25781L10.7422 3.125C10.7422 3.07292 10.7292 3.03385 10.7031 3.00781C10.6771 2.98177 10.638 2.96875 10.5859 2.96875Z" fill-rule="evenodd" /></svg>',
|
|
695
|
-
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>'
|
|
696
|
-
/** 直播 */ live: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="live">\n <rect width="18" height="13" x="3" y="7" rx="1.6" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M8.26636 4.8L10.466 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M15.996 4.8L13.796 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M9.8 17L15.4 13.354L9.8 10L9.8 17Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
697
|
-
/** 回放 */ recDropdown: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="rec-dropdown">\n <path d="M9.168 2.556C9.168 2.556 12.51 4.445 12 4.445C7.306 4.445 3.5 8.251 3.5 12.945C3.5 17.64 7.306 21.445 12 21.445C16.695 21.445 20.5 17.64 20.5 12.945C20.5 10.622 19.568 8.517 18.058 6.982" stroke-linecap="round" stroke-width="1.5"/>\n <path d="M11.61 9.829L11.61 13.731L16.064 13.731" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
698
|
-
/** 消息/告警 */ alarmMessage: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="alarm-message">\n <path d="M9.708 18.344L9.708 18.709C9.708 19.974 10.734 21 12 21C13.266 21 14.292 19.974 14.292 18.709L14.292 18.343" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M13.833 5.751L13.833 4.833C13.833 3.821 13.013 3 12 3C10.987 3 10.167 3.821 10.167 4.833L10.167 5.751" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M6.563 10.189C6.563 7.686 8.592 5.657 11.094 5.657L12.907 5.657C15.41 5.657 17.438 7.686 17.438 10.189L17.438 12.986C17.438 13.516 17.649 14.025 18.024 14.4L18.665 15.04C19.04 15.416 19.251 15.925 19.251 16.455C19.251 17.499 18.405 18.345 17.361 18.345L6.64 18.345C5.596 18.345 4.75 17.499 4.75 16.455C4.75 15.925 4.961 15.416 5.336 15.04L5.977 14.4C6.352 14.025 6.563 13.516 6.563 12.986L6.563 10.189Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>'
|
|
686
|
+
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>'
|
|
699
687
|
};
|
|
700
688
|
|
|
701
689
|
/**
|
|
@@ -853,23 +841,11 @@ var IconComponents = {
|
|
|
853
841
|
reduce: function(attr) {
|
|
854
842
|
if (attr === void 0) attr = {};
|
|
855
843
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
856
|
-
},
|
|
857
|
-
/** 直播 */ live: function(attr) {
|
|
858
|
-
if (attr === void 0) attr = {};
|
|
859
|
-
return createIcon(Icons.live, 'live', attr);
|
|
860
|
-
},
|
|
861
|
-
/** 回放 */ recDropdown: function(attr) {
|
|
862
|
-
if (attr === void 0) attr = {};
|
|
863
|
-
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
864
|
-
},
|
|
865
|
-
/** 消息 */ alarmMessage: function(attr) {
|
|
866
|
-
if (attr === void 0) attr = {};
|
|
867
|
-
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
868
844
|
}
|
|
869
845
|
};
|
|
870
846
|
|
|
871
|
-
function _extends$
|
|
872
|
-
_extends$
|
|
847
|
+
function _extends$q() {
|
|
848
|
+
_extends$q = Object.assign || function(target) {
|
|
873
849
|
for(var i = 1; i < arguments.length; i++){
|
|
874
850
|
var source = arguments[i];
|
|
875
851
|
for(var key in source){
|
|
@@ -880,9 +856,9 @@ function _extends$t() {
|
|
|
880
856
|
}
|
|
881
857
|
return target;
|
|
882
858
|
};
|
|
883
|
-
return _extends$
|
|
859
|
+
return _extends$q.apply(this, arguments);
|
|
884
860
|
}
|
|
885
|
-
function _inherits$
|
|
861
|
+
function _inherits$q(subClass, superClass) {
|
|
886
862
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
887
863
|
throw new TypeError("Super expression must either be null or a function");
|
|
888
864
|
}
|
|
@@ -893,25 +869,25 @@ function _inherits$t(subClass, superClass) {
|
|
|
893
869
|
configurable: true
|
|
894
870
|
}
|
|
895
871
|
});
|
|
896
|
-
if (superClass) _set_prototype_of$
|
|
872
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
897
873
|
}
|
|
898
|
-
function _set_prototype_of$
|
|
899
|
-
_set_prototype_of$
|
|
874
|
+
function _set_prototype_of$q(o, p) {
|
|
875
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
900
876
|
o.__proto__ = p;
|
|
901
877
|
return o;
|
|
902
878
|
};
|
|
903
|
-
return _set_prototype_of$
|
|
879
|
+
return _set_prototype_of$q(o, p);
|
|
904
880
|
}
|
|
905
881
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
906
882
|
/**
|
|
907
883
|
* 消息控件
|
|
908
884
|
* @category Control
|
|
909
885
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
910
|
-
_inherits$
|
|
886
|
+
_inherits$q(Message, Control);
|
|
911
887
|
function Message(options) {
|
|
912
888
|
if (options === void 0) options = {};
|
|
913
889
|
var _this;
|
|
914
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
890
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$q({}, options, {
|
|
915
891
|
tagName: 'div',
|
|
916
892
|
controlType: 'block'
|
|
917
893
|
}))) || this, _this._$toast = null;
|
|
@@ -1064,8 +1040,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1064
1040
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1065
1041
|
return Constructor;
|
|
1066
1042
|
}
|
|
1067
|
-
function _extends$
|
|
1068
|
-
_extends$
|
|
1043
|
+
function _extends$p() {
|
|
1044
|
+
_extends$p = Object.assign || function(target) {
|
|
1069
1045
|
for(var i = 1; i < arguments.length; i++){
|
|
1070
1046
|
var source = arguments[i];
|
|
1071
1047
|
for(var key in source){
|
|
@@ -1076,9 +1052,9 @@ function _extends$s() {
|
|
|
1076
1052
|
}
|
|
1077
1053
|
return target;
|
|
1078
1054
|
};
|
|
1079
|
-
return _extends$
|
|
1055
|
+
return _extends$p.apply(this, arguments);
|
|
1080
1056
|
}
|
|
1081
|
-
function _inherits$
|
|
1057
|
+
function _inherits$p(subClass, superClass) {
|
|
1082
1058
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1083
1059
|
throw new TypeError("Super expression must either be null or a function");
|
|
1084
1060
|
}
|
|
@@ -1089,23 +1065,23 @@ function _inherits$s(subClass, superClass) {
|
|
|
1089
1065
|
configurable: true
|
|
1090
1066
|
}
|
|
1091
1067
|
});
|
|
1092
|
-
if (superClass) _set_prototype_of$
|
|
1068
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
1093
1069
|
}
|
|
1094
|
-
function _set_prototype_of$
|
|
1095
|
-
_set_prototype_of$
|
|
1070
|
+
function _set_prototype_of$p(o, p) {
|
|
1071
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1096
1072
|
o.__proto__ = p;
|
|
1097
1073
|
return o;
|
|
1098
1074
|
};
|
|
1099
|
-
return _set_prototype_of$
|
|
1075
|
+
return _set_prototype_of$p(o, p);
|
|
1100
1076
|
}
|
|
1101
1077
|
/**
|
|
1102
1078
|
* 播放/暂停控件
|
|
1103
1079
|
* @category Control
|
|
1104
1080
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1105
|
-
_inherits$
|
|
1081
|
+
_inherits$p(Play, Control);
|
|
1106
1082
|
function Play(options) {
|
|
1107
1083
|
var _this;
|
|
1108
|
-
_this = Control.call(this, _extends$
|
|
1084
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
1109
1085
|
tagName: 'span',
|
|
1110
1086
|
controlType: 'button',
|
|
1111
1087
|
classNameSuffix: 'play'
|
|
@@ -1721,8 +1697,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1721
1697
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1722
1698
|
return Constructor;
|
|
1723
1699
|
}
|
|
1724
|
-
function _extends$
|
|
1725
|
-
_extends$
|
|
1700
|
+
function _extends$o() {
|
|
1701
|
+
_extends$o = Object.assign || function(target) {
|
|
1726
1702
|
for(var i = 1; i < arguments.length; i++){
|
|
1727
1703
|
var source = arguments[i];
|
|
1728
1704
|
for(var key in source){
|
|
@@ -1733,9 +1709,9 @@ function _extends$r() {
|
|
|
1733
1709
|
}
|
|
1734
1710
|
return target;
|
|
1735
1711
|
};
|
|
1736
|
-
return _extends$
|
|
1712
|
+
return _extends$o.apply(this, arguments);
|
|
1737
1713
|
}
|
|
1738
|
-
function _inherits$
|
|
1714
|
+
function _inherits$o(subClass, superClass) {
|
|
1739
1715
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1740
1716
|
throw new TypeError("Super expression must either be null or a function");
|
|
1741
1717
|
}
|
|
@@ -1746,14 +1722,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
1746
1722
|
configurable: true
|
|
1747
1723
|
}
|
|
1748
1724
|
});
|
|
1749
|
-
if (superClass) _set_prototype_of$
|
|
1725
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
1750
1726
|
}
|
|
1751
|
-
function _set_prototype_of$
|
|
1752
|
-
_set_prototype_of$
|
|
1727
|
+
function _set_prototype_of$o(o, p) {
|
|
1728
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1753
1729
|
o.__proto__ = p;
|
|
1754
1730
|
return o;
|
|
1755
1731
|
};
|
|
1756
|
-
return _set_prototype_of$
|
|
1732
|
+
return _set_prototype_of$o(o, p);
|
|
1757
1733
|
}
|
|
1758
1734
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1759
1735
|
volume: 0.8,
|
|
@@ -1767,12 +1743,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1767
1743
|
* 音量调节控件
|
|
1768
1744
|
* @category Control
|
|
1769
1745
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1770
|
-
_inherits$
|
|
1746
|
+
_inherits$o(Volume, Control);
|
|
1771
1747
|
function Volume(options) {
|
|
1772
1748
|
if (options === void 0) options = {};
|
|
1773
1749
|
var _this;
|
|
1774
1750
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1775
|
-
_this = Control.call(this, _extends$
|
|
1751
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
1776
1752
|
tagName: 'span',
|
|
1777
1753
|
classNameSuffix: 'volume',
|
|
1778
1754
|
controlType: 'button'
|
|
@@ -2432,8 +2408,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2432
2408
|
return Fullscreen;
|
|
2433
2409
|
}();
|
|
2434
2410
|
|
|
2435
|
-
function _extends$
|
|
2436
|
-
_extends$
|
|
2411
|
+
function _extends$n() {
|
|
2412
|
+
_extends$n = Object.assign || function(target) {
|
|
2437
2413
|
for(var i = 1; i < arguments.length; i++){
|
|
2438
2414
|
var source = arguments[i];
|
|
2439
2415
|
for(var key in source){
|
|
@@ -2444,9 +2420,9 @@ function _extends$q() {
|
|
|
2444
2420
|
}
|
|
2445
2421
|
return target;
|
|
2446
2422
|
};
|
|
2447
|
-
return _extends$
|
|
2423
|
+
return _extends$n.apply(this, arguments);
|
|
2448
2424
|
}
|
|
2449
|
-
function _inherits$
|
|
2425
|
+
function _inherits$n(subClass, superClass) {
|
|
2450
2426
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2451
2427
|
throw new TypeError("Super expression must either be null or a function");
|
|
2452
2428
|
}
|
|
@@ -2457,24 +2433,24 @@ function _inherits$q(subClass, superClass) {
|
|
|
2457
2433
|
configurable: true
|
|
2458
2434
|
}
|
|
2459
2435
|
});
|
|
2460
|
-
if (superClass) _set_prototype_of$
|
|
2436
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
2461
2437
|
}
|
|
2462
|
-
function _set_prototype_of$
|
|
2463
|
-
_set_prototype_of$
|
|
2438
|
+
function _set_prototype_of$n(o, p) {
|
|
2439
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2464
2440
|
o.__proto__ = p;
|
|
2465
2441
|
return o;
|
|
2466
2442
|
};
|
|
2467
|
-
return _set_prototype_of$
|
|
2443
|
+
return _set_prototype_of$n(o, p);
|
|
2468
2444
|
}
|
|
2469
2445
|
/**
|
|
2470
2446
|
* 全屏控件
|
|
2471
2447
|
* @category Control
|
|
2472
2448
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2473
|
-
_inherits$
|
|
2449
|
+
_inherits$n(Fullscreen, Control);
|
|
2474
2450
|
function Fullscreen(options) {
|
|
2475
2451
|
var _this;
|
|
2476
2452
|
var _options_props, _this_options;
|
|
2477
|
-
_this = Control.call(this, _extends$
|
|
2453
|
+
_this = Control.call(this, _extends$n({
|
|
2478
2454
|
tagName: 'span',
|
|
2479
2455
|
classNameSuffix: 'fullscreen',
|
|
2480
2456
|
controlType: 'button'
|
|
@@ -2539,8 +2515,8 @@ function _set_prototype_of$q(o, p) {
|
|
|
2539
2515
|
return Fullscreen;
|
|
2540
2516
|
}(Control);
|
|
2541
2517
|
|
|
2542
|
-
function _extends$
|
|
2543
|
-
_extends$
|
|
2518
|
+
function _extends$m() {
|
|
2519
|
+
_extends$m = Object.assign || function(target) {
|
|
2544
2520
|
for(var i = 1; i < arguments.length; i++){
|
|
2545
2521
|
var source = arguments[i];
|
|
2546
2522
|
for(var key in source){
|
|
@@ -2551,9 +2527,9 @@ function _extends$p() {
|
|
|
2551
2527
|
}
|
|
2552
2528
|
return target;
|
|
2553
2529
|
};
|
|
2554
|
-
return _extends$
|
|
2530
|
+
return _extends$m.apply(this, arguments);
|
|
2555
2531
|
}
|
|
2556
|
-
function _inherits$
|
|
2532
|
+
function _inherits$m(subClass, superClass) {
|
|
2557
2533
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2558
2534
|
throw new TypeError("Super expression must either be null or a function");
|
|
2559
2535
|
}
|
|
@@ -2564,24 +2540,24 @@ function _inherits$p(subClass, superClass) {
|
|
|
2564
2540
|
configurable: true
|
|
2565
2541
|
}
|
|
2566
2542
|
});
|
|
2567
|
-
if (superClass) _set_prototype_of$
|
|
2543
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
2568
2544
|
}
|
|
2569
|
-
function _set_prototype_of$
|
|
2570
|
-
_set_prototype_of$
|
|
2545
|
+
function _set_prototype_of$m(o, p) {
|
|
2546
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2571
2547
|
o.__proto__ = p;
|
|
2572
2548
|
return o;
|
|
2573
2549
|
};
|
|
2574
|
-
return _set_prototype_of$
|
|
2550
|
+
return _set_prototype_of$m(o, p);
|
|
2575
2551
|
}
|
|
2576
2552
|
/**
|
|
2577
2553
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2578
2554
|
* @category Control
|
|
2579
2555
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2580
|
-
_inherits$
|
|
2556
|
+
_inherits$m(Rec, Control);
|
|
2581
2557
|
function Rec(options) {
|
|
2582
2558
|
var _this;
|
|
2583
2559
|
var _options_props;
|
|
2584
|
-
_this = Control.call(this, _extends$
|
|
2560
|
+
_this = Control.call(this, _extends$m({}, options, {
|
|
2585
2561
|
tagName: 'div',
|
|
2586
2562
|
controlType: 'block',
|
|
2587
2563
|
classNameSuffix: 'rec'
|
|
@@ -2858,12 +2834,6 @@ var zh = {
|
|
|
2858
2834
|
BTN_TALK: '对讲',
|
|
2859
2835
|
BTN_BROADCAST: '语音广播',
|
|
2860
2836
|
BTN_AICHAT: 'AI对话',
|
|
2861
|
-
BTN_LIVE: '直播',
|
|
2862
|
-
BTN_REC_DROPDOWN: '回放',
|
|
2863
|
-
BTN_ALARM_MESSAGE: '消息',
|
|
2864
|
-
REC_DROPDOWN_CLOUD_REC: '云存储',
|
|
2865
|
-
REC_DROPDOWN_CLOUD_RECORD: '云录制',
|
|
2866
|
-
REC_DROPDOWN_LOCAL_REC: '本地回放',
|
|
2867
2837
|
BTN_ZOOM: '电子放大',
|
|
2868
2838
|
BTN_3D_ZOOM: '3D定位',
|
|
2869
2839
|
BTN_PTZ: '云台控制',
|
|
@@ -3136,12 +3106,6 @@ var en = {
|
|
|
3136
3106
|
BTN_TALK: 'Intercom',
|
|
3137
3107
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3138
3108
|
BTN_AICHAT: 'AI Chat',
|
|
3139
|
-
BTN_LIVE: 'Live',
|
|
3140
|
-
BTN_REC_DROPDOWN: 'Playback',
|
|
3141
|
-
BTN_ALARM_MESSAGE: 'Messages',
|
|
3142
|
-
REC_DROPDOWN_CLOUD_REC: 'Cloud Storage',
|
|
3143
|
-
REC_DROPDOWN_CLOUD_RECORD: 'Cloud Recording',
|
|
3144
|
-
REC_DROPDOWN_LOCAL_REC: 'Local Playback',
|
|
3145
3109
|
BTN_ZOOM: 'Electronic zoom',
|
|
3146
3110
|
BTN_3D_ZOOM: '3D positioning',
|
|
3147
3111
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3297,6 +3261,12 @@ var en = {
|
|
|
3297
3261
|
defaultActive: 0,
|
|
3298
3262
|
isrender: 1
|
|
3299
3263
|
},
|
|
3264
|
+
{
|
|
3265
|
+
iconId: 'zoom',
|
|
3266
|
+
part: 'left',
|
|
3267
|
+
defaultActive: 0,
|
|
3268
|
+
isrender: 1
|
|
3269
|
+
},
|
|
3300
3270
|
{
|
|
3301
3271
|
iconId: 'fullscreen',
|
|
3302
3272
|
part: 'right',
|
|
@@ -3331,21 +3301,6 @@ var en = {
|
|
|
3331
3301
|
iconId: 'deviceName',
|
|
3332
3302
|
part: 'left',
|
|
3333
3303
|
isrender: 1
|
|
3334
|
-
},
|
|
3335
|
-
{
|
|
3336
|
-
iconId: 'live',
|
|
3337
|
-
part: 'right',
|
|
3338
|
-
isrender: 1
|
|
3339
|
-
},
|
|
3340
|
-
{
|
|
3341
|
-
iconId: 'recDropdown',
|
|
3342
|
-
part: 'right',
|
|
3343
|
-
isrender: 1
|
|
3344
|
-
},
|
|
3345
|
-
{
|
|
3346
|
-
iconId: 'alarmMessage',
|
|
3347
|
-
part: 'right',
|
|
3348
|
-
isrender: 1
|
|
3349
3304
|
}
|
|
3350
3305
|
]
|
|
3351
3306
|
},
|
|
@@ -3433,19 +3388,19 @@ var en = {
|
|
|
3433
3388
|
isrender: 1
|
|
3434
3389
|
},
|
|
3435
3390
|
{
|
|
3436
|
-
iconId: '
|
|
3391
|
+
iconId: 'cloudRec',
|
|
3437
3392
|
part: 'right',
|
|
3438
3393
|
defaultActive: 0,
|
|
3439
3394
|
isrender: 1
|
|
3440
3395
|
},
|
|
3441
3396
|
{
|
|
3442
|
-
iconId: '
|
|
3397
|
+
iconId: 'cloudRecord',
|
|
3443
3398
|
part: 'right',
|
|
3444
3399
|
defaultActive: 0,
|
|
3445
3400
|
isrender: 1
|
|
3446
3401
|
},
|
|
3447
3402
|
{
|
|
3448
|
-
iconId: '
|
|
3403
|
+
iconId: 'rec',
|
|
3449
3404
|
part: 'right',
|
|
3450
3405
|
defaultActive: 0,
|
|
3451
3406
|
isrender: 1
|
|
@@ -3848,7 +3803,7 @@ var en = {
|
|
|
3848
3803
|
voice: voice
|
|
3849
3804
|
};
|
|
3850
3805
|
|
|
3851
|
-
function _inherits$
|
|
3806
|
+
function _inherits$l(subClass, superClass) {
|
|
3852
3807
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3853
3808
|
throw new TypeError("Super expression must either be null or a function");
|
|
3854
3809
|
}
|
|
@@ -3859,20 +3814,20 @@ function _inherits$o(subClass, superClass) {
|
|
|
3859
3814
|
configurable: true
|
|
3860
3815
|
}
|
|
3861
3816
|
});
|
|
3862
|
-
if (superClass) _set_prototype_of$
|
|
3817
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
3863
3818
|
}
|
|
3864
|
-
function _set_prototype_of$
|
|
3865
|
-
_set_prototype_of$
|
|
3819
|
+
function _set_prototype_of$l(o, p) {
|
|
3820
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3866
3821
|
o.__proto__ = p;
|
|
3867
3822
|
return o;
|
|
3868
3823
|
};
|
|
3869
|
-
return _set_prototype_of$
|
|
3824
|
+
return _set_prototype_of$l(o, p);
|
|
3870
3825
|
}
|
|
3871
3826
|
/**
|
|
3872
3827
|
* 截图控件
|
|
3873
3828
|
* @category Content
|
|
3874
3829
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3875
|
-
_inherits$
|
|
3830
|
+
_inherits$l(Content, EventEmitter);
|
|
3876
3831
|
function Content(options) {
|
|
3877
3832
|
var _this;
|
|
3878
3833
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3987,8 +3942,8 @@ function _set_prototype_of$o(o, p) {
|
|
|
3987
3942
|
return Content;
|
|
3988
3943
|
}(EventEmitter);
|
|
3989
3944
|
|
|
3990
|
-
function _extends$
|
|
3991
|
-
_extends$
|
|
3945
|
+
function _extends$l() {
|
|
3946
|
+
_extends$l = Object.assign || function(target) {
|
|
3992
3947
|
for(var i = 1; i < arguments.length; i++){
|
|
3993
3948
|
var source = arguments[i];
|
|
3994
3949
|
for(var key in source){
|
|
@@ -3999,9 +3954,9 @@ function _extends$o() {
|
|
|
3999
3954
|
}
|
|
4000
3955
|
return target;
|
|
4001
3956
|
};
|
|
4002
|
-
return _extends$
|
|
3957
|
+
return _extends$l.apply(this, arguments);
|
|
4003
3958
|
}
|
|
4004
|
-
function _inherits$
|
|
3959
|
+
function _inherits$k(subClass, superClass) {
|
|
4005
3960
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4006
3961
|
throw new TypeError("Super expression must either be null or a function");
|
|
4007
3962
|
}
|
|
@@ -4012,23 +3967,23 @@ function _inherits$n(subClass, superClass) {
|
|
|
4012
3967
|
configurable: true
|
|
4013
3968
|
}
|
|
4014
3969
|
});
|
|
4015
|
-
if (superClass) _set_prototype_of$
|
|
3970
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
4016
3971
|
}
|
|
4017
|
-
function _set_prototype_of$
|
|
4018
|
-
_set_prototype_of$
|
|
3972
|
+
function _set_prototype_of$k(o, p) {
|
|
3973
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4019
3974
|
o.__proto__ = p;
|
|
4020
3975
|
return o;
|
|
4021
3976
|
};
|
|
4022
|
-
return _set_prototype_of$
|
|
3977
|
+
return _set_prototype_of$k(o, p);
|
|
4023
3978
|
}
|
|
4024
3979
|
/**
|
|
4025
3980
|
* 更多控件
|
|
4026
3981
|
* @category Control
|
|
4027
3982
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
4028
|
-
_inherits$
|
|
3983
|
+
_inherits$k(More, Control);
|
|
4029
3984
|
function More(options) {
|
|
4030
3985
|
var _this;
|
|
4031
|
-
_this = Control.call(this, _extends$
|
|
3986
|
+
_this = Control.call(this, _extends$l({}, options, {
|
|
4032
3987
|
tagName: 'span',
|
|
4033
3988
|
controlType: 'button',
|
|
4034
3989
|
classNameSuffix: 'more'
|
|
@@ -4244,15 +4199,6 @@ function debounce(func, wait) {
|
|
|
4244
4199
|
}
|
|
4245
4200
|
});
|
|
4246
4201
|
// =======================================================
|
|
4247
|
-
// 告警消息
|
|
4248
|
-
// =======================================================
|
|
4249
|
-
theme.on(EVENTS.alarmMessageChange, function(active) {
|
|
4250
|
-
var _theme_controls;
|
|
4251
|
-
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
|
|
4252
|
-
theme.controls.alarmMessageControl._panelOpen = active;
|
|
4253
|
-
}
|
|
4254
|
-
});
|
|
4255
|
-
// =======================================================
|
|
4256
4202
|
// 录制
|
|
4257
4203
|
// =======================================================
|
|
4258
4204
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4348,7 +4294,7 @@ function debounce(func, wait) {
|
|
|
4348
4294
|
*
|
|
4349
4295
|
* @param theme - Theme
|
|
4350
4296
|
*/ function _controlEventemitter(theme) {
|
|
4351
|
-
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16
|
|
4297
|
+
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16;
|
|
4352
4298
|
// Controls
|
|
4353
4299
|
if (theme._recFooter) {
|
|
4354
4300
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4459,50 +4405,8 @@ function debounce(func, wait) {
|
|
|
4459
4405
|
theme.emit(EVENTS.control.aichatDestroy);
|
|
4460
4406
|
});
|
|
4461
4407
|
}
|
|
4462
|
-
// 直播按钮
|
|
4463
|
-
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
|
|
4464
|
-
theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
|
|
4465
|
-
var _theme_controls;
|
|
4466
|
-
// 直接设置回放下拉控件为非激活状态
|
|
4467
|
-
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
|
|
4468
|
-
theme.controls.recDropdownControl.active = false;
|
|
4469
|
-
}
|
|
4470
|
-
theme.emit(EVENTS.control.liveChange);
|
|
4471
|
-
});
|
|
4472
|
-
}
|
|
4473
|
-
// 回放下拉
|
|
4474
|
-
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
|
|
4475
|
-
theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
|
|
4476
|
-
var _theme_controls;
|
|
4477
|
-
// 直接设置直播控件为非激活状态
|
|
4478
|
-
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4479
|
-
theme.controls.liveControl.active = false;
|
|
4480
|
-
}
|
|
4481
|
-
theme.emit(EVENTS.control.recDropdownChange, type);
|
|
4482
|
-
});
|
|
4483
|
-
}
|
|
4484
|
-
// 告警消息
|
|
4485
|
-
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
|
|
4486
|
-
theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
|
|
4487
|
-
theme.emit(EVENTS.control.alarmMessageChange, active);
|
|
4488
|
-
});
|
|
4489
|
-
}
|
|
4490
|
-
// 播放地址切换后同步 Live/RecDropdown 激活状态
|
|
4491
|
-
// changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
|
|
4492
|
-
if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
|
|
4493
|
-
theme.on(EVENTS.firstFrameDisplay, function() {
|
|
4494
|
-
var _theme_controls, _theme_controls1;
|
|
4495
|
-
var urlInfo = theme.urlInfo;
|
|
4496
|
-
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4497
|
-
theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
|
|
4498
|
-
}
|
|
4499
|
-
if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
|
|
4500
|
-
theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
|
|
4501
|
-
}
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
4408
|
// 缩放控件
|
|
4505
|
-
if ((
|
|
4409
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.zoomControl) {
|
|
4506
4410
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4507
4411
|
if (theme.zoom !== value) {
|
|
4508
4412
|
theme.zoom = value;
|
|
@@ -4524,7 +4428,7 @@ function debounce(func, wait) {
|
|
|
4524
4428
|
});
|
|
4525
4429
|
}
|
|
4526
4430
|
// 清晰度控件
|
|
4527
|
-
if ((
|
|
4431
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.definitionControl) {
|
|
4528
4432
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4529
4433
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4530
4434
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4537,7 +4441,7 @@ function debounce(func, wait) {
|
|
|
4537
4441
|
});
|
|
4538
4442
|
}
|
|
4539
4443
|
// 倍速控件
|
|
4540
|
-
if ((
|
|
4444
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.speedControl) {
|
|
4541
4445
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4542
4446
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4543
4447
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4550,7 +4454,7 @@ function debounce(func, wait) {
|
|
|
4550
4454
|
});
|
|
4551
4455
|
}
|
|
4552
4456
|
// 截图控件
|
|
4553
|
-
if ((
|
|
4457
|
+
if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.capturePictureControl) {
|
|
4554
4458
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4555
4459
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4556
4460
|
});
|
|
@@ -4559,25 +4463,25 @@ function debounce(func, wait) {
|
|
|
4559
4463
|
});
|
|
4560
4464
|
}
|
|
4561
4465
|
// 全屏控件
|
|
4562
|
-
if ((
|
|
4466
|
+
if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.fullscreenControl) {
|
|
4563
4467
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4564
4468
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4565
4469
|
});
|
|
4566
4470
|
}
|
|
4567
4471
|
// 全局全屏控件
|
|
4568
|
-
if ((
|
|
4472
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.globalFullscreenControl) {
|
|
4569
4473
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4570
4474
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4571
4475
|
});
|
|
4572
4476
|
}
|
|
4573
4477
|
// 设备信息控件
|
|
4574
|
-
if ((
|
|
4478
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.deviceControl) {
|
|
4575
4479
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4576
4480
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4577
4481
|
});
|
|
4578
4482
|
}
|
|
4579
4483
|
// 回放类型切换控件
|
|
4580
|
-
if ((
|
|
4484
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.recControl) {
|
|
4581
4485
|
// prettier-ignore
|
|
4582
4486
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4583
4487
|
if (theme.recType !== type) {
|
|
@@ -4598,7 +4502,7 @@ function debounce(func, wait) {
|
|
|
4598
4502
|
});
|
|
4599
4503
|
}
|
|
4600
4504
|
// 时间轴控件
|
|
4601
|
-
if ((
|
|
4505
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.timeLineControl) {
|
|
4602
4506
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4603
4507
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4604
4508
|
});
|
|
@@ -4615,7 +4519,7 @@ function debounce(func, wait) {
|
|
|
4615
4519
|
});
|
|
4616
4520
|
}
|
|
4617
4521
|
// 日历控件
|
|
4618
|
-
if ((
|
|
4522
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.dateControl) {
|
|
4619
4523
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4620
4524
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4621
4525
|
});
|
|
@@ -4710,8 +4614,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4710
4614
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4711
4615
|
return Constructor;
|
|
4712
4616
|
}
|
|
4713
|
-
function _extends$
|
|
4714
|
-
_extends$
|
|
4617
|
+
function _extends$k() {
|
|
4618
|
+
_extends$k = Object.assign || function(target) {
|
|
4715
4619
|
for(var i = 1; i < arguments.length; i++){
|
|
4716
4620
|
var source = arguments[i];
|
|
4717
4621
|
for(var key in source){
|
|
@@ -4722,9 +4626,9 @@ function _extends$n() {
|
|
|
4722
4626
|
}
|
|
4723
4627
|
return target;
|
|
4724
4628
|
};
|
|
4725
|
-
return _extends$
|
|
4629
|
+
return _extends$k.apply(this, arguments);
|
|
4726
4630
|
}
|
|
4727
|
-
function _inherits$
|
|
4631
|
+
function _inherits$j(subClass, superClass) {
|
|
4728
4632
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4729
4633
|
throw new TypeError("Super expression must either be null or a function");
|
|
4730
4634
|
}
|
|
@@ -4735,14 +4639,14 @@ function _inherits$m(subClass, superClass) {
|
|
|
4735
4639
|
configurable: true
|
|
4736
4640
|
}
|
|
4737
4641
|
});
|
|
4738
|
-
if (superClass) _set_prototype_of$
|
|
4642
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
4739
4643
|
}
|
|
4740
|
-
function _set_prototype_of$
|
|
4741
|
-
_set_prototype_of$
|
|
4644
|
+
function _set_prototype_of$j(o, p) {
|
|
4645
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4742
4646
|
o.__proto__ = p;
|
|
4743
4647
|
return o;
|
|
4744
4648
|
};
|
|
4745
|
-
return _set_prototype_of$
|
|
4649
|
+
return _set_prototype_of$j(o, p);
|
|
4746
4650
|
}
|
|
4747
4651
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4748
4652
|
open: false,
|
|
@@ -4752,10 +4656,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4752
4656
|
* 电子放大控件
|
|
4753
4657
|
* @category Control
|
|
4754
4658
|
*/ var Zoom = /*#__PURE__*/ function(Control) {
|
|
4755
|
-
_inherits$
|
|
4659
|
+
_inherits$j(Zoom, Control);
|
|
4756
4660
|
function Zoom(options) {
|
|
4757
4661
|
var _this;
|
|
4758
|
-
_this = Control.call(this, _extends$
|
|
4662
|
+
_this = Control.call(this, _extends$k({}, options, {
|
|
4759
4663
|
tagName: 'span',
|
|
4760
4664
|
controlType: 'button',
|
|
4761
4665
|
classNameSuffix: 'zoom'
|
|
@@ -4883,8 +4787,8 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4883
4787
|
return Zoom;
|
|
4884
4788
|
}(Control);
|
|
4885
4789
|
|
|
4886
|
-
function _extends$
|
|
4887
|
-
_extends$
|
|
4790
|
+
function _extends$j() {
|
|
4791
|
+
_extends$j = Object.assign || function(target) {
|
|
4888
4792
|
for(var i = 1; i < arguments.length; i++){
|
|
4889
4793
|
var source = arguments[i];
|
|
4890
4794
|
for(var key in source){
|
|
@@ -4895,10 +4799,10 @@ function _extends$m() {
|
|
|
4895
4799
|
}
|
|
4896
4800
|
return target;
|
|
4897
4801
|
};
|
|
4898
|
-
return _extends$
|
|
4802
|
+
return _extends$j.apply(this, arguments);
|
|
4899
4803
|
}
|
|
4900
4804
|
function __zoom(theme, container, options) {
|
|
4901
|
-
theme.zoomUtil = new Zoom$1(container, _extends$
|
|
4805
|
+
theme.zoomUtil = new Zoom$1(container, _extends$j({}, options || {}, {
|
|
4902
4806
|
min: 1,
|
|
4903
4807
|
onChange: function(zoom, reset) {
|
|
4904
4808
|
if (zoom !== theme._zoom) {
|
|
@@ -5123,8 +5027,8 @@ function _async_to_generator$5(fn) {
|
|
|
5123
5027
|
});
|
|
5124
5028
|
};
|
|
5125
5029
|
}
|
|
5126
|
-
function _extends$
|
|
5127
|
-
_extends$
|
|
5030
|
+
function _extends$i() {
|
|
5031
|
+
_extends$i = Object.assign || function(target) {
|
|
5128
5032
|
for(var i = 1; i < arguments.length; i++){
|
|
5129
5033
|
var source = arguments[i];
|
|
5130
5034
|
for(var key in source){
|
|
@@ -5135,7 +5039,7 @@ function _extends$l() {
|
|
|
5135
5039
|
}
|
|
5136
5040
|
return target;
|
|
5137
5041
|
};
|
|
5138
|
-
return _extends$
|
|
5042
|
+
return _extends$i.apply(this, arguments);
|
|
5139
5043
|
}
|
|
5140
5044
|
function _ts_generator$5(thisArg, body) {
|
|
5141
5045
|
var f, y, t, _ = {
|
|
@@ -5263,7 +5167,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5263
5167
|
}
|
|
5264
5168
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5265
5169
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5266
|
-
recControls.push(recControls[0] ? _extends$
|
|
5170
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5267
5171
|
part: recControls[0].part
|
|
5268
5172
|
}) : item);
|
|
5269
5173
|
return false;
|
|
@@ -5286,7 +5190,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5286
5190
|
}
|
|
5287
5191
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5288
5192
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5289
|
-
recControls.push(recControls[0] ? _extends$
|
|
5193
|
+
recControls.push(recControls[0] ? _extends$i({}, item, {
|
|
5290
5194
|
part: recControls[0].part
|
|
5291
5195
|
}) : item);
|
|
5292
5196
|
return false;
|
|
@@ -5537,8 +5441,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5537
5441
|
return Component;
|
|
5538
5442
|
}();
|
|
5539
5443
|
|
|
5540
|
-
function _extends$
|
|
5541
|
-
_extends$
|
|
5444
|
+
function _extends$h() {
|
|
5445
|
+
_extends$h = Object.assign || function(target) {
|
|
5542
5446
|
for(var i = 1; i < arguments.length; i++){
|
|
5543
5447
|
var source = arguments[i];
|
|
5544
5448
|
for(var key in source){
|
|
@@ -5549,9 +5453,9 @@ function _extends$k() {
|
|
|
5549
5453
|
}
|
|
5550
5454
|
return target;
|
|
5551
5455
|
};
|
|
5552
|
-
return _extends$
|
|
5456
|
+
return _extends$h.apply(this, arguments);
|
|
5553
5457
|
}
|
|
5554
|
-
function _inherits$
|
|
5458
|
+
function _inherits$i(subClass, superClass) {
|
|
5555
5459
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5556
5460
|
throw new TypeError("Super expression must either be null or a function");
|
|
5557
5461
|
}
|
|
@@ -5562,28 +5466,28 @@ function _inherits$l(subClass, superClass) {
|
|
|
5562
5466
|
configurable: true
|
|
5563
5467
|
}
|
|
5564
5468
|
});
|
|
5565
|
-
if (superClass) _set_prototype_of$
|
|
5469
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
5566
5470
|
}
|
|
5567
|
-
function _set_prototype_of$
|
|
5568
|
-
_set_prototype_of$
|
|
5471
|
+
function _set_prototype_of$i(o, p) {
|
|
5472
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5569
5473
|
o.__proto__ = p;
|
|
5570
5474
|
return o;
|
|
5571
5475
|
};
|
|
5572
|
-
return _set_prototype_of$
|
|
5476
|
+
return _set_prototype_of$i(o, p);
|
|
5573
5477
|
}
|
|
5574
5478
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
5575
|
-
_inherits$
|
|
5479
|
+
_inherits$i(Footer, Component);
|
|
5576
5480
|
function Footer(options) {
|
|
5577
5481
|
if (options === void 0) options = {};
|
|
5578
|
-
return Component.call(this, _extends$
|
|
5482
|
+
return Component.call(this, _extends$h({}, options, {
|
|
5579
5483
|
cType: 'footer'
|
|
5580
5484
|
})) || this;
|
|
5581
5485
|
}
|
|
5582
5486
|
return Footer;
|
|
5583
5487
|
}(Component);
|
|
5584
5488
|
|
|
5585
|
-
function _extends$
|
|
5586
|
-
_extends$
|
|
5489
|
+
function _extends$g() {
|
|
5490
|
+
_extends$g = Object.assign || function(target) {
|
|
5587
5491
|
for(var i = 1; i < arguments.length; i++){
|
|
5588
5492
|
var source = arguments[i];
|
|
5589
5493
|
for(var key in source){
|
|
@@ -5594,9 +5498,9 @@ function _extends$j() {
|
|
|
5594
5498
|
}
|
|
5595
5499
|
return target;
|
|
5596
5500
|
};
|
|
5597
|
-
return _extends$
|
|
5501
|
+
return _extends$g.apply(this, arguments);
|
|
5598
5502
|
}
|
|
5599
|
-
function _inherits$
|
|
5503
|
+
function _inherits$h(subClass, superClass) {
|
|
5600
5504
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5601
5505
|
throw new TypeError("Super expression must either be null or a function");
|
|
5602
5506
|
}
|
|
@@ -5607,20 +5511,20 @@ function _inherits$k(subClass, superClass) {
|
|
|
5607
5511
|
configurable: true
|
|
5608
5512
|
}
|
|
5609
5513
|
});
|
|
5610
|
-
if (superClass) _set_prototype_of$
|
|
5514
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
5611
5515
|
}
|
|
5612
|
-
function _set_prototype_of$
|
|
5613
|
-
_set_prototype_of$
|
|
5516
|
+
function _set_prototype_of$h(o, p) {
|
|
5517
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5614
5518
|
o.__proto__ = p;
|
|
5615
5519
|
return o;
|
|
5616
5520
|
};
|
|
5617
|
-
return _set_prototype_of$
|
|
5521
|
+
return _set_prototype_of$h(o, p);
|
|
5618
5522
|
}
|
|
5619
5523
|
var Header = /*#__PURE__*/ function(Component) {
|
|
5620
|
-
_inherits$
|
|
5524
|
+
_inherits$h(Header, Component);
|
|
5621
5525
|
function Header(options) {
|
|
5622
5526
|
if (options === void 0) options = {};
|
|
5623
|
-
return Component.call(this, _extends$
|
|
5527
|
+
return Component.call(this, _extends$g({}, options, {
|
|
5624
5528
|
cType: 'header'
|
|
5625
5529
|
})) || this;
|
|
5626
5530
|
}
|
|
@@ -5786,8 +5690,8 @@ function interactiveHF($container, second, callback) {
|
|
|
5786
5690
|
};
|
|
5787
5691
|
}
|
|
5788
5692
|
|
|
5789
|
-
function _extends$
|
|
5790
|
-
_extends$
|
|
5693
|
+
function _extends$f() {
|
|
5694
|
+
_extends$f = Object.assign || function(target) {
|
|
5791
5695
|
for(var i = 1; i < arguments.length; i++){
|
|
5792
5696
|
var source = arguments[i];
|
|
5793
5697
|
for(var key in source){
|
|
@@ -5798,9 +5702,9 @@ function _extends$i() {
|
|
|
5798
5702
|
}
|
|
5799
5703
|
return target;
|
|
5800
5704
|
};
|
|
5801
|
-
return _extends$
|
|
5705
|
+
return _extends$f.apply(this, arguments);
|
|
5802
5706
|
}
|
|
5803
|
-
function _inherits$
|
|
5707
|
+
function _inherits$g(subClass, superClass) {
|
|
5804
5708
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5805
5709
|
throw new TypeError("Super expression must either be null or a function");
|
|
5806
5710
|
}
|
|
@@ -5811,23 +5715,23 @@ function _inherits$j(subClass, superClass) {
|
|
|
5811
5715
|
configurable: true
|
|
5812
5716
|
}
|
|
5813
5717
|
});
|
|
5814
|
-
if (superClass) _set_prototype_of$
|
|
5718
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
5815
5719
|
}
|
|
5816
|
-
function _set_prototype_of$
|
|
5817
|
-
_set_prototype_of$
|
|
5720
|
+
function _set_prototype_of$g(o, p) {
|
|
5721
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5818
5722
|
o.__proto__ = p;
|
|
5819
5723
|
return o;
|
|
5820
5724
|
};
|
|
5821
|
-
return _set_prototype_of$
|
|
5725
|
+
return _set_prototype_of$g(o, p);
|
|
5822
5726
|
}
|
|
5823
5727
|
/**
|
|
5824
5728
|
* 全局全屏
|
|
5825
5729
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
5826
5730
|
* @category Control
|
|
5827
5731
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
5828
|
-
_inherits$
|
|
5732
|
+
_inherits$g(GlobalFullscreen, Fullscreen);
|
|
5829
5733
|
function GlobalFullscreen(options) {
|
|
5830
|
-
return Fullscreen.call(this, _extends$
|
|
5734
|
+
return Fullscreen.call(this, _extends$f({}, options, {
|
|
5831
5735
|
controlType: 'button',
|
|
5832
5736
|
classNameSuffix: 'global-fullscreen'
|
|
5833
5737
|
})) || this;
|
|
@@ -5858,8 +5762,8 @@ function _set_prototype_of$j(o, p) {
|
|
|
5858
5762
|
return GlobalFullscreen;
|
|
5859
5763
|
}(Fullscreen);
|
|
5860
5764
|
|
|
5861
|
-
function _extends$
|
|
5862
|
-
_extends$
|
|
5765
|
+
function _extends$e() {
|
|
5766
|
+
_extends$e = Object.assign || function(target) {
|
|
5863
5767
|
for(var i = 1; i < arguments.length; i++){
|
|
5864
5768
|
var source = arguments[i];
|
|
5865
5769
|
for(var key in source){
|
|
@@ -5870,9 +5774,9 @@ function _extends$h() {
|
|
|
5870
5774
|
}
|
|
5871
5775
|
return target;
|
|
5872
5776
|
};
|
|
5873
|
-
return _extends$
|
|
5777
|
+
return _extends$e.apply(this, arguments);
|
|
5874
5778
|
}
|
|
5875
|
-
function _inherits$
|
|
5779
|
+
function _inherits$f(subClass, superClass) {
|
|
5876
5780
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5877
5781
|
throw new TypeError("Super expression must either be null or a function");
|
|
5878
5782
|
}
|
|
@@ -5883,23 +5787,23 @@ function _inherits$i(subClass, superClass) {
|
|
|
5883
5787
|
configurable: true
|
|
5884
5788
|
}
|
|
5885
5789
|
});
|
|
5886
|
-
if (superClass) _set_prototype_of$
|
|
5790
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
5887
5791
|
}
|
|
5888
|
-
function _set_prototype_of$
|
|
5889
|
-
_set_prototype_of$
|
|
5792
|
+
function _set_prototype_of$f(o, p) {
|
|
5793
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5890
5794
|
o.__proto__ = p;
|
|
5891
5795
|
return o;
|
|
5892
5796
|
};
|
|
5893
|
-
return _set_prototype_of$
|
|
5797
|
+
return _set_prototype_of$f(o, p);
|
|
5894
5798
|
}
|
|
5895
5799
|
/**
|
|
5896
5800
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
5897
5801
|
* @category Control
|
|
5898
5802
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
5899
|
-
_inherits$
|
|
5803
|
+
_inherits$f(CapturePicture, Control);
|
|
5900
5804
|
function CapturePicture(options) {
|
|
5901
5805
|
var _this;
|
|
5902
|
-
_this = Control.call(this, _extends$
|
|
5806
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
5903
5807
|
tagName: 'span',
|
|
5904
5808
|
classNameSuffix: 'capture-picture'
|
|
5905
5809
|
})) || this, _this._timer = null;
|
|
@@ -5965,8 +5869,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
5965
5869
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
5966
5870
|
return Constructor;
|
|
5967
5871
|
}
|
|
5968
|
-
function _extends$
|
|
5969
|
-
_extends$
|
|
5872
|
+
function _extends$d() {
|
|
5873
|
+
_extends$d = Object.assign || function(target) {
|
|
5970
5874
|
for(var i = 1; i < arguments.length; i++){
|
|
5971
5875
|
var source = arguments[i];
|
|
5972
5876
|
for(var key in source){
|
|
@@ -5977,9 +5881,9 @@ function _extends$g() {
|
|
|
5977
5881
|
}
|
|
5978
5882
|
return target;
|
|
5979
5883
|
};
|
|
5980
|
-
return _extends$
|
|
5884
|
+
return _extends$d.apply(this, arguments);
|
|
5981
5885
|
}
|
|
5982
|
-
function _inherits$
|
|
5886
|
+
function _inherits$e(subClass, superClass) {
|
|
5983
5887
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5984
5888
|
throw new TypeError("Super expression must either be null or a function");
|
|
5985
5889
|
}
|
|
@@ -5990,23 +5894,23 @@ function _inherits$h(subClass, superClass) {
|
|
|
5990
5894
|
configurable: true
|
|
5991
5895
|
}
|
|
5992
5896
|
});
|
|
5993
|
-
if (superClass) _set_prototype_of$
|
|
5897
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
5994
5898
|
}
|
|
5995
|
-
function _set_prototype_of$
|
|
5996
|
-
_set_prototype_of$
|
|
5899
|
+
function _set_prototype_of$e(o, p) {
|
|
5900
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5997
5901
|
o.__proto__ = p;
|
|
5998
5902
|
return o;
|
|
5999
5903
|
};
|
|
6000
|
-
return _set_prototype_of$
|
|
5904
|
+
return _set_prototype_of$e(o, p);
|
|
6001
5905
|
}
|
|
6002
5906
|
/**
|
|
6003
5907
|
* 云台控件
|
|
6004
5908
|
* @category Control
|
|
6005
5909
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
6006
|
-
_inherits$
|
|
5910
|
+
_inherits$e(Ptz, Control);
|
|
6007
5911
|
function Ptz(options) {
|
|
6008
5912
|
var _this;
|
|
6009
|
-
_this = Control.call(this, _extends$
|
|
5913
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6010
5914
|
tagName: 'span',
|
|
6011
5915
|
controlType: 'button',
|
|
6012
5916
|
classNameSuffix: 'ptz'
|
|
@@ -6049,7 +5953,7 @@ function _set_prototype_of$h(o, p) {
|
|
|
6049
5953
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
6050
5954
|
this.$panel.appendChild(this.$turntable);
|
|
6051
5955
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
6052
|
-
this._ptzControl = new Ptz$1(this.$turntable, _extends$
|
|
5956
|
+
this._ptzControl = new Ptz$1(this.$turntable, _extends$d({}, this._options, {
|
|
6053
5957
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
6054
5958
|
onDirection: this._onDirection.bind(this)
|
|
6055
5959
|
}));
|
|
@@ -6058,7 +5962,7 @@ function _set_prototype_of$h(o, p) {
|
|
|
6058
5962
|
};
|
|
6059
5963
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
6060
5964
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
6061
|
-
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$
|
|
5965
|
+
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$d({}, this._options, {
|
|
6062
5966
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
6063
5967
|
onDirection: this._onDirection.bind(this)
|
|
6064
5968
|
}));
|
|
@@ -6161,8 +6065,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6161
6065
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
6162
6066
|
return Constructor;
|
|
6163
6067
|
}
|
|
6164
|
-
function _extends$
|
|
6165
|
-
_extends$
|
|
6068
|
+
function _extends$c() {
|
|
6069
|
+
_extends$c = Object.assign || function(target) {
|
|
6166
6070
|
for(var i = 1; i < arguments.length; i++){
|
|
6167
6071
|
var source = arguments[i];
|
|
6168
6072
|
for(var key in source){
|
|
@@ -6173,9 +6077,9 @@ function _extends$f() {
|
|
|
6173
6077
|
}
|
|
6174
6078
|
return target;
|
|
6175
6079
|
};
|
|
6176
|
-
return _extends$
|
|
6080
|
+
return _extends$c.apply(this, arguments);
|
|
6177
6081
|
}
|
|
6178
|
-
function _inherits$
|
|
6082
|
+
function _inherits$d(subClass, superClass) {
|
|
6179
6083
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6180
6084
|
throw new TypeError("Super expression must either be null or a function");
|
|
6181
6085
|
}
|
|
@@ -6186,14 +6090,14 @@ function _inherits$g(subClass, superClass) {
|
|
|
6186
6090
|
configurable: true
|
|
6187
6091
|
}
|
|
6188
6092
|
});
|
|
6189
|
-
if (superClass) _set_prototype_of$
|
|
6093
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
6190
6094
|
}
|
|
6191
|
-
function _set_prototype_of$
|
|
6192
|
-
_set_prototype_of$
|
|
6095
|
+
function _set_prototype_of$d(o, p) {
|
|
6096
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6193
6097
|
o.__proto__ = p;
|
|
6194
6098
|
return o;
|
|
6195
6099
|
};
|
|
6196
|
-
return _set_prototype_of$
|
|
6100
|
+
return _set_prototype_of$d(o, p);
|
|
6197
6101
|
}
|
|
6198
6102
|
var RECORD_DEFAULT_OPTIONS = {
|
|
6199
6103
|
maxDuration: 3600
|
|
@@ -6207,10 +6111,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
6207
6111
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
6208
6112
|
* @category Control
|
|
6209
6113
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
6210
|
-
_inherits$
|
|
6114
|
+
_inherits$d(Record, Control);
|
|
6211
6115
|
function Record(options) {
|
|
6212
6116
|
var _this;
|
|
6213
|
-
_this = Control.call(this, _extends$
|
|
6117
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
6214
6118
|
tagName: 'span',
|
|
6215
6119
|
controlType: 'button',
|
|
6216
6120
|
classNameSuffix: 'record'
|
|
@@ -6351,8 +6255,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6351
6255
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
6352
6256
|
return Constructor;
|
|
6353
6257
|
}
|
|
6354
|
-
function _extends$
|
|
6355
|
-
_extends$
|
|
6258
|
+
function _extends$b() {
|
|
6259
|
+
_extends$b = Object.assign || function(target) {
|
|
6356
6260
|
for(var i = 1; i < arguments.length; i++){
|
|
6357
6261
|
var source = arguments[i];
|
|
6358
6262
|
for(var key in source){
|
|
@@ -6363,9 +6267,9 @@ function _extends$e() {
|
|
|
6363
6267
|
}
|
|
6364
6268
|
return target;
|
|
6365
6269
|
};
|
|
6366
|
-
return _extends$
|
|
6270
|
+
return _extends$b.apply(this, arguments);
|
|
6367
6271
|
}
|
|
6368
|
-
function _inherits$
|
|
6272
|
+
function _inherits$c(subClass, superClass) {
|
|
6369
6273
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6370
6274
|
throw new TypeError("Super expression must either be null or a function");
|
|
6371
6275
|
}
|
|
@@ -6376,14 +6280,14 @@ function _inherits$f(subClass, superClass) {
|
|
|
6376
6280
|
configurable: true
|
|
6377
6281
|
}
|
|
6378
6282
|
});
|
|
6379
|
-
if (superClass) _set_prototype_of$
|
|
6283
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
6380
6284
|
}
|
|
6381
|
-
function _set_prototype_of$
|
|
6382
|
-
_set_prototype_of$
|
|
6285
|
+
function _set_prototype_of$c(o, p) {
|
|
6286
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6383
6287
|
o.__proto__ = p;
|
|
6384
6288
|
return o;
|
|
6385
6289
|
};
|
|
6386
|
-
return _set_prototype_of$
|
|
6290
|
+
return _set_prototype_of$c(o, p);
|
|
6387
6291
|
}
|
|
6388
6292
|
function _ts_generator$4(thisArg, body) {
|
|
6389
6293
|
var f, y, t, _ = {
|
|
@@ -6485,10 +6389,10 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6485
6389
|
*
|
|
6486
6390
|
* @category Control
|
|
6487
6391
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
6488
|
-
_inherits$
|
|
6392
|
+
_inherits$c(Talk, Control);
|
|
6489
6393
|
function Talk(options) {
|
|
6490
6394
|
var _this;
|
|
6491
|
-
_this = Control.call(this, _extends$
|
|
6395
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
6492
6396
|
tagName: 'span',
|
|
6493
6397
|
controlType: 'button',
|
|
6494
6398
|
classNameSuffix: 'talk'
|
|
@@ -6621,8 +6525,8 @@ function _async_to_generator$3(fn) {
|
|
|
6621
6525
|
});
|
|
6622
6526
|
};
|
|
6623
6527
|
}
|
|
6624
|
-
function _extends$
|
|
6625
|
-
_extends$
|
|
6528
|
+
function _extends$a() {
|
|
6529
|
+
_extends$a = Object.assign || function(target) {
|
|
6626
6530
|
for(var i = 1; i < arguments.length; i++){
|
|
6627
6531
|
var source = arguments[i];
|
|
6628
6532
|
for(var key in source){
|
|
@@ -6633,9 +6537,9 @@ function _extends$d() {
|
|
|
6633
6537
|
}
|
|
6634
6538
|
return target;
|
|
6635
6539
|
};
|
|
6636
|
-
return _extends$
|
|
6540
|
+
return _extends$a.apply(this, arguments);
|
|
6637
6541
|
}
|
|
6638
|
-
function _inherits$
|
|
6542
|
+
function _inherits$b(subClass, superClass) {
|
|
6639
6543
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6640
6544
|
throw new TypeError("Super expression must either be null or a function");
|
|
6641
6545
|
}
|
|
@@ -6646,14 +6550,14 @@ function _inherits$e(subClass, superClass) {
|
|
|
6646
6550
|
configurable: true
|
|
6647
6551
|
}
|
|
6648
6552
|
});
|
|
6649
|
-
if (superClass) _set_prototype_of$
|
|
6553
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
6650
6554
|
}
|
|
6651
|
-
function _set_prototype_of$
|
|
6652
|
-
_set_prototype_of$
|
|
6555
|
+
function _set_prototype_of$b(o, p) {
|
|
6556
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6653
6557
|
o.__proto__ = p;
|
|
6654
6558
|
return o;
|
|
6655
6559
|
};
|
|
6656
|
-
return _set_prototype_of$
|
|
6560
|
+
return _set_prototype_of$b(o, p);
|
|
6657
6561
|
}
|
|
6658
6562
|
function _ts_generator$3(thisArg, body) {
|
|
6659
6563
|
var f, y, t, _ = {
|
|
@@ -6753,10 +6657,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6753
6657
|
*
|
|
6754
6658
|
* @category Control
|
|
6755
6659
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
6756
|
-
_inherits$
|
|
6660
|
+
_inherits$b(Broadcast, Control);
|
|
6757
6661
|
function Broadcast(options) {
|
|
6758
6662
|
var _this;
|
|
6759
|
-
_this = Control.call(this, _extends$
|
|
6663
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
6760
6664
|
tagName: 'span',
|
|
6761
6665
|
controlType: 'button',
|
|
6762
6666
|
classNameSuffix: 'broadcast'
|
|
@@ -6851,8 +6755,8 @@ function _async_to_generator$2(fn) {
|
|
|
6851
6755
|
});
|
|
6852
6756
|
};
|
|
6853
6757
|
}
|
|
6854
|
-
function _extends$
|
|
6855
|
-
_extends$
|
|
6758
|
+
function _extends$9() {
|
|
6759
|
+
_extends$9 = Object.assign || function(target) {
|
|
6856
6760
|
for(var i = 1; i < arguments.length; i++){
|
|
6857
6761
|
var source = arguments[i];
|
|
6858
6762
|
for(var key in source){
|
|
@@ -6863,9 +6767,9 @@ function _extends$c() {
|
|
|
6863
6767
|
}
|
|
6864
6768
|
return target;
|
|
6865
6769
|
};
|
|
6866
|
-
return _extends$
|
|
6770
|
+
return _extends$9.apply(this, arguments);
|
|
6867
6771
|
}
|
|
6868
|
-
function _inherits$
|
|
6772
|
+
function _inherits$a(subClass, superClass) {
|
|
6869
6773
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6870
6774
|
throw new TypeError("Super expression must either be null or a function");
|
|
6871
6775
|
}
|
|
@@ -6876,14 +6780,14 @@ function _inherits$d(subClass, superClass) {
|
|
|
6876
6780
|
configurable: true
|
|
6877
6781
|
}
|
|
6878
6782
|
});
|
|
6879
|
-
if (superClass) _set_prototype_of$
|
|
6783
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
6880
6784
|
}
|
|
6881
|
-
function _set_prototype_of$
|
|
6882
|
-
_set_prototype_of$
|
|
6785
|
+
function _set_prototype_of$a(o, p) {
|
|
6786
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6883
6787
|
o.__proto__ = p;
|
|
6884
6788
|
return o;
|
|
6885
6789
|
};
|
|
6886
|
-
return _set_prototype_of$
|
|
6790
|
+
return _set_prototype_of$a(o, p);
|
|
6887
6791
|
}
|
|
6888
6792
|
function _ts_generator$2(thisArg, body) {
|
|
6889
6793
|
var f, y, t, _ = {
|
|
@@ -6983,10 +6887,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6983
6887
|
*
|
|
6984
6888
|
* @category Control
|
|
6985
6889
|
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
6986
|
-
_inherits$
|
|
6890
|
+
_inherits$a(AIChat, Control);
|
|
6987
6891
|
function AIChat(options) {
|
|
6988
6892
|
var _this;
|
|
6989
|
-
_this = Control.call(this, _extends$
|
|
6893
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
6990
6894
|
tagName: 'span',
|
|
6991
6895
|
controlType: 'button',
|
|
6992
6896
|
classNameSuffix: 'aichat'
|
|
@@ -7052,340 +6956,6 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7052
6956
|
return AIChat;
|
|
7053
6957
|
}(Control);
|
|
7054
6958
|
|
|
7055
|
-
function _extends$b() {
|
|
7056
|
-
_extends$b = Object.assign || function(target) {
|
|
7057
|
-
for(var i = 1; i < arguments.length; i++){
|
|
7058
|
-
var source = arguments[i];
|
|
7059
|
-
for(var key in source){
|
|
7060
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7061
|
-
target[key] = source[key];
|
|
7062
|
-
}
|
|
7063
|
-
}
|
|
7064
|
-
}
|
|
7065
|
-
return target;
|
|
7066
|
-
};
|
|
7067
|
-
return _extends$b.apply(this, arguments);
|
|
7068
|
-
}
|
|
7069
|
-
function _inherits$c(subClass, superClass) {
|
|
7070
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
7071
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
7072
|
-
}
|
|
7073
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7074
|
-
constructor: {
|
|
7075
|
-
value: subClass,
|
|
7076
|
-
writable: true,
|
|
7077
|
-
configurable: true
|
|
7078
|
-
}
|
|
7079
|
-
});
|
|
7080
|
-
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7081
|
-
}
|
|
7082
|
-
function _set_prototype_of$c(o, p) {
|
|
7083
|
-
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7084
|
-
o.__proto__ = p;
|
|
7085
|
-
return o;
|
|
7086
|
-
};
|
|
7087
|
-
return _set_prototype_of$c(o, p);
|
|
7088
|
-
}
|
|
7089
|
-
/**
|
|
7090
|
-
* 直播按钮控件
|
|
7091
|
-
*
|
|
7092
|
-
* 点击切换到直播模式
|
|
7093
|
-
*
|
|
7094
|
-
* @category Control
|
|
7095
|
-
*/ var Live = /*#__PURE__*/ function(Control) {
|
|
7096
|
-
_inherits$c(Live, Control);
|
|
7097
|
-
function Live(options) {
|
|
7098
|
-
var _this;
|
|
7099
|
-
var _this___options_props1;
|
|
7100
|
-
_this = Control.call(this, _extends$b({}, options, {
|
|
7101
|
-
tagName: 'span',
|
|
7102
|
-
controlType: 'button',
|
|
7103
|
-
classNameSuffix: 'live'
|
|
7104
|
-
})) || this;
|
|
7105
|
-
_this._options = options;
|
|
7106
|
-
_this._render();
|
|
7107
|
-
// 初始化时根据当前播放模式确定激活状态
|
|
7108
|
-
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7109
|
-
return _this;
|
|
7110
|
-
}
|
|
7111
|
-
var _proto = Live.prototype;
|
|
7112
|
-
/**
|
|
7113
|
-
* 根据 urlInfo 同步激活状态
|
|
7114
|
-
* 在初始化和播放地址切换后调用
|
|
7115
|
-
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7116
|
-
var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
|
|
7117
|
-
this.active = shouldBeActive;
|
|
7118
|
-
};
|
|
7119
|
-
_proto._render = function _render() {
|
|
7120
|
-
var _this_locale;
|
|
7121
|
-
this.$container.innerHTML = IconComponents.live({
|
|
7122
|
-
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
|
|
7123
|
-
});
|
|
7124
|
-
};
|
|
7125
|
-
/**
|
|
7126
|
-
* 销毁
|
|
7127
|
-
*/ _proto.destroy = function destroy() {
|
|
7128
|
-
Control.prototype.destroy.call(this);
|
|
7129
|
-
};
|
|
7130
|
-
/**
|
|
7131
|
-
* 点击 Control 会触发
|
|
7132
|
-
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7133
|
-
var _this__options_onChange, _this__options;
|
|
7134
|
-
Control.prototype._onControlClick.call(this, e);
|
|
7135
|
-
// 已经是直播模式则不触发
|
|
7136
|
-
if (this.active) {
|
|
7137
|
-
return;
|
|
7138
|
-
}
|
|
7139
|
-
this.active = true;
|
|
7140
|
-
this.emit(EVENTS.control.liveChange);
|
|
7141
|
-
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options);
|
|
7142
|
-
};
|
|
7143
|
-
return Live;
|
|
7144
|
-
}(Control);
|
|
7145
|
-
|
|
7146
|
-
function _extends$a() {
|
|
7147
|
-
_extends$a = Object.assign || function(target) {
|
|
7148
|
-
for(var i = 1; i < arguments.length; i++){
|
|
7149
|
-
var source = arguments[i];
|
|
7150
|
-
for(var key in source){
|
|
7151
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7152
|
-
target[key] = source[key];
|
|
7153
|
-
}
|
|
7154
|
-
}
|
|
7155
|
-
}
|
|
7156
|
-
return target;
|
|
7157
|
-
};
|
|
7158
|
-
return _extends$a.apply(this, arguments);
|
|
7159
|
-
}
|
|
7160
|
-
function _inherits$b(subClass, superClass) {
|
|
7161
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
7162
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
7163
|
-
}
|
|
7164
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7165
|
-
constructor: {
|
|
7166
|
-
value: subClass,
|
|
7167
|
-
writable: true,
|
|
7168
|
-
configurable: true
|
|
7169
|
-
}
|
|
7170
|
-
});
|
|
7171
|
-
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7172
|
-
}
|
|
7173
|
-
function _set_prototype_of$b(o, p) {
|
|
7174
|
-
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7175
|
-
o.__proto__ = p;
|
|
7176
|
-
return o;
|
|
7177
|
-
};
|
|
7178
|
-
return _set_prototype_of$b(o, p);
|
|
7179
|
-
}
|
|
7180
|
-
/**
|
|
7181
|
-
* 回放下拉控件
|
|
7182
|
-
*
|
|
7183
|
-
* 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
|
|
7184
|
-
*
|
|
7185
|
-
* @category Control
|
|
7186
|
-
*/ var RecDropdown = /*#__PURE__*/ function(Control) {
|
|
7187
|
-
_inherits$b(RecDropdown, Control);
|
|
7188
|
-
function RecDropdown(options) {
|
|
7189
|
-
var _this;
|
|
7190
|
-
var _options_props, _this___options_props1;
|
|
7191
|
-
_this = Control.call(this, _extends$a({}, options, {
|
|
7192
|
-
tagName: 'span',
|
|
7193
|
-
controlType: 'button',
|
|
7194
|
-
classNameSuffix: 'rec-dropdown'
|
|
7195
|
-
})) || this;
|
|
7196
|
-
_this._options = options;
|
|
7197
|
-
// 初始化时根据 urlInfo 确定当前回放类型和激活状态
|
|
7198
|
-
_this._recType = options.recType || ((_options_props = options.props) == null ? void 0 : _options_props.recType) || 'cloudRec';
|
|
7199
|
-
_this._syncActiveByUrlInfo((_this___options_props1 = _this.__options.props) == null ? void 0 : _this___options_props1.urlInfo);
|
|
7200
|
-
_this._render();
|
|
7201
|
-
_this._initPicker();
|
|
7202
|
-
return _this;
|
|
7203
|
-
}
|
|
7204
|
-
var _proto = RecDropdown.prototype;
|
|
7205
|
-
/**
|
|
7206
|
-
* 根据 urlInfo 同步激活状态和回放类型
|
|
7207
|
-
* 在初始化和播放地址切换后调用
|
|
7208
|
-
*/ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
|
|
7209
|
-
if (urlInfo && urlInfo.type === 'rec') {
|
|
7210
|
-
var _urlInfo_searchParams1;
|
|
7211
|
-
this.active = true;
|
|
7212
|
-
if (urlInfo.recType === 'cloud' && ((_urlInfo_searchParams1 = urlInfo.searchParams) == null ? void 0 : _urlInfo_searchParams1.busType) === '7') {
|
|
7213
|
-
this._recType = 'cloudRecord';
|
|
7214
|
-
} else if (urlInfo.recType === 'cloud') {
|
|
7215
|
-
this._recType = 'cloudRec';
|
|
7216
|
-
} else {
|
|
7217
|
-
this._recType = 'rec';
|
|
7218
|
-
}
|
|
7219
|
-
this._activeOption(this._recType);
|
|
7220
|
-
} else {
|
|
7221
|
-
this.active = false;
|
|
7222
|
-
}
|
|
7223
|
-
};
|
|
7224
|
-
_proto._render = function _render() {
|
|
7225
|
-
var _this_locale;
|
|
7226
|
-
this.$container.innerHTML = IconComponents.recDropdown({
|
|
7227
|
-
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_REC_DROPDOWN) || '回放'
|
|
7228
|
-
});
|
|
7229
|
-
};
|
|
7230
|
-
_proto._initPicker = function _initPicker() {
|
|
7231
|
-
var _this = this;
|
|
7232
|
-
this._picker = new Picker(this.$container, {
|
|
7233
|
-
getPopupContainer: function() {
|
|
7234
|
-
return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
|
|
7235
|
-
},
|
|
7236
|
-
trigger: Utils.isMobile ? 'click' : 'hover',
|
|
7237
|
-
isMobile: Utils.isMobile,
|
|
7238
|
-
wrapClassName: "" + PREFIX_CLASS + "-rec-dropdown-picker",
|
|
7239
|
-
placement: 'bottom',
|
|
7240
|
-
offset: [
|
|
7241
|
-
0,
|
|
7242
|
-
4
|
|
7243
|
-
]
|
|
7244
|
-
});
|
|
7245
|
-
this._picker.innerHTML(this._getPanelHTML());
|
|
7246
|
-
this._activeOption(this._recType);
|
|
7247
|
-
this._bindPanelEvents();
|
|
7248
|
-
};
|
|
7249
|
-
_proto._getPanelHTML = function _getPanelHTML() {
|
|
7250
|
-
var _this_locale, _this_locale1, _this_locale2;
|
|
7251
|
-
var cloudRecLabel = ((_this_locale = this.locale) == null ? void 0 : _this_locale.REC_DROPDOWN_CLOUD_REC) || '云存储';
|
|
7252
|
-
var cloudRecordLabel = ((_this_locale1 = this.locale) == null ? void 0 : _this_locale1.REC_DROPDOWN_CLOUD_RECORD) || '云录制';
|
|
7253
|
-
var localRecLabel = ((_this_locale2 = this.locale) == null ? void 0 : _this_locale2.REC_DROPDOWN_LOCAL_REC) || '本地回放';
|
|
7254
|
-
return '<div class="' + PREFIX_CLASS + '-rec-dropdown-panel">\n <ul class="' + PREFIX_CLASS + '-rec-dropdown-list">\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRec">\n <span>' + cloudRecLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="cloudRecord">\n <span>' + cloudRecordLabel + '</span>\n </li>\n <li class="' + PREFIX_CLASS + '-rec-dropdown-item" data-type="rec">\n <span>' + localRecLabel + "</span>\n </li>\n </ul>\n </div>";
|
|
7255
|
-
};
|
|
7256
|
-
_proto._bindPanelEvents = function _bindPanelEvents() {
|
|
7257
|
-
var _this = this;
|
|
7258
|
-
this._delegation = delegate(this._picker.$body, "." + PREFIX_CLASS + "-rec-dropdown-item", 'click', function(e) {
|
|
7259
|
-
e.stopPropagation();
|
|
7260
|
-
var type = e.delegateTarget.getAttribute('data-type');
|
|
7261
|
-
if (type) {
|
|
7262
|
-
var _this__options_onChange, _this__options;
|
|
7263
|
-
_this._recType = type;
|
|
7264
|
-
_this._activeOption(type);
|
|
7265
|
-
// 设置自身为激活状态
|
|
7266
|
-
_this.active = true;
|
|
7267
|
-
_this.emit(EVENTS.control.recDropdownChange, type);
|
|
7268
|
-
(_this__options = _this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, type);
|
|
7269
|
-
_this._picker.open = false;
|
|
7270
|
-
}
|
|
7271
|
-
});
|
|
7272
|
-
};
|
|
7273
|
-
_proto._activeOption = function _activeOption(type) {
|
|
7274
|
-
var _this__picker;
|
|
7275
|
-
if ((_this__picker = this._picker) == null ? void 0 : _this__picker.$body) {
|
|
7276
|
-
var items = this._picker.$body.querySelectorAll("." + PREFIX_CLASS + "-rec-dropdown-item");
|
|
7277
|
-
items.forEach(function(item) {
|
|
7278
|
-
item.classList.remove("" + PREFIX_CLASS + "-active");
|
|
7279
|
-
});
|
|
7280
|
-
var target = this._picker.$body.querySelector("." + PREFIX_CLASS + '-rec-dropdown-item[data-type="' + type + '"]');
|
|
7281
|
-
target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
|
|
7282
|
-
}
|
|
7283
|
-
};
|
|
7284
|
-
/**
|
|
7285
|
-
* 销毁
|
|
7286
|
-
*/ _proto.destroy = function destroy() {
|
|
7287
|
-
var _this__delegation_destroy, _this__delegation;
|
|
7288
|
-
(_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
|
|
7289
|
-
this._delegation = null;
|
|
7290
|
-
if (this._picker) {
|
|
7291
|
-
this._picker.destroy();
|
|
7292
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7293
|
-
this._picker = null;
|
|
7294
|
-
}
|
|
7295
|
-
Control.prototype.destroy.call(this);
|
|
7296
|
-
};
|
|
7297
|
-
/**
|
|
7298
|
-
* 点击 Control 会触发(移动端 click 触发 picker)
|
|
7299
|
-
*/ // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7300
|
-
_proto._onControlClick = function _onControlClick(_e) {
|
|
7301
|
-
// picker 自行处理 click/hover,这里不额外处理
|
|
7302
|
-
};
|
|
7303
|
-
return RecDropdown;
|
|
7304
|
-
}(Control);
|
|
7305
|
-
|
|
7306
|
-
function _extends$9() {
|
|
7307
|
-
_extends$9 = Object.assign || function(target) {
|
|
7308
|
-
for(var i = 1; i < arguments.length; i++){
|
|
7309
|
-
var source = arguments[i];
|
|
7310
|
-
for(var key in source){
|
|
7311
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7312
|
-
target[key] = source[key];
|
|
7313
|
-
}
|
|
7314
|
-
}
|
|
7315
|
-
}
|
|
7316
|
-
return target;
|
|
7317
|
-
};
|
|
7318
|
-
return _extends$9.apply(this, arguments);
|
|
7319
|
-
}
|
|
7320
|
-
function _inherits$a(subClass, superClass) {
|
|
7321
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
7322
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
7323
|
-
}
|
|
7324
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7325
|
-
constructor: {
|
|
7326
|
-
value: subClass,
|
|
7327
|
-
writable: true,
|
|
7328
|
-
configurable: true
|
|
7329
|
-
}
|
|
7330
|
-
});
|
|
7331
|
-
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
7332
|
-
}
|
|
7333
|
-
function _set_prototype_of$a(o, p) {
|
|
7334
|
-
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7335
|
-
o.__proto__ = p;
|
|
7336
|
-
return o;
|
|
7337
|
-
};
|
|
7338
|
-
return _set_prototype_of$a(o, p);
|
|
7339
|
-
}
|
|
7340
|
-
/**
|
|
7341
|
-
* 告警消息按钮控件
|
|
7342
|
-
*
|
|
7343
|
-
* 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
|
|
7344
|
-
*
|
|
7345
|
-
* @category Control
|
|
7346
|
-
*/ var AlarmMessage = /*#__PURE__*/ function(Control) {
|
|
7347
|
-
_inherits$a(AlarmMessage, Control);
|
|
7348
|
-
function AlarmMessage(options) {
|
|
7349
|
-
var _this;
|
|
7350
|
-
_this = Control.call(this, _extends$9({}, options, {
|
|
7351
|
-
tagName: 'span',
|
|
7352
|
-
controlType: 'button',
|
|
7353
|
-
classNameSuffix: 'alarm-message'
|
|
7354
|
-
})) || this, _this._panelOpen = false;
|
|
7355
|
-
_this._options = options;
|
|
7356
|
-
_this._render();
|
|
7357
|
-
_this.on(EVENTS.alarmMessageChange, function(open) {
|
|
7358
|
-
_this._panelOpen = open;
|
|
7359
|
-
});
|
|
7360
|
-
return _this;
|
|
7361
|
-
}
|
|
7362
|
-
var _proto = AlarmMessage.prototype;
|
|
7363
|
-
_proto._render = function _render() {
|
|
7364
|
-
var _this_locale;
|
|
7365
|
-
this.$container.innerHTML = IconComponents.alarmMessage({
|
|
7366
|
-
title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
|
|
7367
|
-
});
|
|
7368
|
-
};
|
|
7369
|
-
/**
|
|
7370
|
-
* 销毁
|
|
7371
|
-
*/ _proto.destroy = function destroy() {
|
|
7372
|
-
if (this._panelOpen) {
|
|
7373
|
-
this.emit(EVENTS.control.alarmMessageChange, false);
|
|
7374
|
-
}
|
|
7375
|
-
Control.prototype.destroy.call(this);
|
|
7376
|
-
};
|
|
7377
|
-
/**
|
|
7378
|
-
* 点击 Control 会触发
|
|
7379
|
-
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
7380
|
-
var _this__options_onChange, _this__options;
|
|
7381
|
-
Control.prototype._onControlClick.call(this, e);
|
|
7382
|
-
this._panelOpen = !this._panelOpen;
|
|
7383
|
-
this.emit(EVENTS.control.alarmMessageChange, this._panelOpen);
|
|
7384
|
-
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this._panelOpen);
|
|
7385
|
-
};
|
|
7386
|
-
return AlarmMessage;
|
|
7387
|
-
}(Control);
|
|
7388
|
-
|
|
7389
6959
|
function _defineProperties$1(target, props) {
|
|
7390
6960
|
for(var i = 0; i < props.length; i++){
|
|
7391
6961
|
var descriptor = props[i];
|
|
@@ -8378,9 +7948,6 @@ var Controls = {
|
|
|
8378
7948
|
talk: Talk,
|
|
8379
7949
|
broadcast: Broadcast,
|
|
8380
7950
|
aiChat: AIChat,
|
|
8381
|
-
live: Live,
|
|
8382
|
-
recDropdown: RecDropdown,
|
|
8383
|
-
alarmMessage: AlarmMessage,
|
|
8384
7951
|
zoom: Zoom,
|
|
8385
7952
|
definition: Definition,
|
|
8386
7953
|
fullscreen: Fullscreen,
|
|
@@ -8914,10 +8481,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
8914
8481
|
// 需要权限的控件
|
|
8915
8482
|
var AUTH_KEY = [
|
|
8916
8483
|
'ptz',
|
|
8917
|
-
'aiChat'
|
|
8918
|
-
'live',
|
|
8919
|
-
'recDropdown',
|
|
8920
|
-
'alarmMessage'
|
|
8484
|
+
'aiChat'
|
|
8921
8485
|
];
|
|
8922
8486
|
/**
|
|
8923
8487
|
* 渲染控件
|
|
@@ -8997,7 +8561,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
8997
8561
|
}
|
|
8998
8562
|
function _renderTheme(theme, data) {
|
|
8999
8563
|
return _async_to_generator$1(function() {
|
|
9000
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer,
|
|
8564
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9001
8565
|
return _ts_generator$1(this, function(_state) {
|
|
9002
8566
|
switch(_state.label){
|
|
9003
8567
|
case 0:
|
|
@@ -9138,8 +8702,9 @@ function _renderTheme(theme, data) {
|
|
|
9138
8702
|
list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_filterThemeData_footer_btnList = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _filterThemeData_footer_btnList : []);
|
|
9139
8703
|
// FIXME: 这个逻辑实际上是有问题的
|
|
9140
8704
|
_needTimeLine = list.some(function(item) {
|
|
9141
|
-
return REC_GROUP.includes(item.iconId)
|
|
9142
|
-
})
|
|
8705
|
+
return REC_GROUP.includes(item.iconId);
|
|
8706
|
+
});
|
|
8707
|
+
theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
|
|
9143
8708
|
// PC 单独渲染timeLine
|
|
9144
8709
|
if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
|
|
9145
8710
|
theme._recFooter = new RecFooter(theme.$container, {
|
|
@@ -9149,6 +8714,7 @@ function _renderTheme(theme, data) {
|
|
|
9149
8714
|
_renderTimeLine(theme, theme._recFooter.$timeLineContainer, props);
|
|
9150
8715
|
if (theme._footer) {
|
|
9151
8716
|
theme._footer.$container.style.cssText += "bottom: 36px;";
|
|
8717
|
+
theme.$container.classList.add("" + PREFIX_CLASS + "-has-time-line");
|
|
9152
8718
|
}
|
|
9153
8719
|
if (theme.options.dateOptions !== null) {
|
|
9154
8720
|
_renderDatePicker(theme, theme._recFooter.$datePickerContainer, props);
|
|
@@ -9170,23 +8736,6 @@ function _renderTheme(theme, data) {
|
|
|
9170
8736
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
9171
8737
|
});
|
|
9172
8738
|
}
|
|
9173
|
-
// 移动端:在 rec 控件旁渲染 alarmMessage 按钮
|
|
9174
|
-
if (theme.options.alarmMessageOptions !== null && !((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['alarmMessageControl'])) {
|
|
9175
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9176
|
-
theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
|
|
9177
|
-
rootContainer: theme.$container,
|
|
9178
|
-
getPopupContainer: function() {
|
|
9179
|
-
var _theme__mobileExtend;
|
|
9180
|
-
return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
|
|
9181
|
-
},
|
|
9182
|
-
language: theme.options.language || 'zh',
|
|
9183
|
-
locales: theme.i18n.translations,
|
|
9184
|
-
sdkType: theme.options.sdkType,
|
|
9185
|
-
urlInfo: theme.urlInfo
|
|
9186
|
-
}, ((_theme_options = theme.options) == null ? void 0 : _theme_options.alarmMessageOptions) || {}, {
|
|
9187
|
-
props: props
|
|
9188
|
-
}));
|
|
9189
|
-
}
|
|
9190
8739
|
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
9191
8740
|
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
9192
8741
|
}
|
|
@@ -9197,10 +8746,6 @@ function _renderTheme(theme, data) {
|
|
|
9197
8746
|
}
|
|
9198
8747
|
theme.emit(EVENTS.control.mountedControls);
|
|
9199
8748
|
if (!theme.playing) theme._disabled(true);
|
|
9200
|
-
// 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
|
|
9201
|
-
if (theme._loading && theme._loadingControl) {
|
|
9202
|
-
theme._loadingControl.show();
|
|
9203
|
-
}
|
|
9204
8749
|
_controlEventemitter(theme);
|
|
9205
8750
|
return [
|
|
9206
8751
|
2
|
|
@@ -10007,8 +9552,13 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10007
9552
|
// 这里不要使用 $containerWarp.getBoundingClientRect() 获取宽和高 因为会出现小数导致两次(设置后的值和设置后再次获取的值)的宽高不一致 (因为缩放后取整设置,再次获取还有可能是带小数的然后取整 对比两次不一致,一般在屏幕缩放百分比变化和浏览器页面缩放时出现),致使一直触发 resize 事件
|
|
10008
9553
|
var width = Math.floor(_this.$container.clientWidth);
|
|
10009
9554
|
var height = Math.floor(_this.$container.clientHeight);
|
|
10010
|
-
if (width >
|
|
9555
|
+
if (width > 280 && width <= 375) {
|
|
10011
9556
|
_this.$container.classList.add("" + PREFIX_CLASS + "-medium-width");
|
|
9557
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-small-width");
|
|
9558
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
|
|
9559
|
+
} else if (width > 200 && width <= 280) {
|
|
9560
|
+
_this.$container.classList.add("" + PREFIX_CLASS + "-small-width");
|
|
9561
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-medium-width");
|
|
10012
9562
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
|
|
10013
9563
|
} else {
|
|
10014
9564
|
if (width <= 200) {
|
|
@@ -10016,10 +9566,16 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10016
9566
|
} else {
|
|
10017
9567
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-width");
|
|
10018
9568
|
}
|
|
9569
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-small-width");
|
|
10019
9570
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-medium-width");
|
|
10020
9571
|
}
|
|
10021
|
-
if (height >
|
|
9572
|
+
if (height > 280 && height <= 375) {
|
|
10022
9573
|
_this.$container.classList.add("" + PREFIX_CLASS + "-medium-height");
|
|
9574
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-small-height");
|
|
9575
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
|
|
9576
|
+
} else if (height > 200 && height <= 280) {
|
|
9577
|
+
_this.$container.classList.add("" + PREFIX_CLASS + "-small-height");
|
|
9578
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-medium-height");
|
|
10023
9579
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
|
|
10024
9580
|
} else {
|
|
10025
9581
|
if (height <= 200) {
|
|
@@ -10027,6 +9583,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10027
9583
|
} else {
|
|
10028
9584
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-mini-height");
|
|
10029
9585
|
}
|
|
9586
|
+
_this.$container.classList.remove("" + PREFIX_CLASS + "-small-height");
|
|
10030
9587
|
_this.$container.classList.remove("" + PREFIX_CLASS + "-medium-height");
|
|
10031
9588
|
}
|
|
10032
9589
|
//
|
|
@@ -10796,6 +10353,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10796
10353
|
zh: zh,
|
|
10797
10354
|
en: en
|
|
10798
10355
|
};
|
|
10799
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.
|
|
10356
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.2-beta.1';
|
|
10800
10357
|
|
|
10801
10358
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|