@ezuikit/player-theme 3.0.0-beta.4 → 3.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constant.js +11 -2
- package/dist/index.cjs +697 -233
- package/dist/index.esm.js +697 -233
- package/dist/index.umd.js +697 -233
- package/dist/style.css +3 -0
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +87 -36
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.0.
|
|
3
|
-
* Copyright (c) 2026-05-
|
|
2
|
+
* @ezuikit/player-theme v3.0.1-beta.3
|
|
3
|
+
* Copyright (c) 2026-05-13 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -143,6 +143,9 @@ var EVENTS = {
|
|
|
143
143
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
144
144
|
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
145
145
|
/** AI对话框状态变化 */ aichatChange: 'aichatChange',
|
|
146
|
+
/** 直播模式切换 */ liveChange: 'liveChange',
|
|
147
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'recDropdownChange',
|
|
148
|
+
/** 告警消息面板状态变化 */ alarmMessageChange: 'alarmMessageChange',
|
|
146
149
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
147
150
|
records: 'records',
|
|
148
151
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -190,6 +193,12 @@ var EVENTS = {
|
|
|
190
193
|
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
191
194
|
/** AI对话框状态变化 */ aichatChange: 'Control.aichatChange',
|
|
192
195
|
/** AI对话框控件销毁 */ aichatDestroy: 'Control.aichatDestroy',
|
|
196
|
+
/** 直播按钮点击 */ liveChange: 'Control.liveChange',
|
|
197
|
+
/** 直播控件销毁 */ liveDestroy: 'Control.liveDestroy',
|
|
198
|
+
/** 回放下拉选择变化 */ recDropdownChange: 'Control.recDropdownChange',
|
|
199
|
+
/** 回放下拉控件销毁 */ recDropdownDestroy: 'Control.recDropdownDestroy',
|
|
200
|
+
/** 告警消息面板开关 */ alarmMessageChange: 'Control.alarmMessageChange',
|
|
201
|
+
/** 告警消息面板销毁 */ alarmMessageDestroy: 'Control.alarmMessageDestroy',
|
|
193
202
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
194
203
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
195
204
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -241,7 +250,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
241
250
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
242
251
|
return Constructor;
|
|
243
252
|
}
|
|
244
|
-
function _inherits$
|
|
253
|
+
function _inherits$w(subClass, superClass) {
|
|
245
254
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
246
255
|
throw new TypeError("Super expression must either be null or a function");
|
|
247
256
|
}
|
|
@@ -252,14 +261,14 @@ function _inherits$t(subClass, superClass) {
|
|
|
252
261
|
configurable: true
|
|
253
262
|
}
|
|
254
263
|
});
|
|
255
|
-
if (superClass) _set_prototype_of$
|
|
264
|
+
if (superClass) _set_prototype_of$w(subClass, superClass);
|
|
256
265
|
}
|
|
257
|
-
function _set_prototype_of$
|
|
258
|
-
_set_prototype_of$
|
|
266
|
+
function _set_prototype_of$w(o, p) {
|
|
267
|
+
_set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
259
268
|
o.__proto__ = p;
|
|
260
269
|
return o;
|
|
261
270
|
};
|
|
262
|
-
return _set_prototype_of$
|
|
271
|
+
return _set_prototype_of$w(o, p);
|
|
263
272
|
}
|
|
264
273
|
/**
|
|
265
274
|
* 控件基类
|
|
@@ -273,7 +282,7 @@ function _set_prototype_of$t(o, p) {
|
|
|
273
282
|
* const myControl = new MyControl({})
|
|
274
283
|
* ```
|
|
275
284
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
276
|
-
_inherits$
|
|
285
|
+
_inherits$w(Control, EventEmitter);
|
|
277
286
|
function Control(options) {
|
|
278
287
|
var _this;
|
|
279
288
|
var _this___options;
|
|
@@ -448,8 +457,8 @@ function _set_prototype_of$t(o, p) {
|
|
|
448
457
|
return Control;
|
|
449
458
|
}(EventEmitter);
|
|
450
459
|
|
|
451
|
-
function _extends$
|
|
452
|
-
_extends$
|
|
460
|
+
function _extends$v() {
|
|
461
|
+
_extends$v = Object.assign || function(target) {
|
|
453
462
|
for(var i = 1; i < arguments.length; i++){
|
|
454
463
|
var source = arguments[i];
|
|
455
464
|
for(var key in source){
|
|
@@ -460,9 +469,9 @@ function _extends$s() {
|
|
|
460
469
|
}
|
|
461
470
|
return target;
|
|
462
471
|
};
|
|
463
|
-
return _extends$
|
|
472
|
+
return _extends$v.apply(this, arguments);
|
|
464
473
|
}
|
|
465
|
-
function _inherits$
|
|
474
|
+
function _inherits$v(subClass, superClass) {
|
|
466
475
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
467
476
|
throw new TypeError("Super expression must either be null or a function");
|
|
468
477
|
}
|
|
@@ -473,25 +482,25 @@ function _inherits$s(subClass, superClass) {
|
|
|
473
482
|
configurable: true
|
|
474
483
|
}
|
|
475
484
|
});
|
|
476
|
-
if (superClass) _set_prototype_of$
|
|
485
|
+
if (superClass) _set_prototype_of$v(subClass, superClass);
|
|
477
486
|
}
|
|
478
|
-
function _set_prototype_of$
|
|
479
|
-
_set_prototype_of$
|
|
487
|
+
function _set_prototype_of$v(o, p) {
|
|
488
|
+
_set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
480
489
|
o.__proto__ = p;
|
|
481
490
|
return o;
|
|
482
491
|
};
|
|
483
|
-
return _set_prototype_of$
|
|
492
|
+
return _set_prototype_of$v(o, p);
|
|
484
493
|
}
|
|
485
494
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
486
495
|
/**
|
|
487
496
|
* 加载动画控件
|
|
488
497
|
* @category Control
|
|
489
498
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
490
|
-
_inherits$
|
|
499
|
+
_inherits$v(Loading, Control);
|
|
491
500
|
function Loading(options) {
|
|
492
501
|
if (options === void 0) options = {};
|
|
493
502
|
var _this;
|
|
494
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
503
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$v({}, options, {
|
|
495
504
|
tagName: 'div',
|
|
496
505
|
controlType: 'block',
|
|
497
506
|
classNameSuffix: 'loading'
|
|
@@ -529,8 +538,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
529
538
|
return Loading;
|
|
530
539
|
}(Control);
|
|
531
540
|
|
|
532
|
-
function _extends$
|
|
533
|
-
_extends$
|
|
541
|
+
function _extends$u() {
|
|
542
|
+
_extends$u = Object.assign || function(target) {
|
|
534
543
|
for(var i = 1; i < arguments.length; i++){
|
|
535
544
|
var source = arguments[i];
|
|
536
545
|
for(var key in source){
|
|
@@ -541,9 +550,9 @@ function _extends$r() {
|
|
|
541
550
|
}
|
|
542
551
|
return target;
|
|
543
552
|
};
|
|
544
|
-
return _extends$
|
|
553
|
+
return _extends$u.apply(this, arguments);
|
|
545
554
|
}
|
|
546
|
-
function _inherits$
|
|
555
|
+
function _inherits$u(subClass, superClass) {
|
|
547
556
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
548
557
|
throw new TypeError("Super expression must either be null or a function");
|
|
549
558
|
}
|
|
@@ -554,14 +563,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
554
563
|
configurable: true
|
|
555
564
|
}
|
|
556
565
|
});
|
|
557
|
-
if (superClass) _set_prototype_of$
|
|
566
|
+
if (superClass) _set_prototype_of$u(subClass, superClass);
|
|
558
567
|
}
|
|
559
|
-
function _set_prototype_of$
|
|
560
|
-
_set_prototype_of$
|
|
568
|
+
function _set_prototype_of$u(o, p) {
|
|
569
|
+
_set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
561
570
|
o.__proto__ = p;
|
|
562
571
|
return o;
|
|
563
572
|
};
|
|
564
|
-
return _set_prototype_of$
|
|
573
|
+
return _set_prototype_of$u(o, p);
|
|
565
574
|
}
|
|
566
575
|
// 不放在服务器上 是因为有可能http加载失败
|
|
567
576
|
// prettier-ignore
|
|
@@ -573,11 +582,11 @@ var POSTER_OPTIONS = {
|
|
|
573
582
|
* 封面控件
|
|
574
583
|
* @category Control
|
|
575
584
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
576
|
-
_inherits$
|
|
585
|
+
_inherits$u(Poster, Control);
|
|
577
586
|
function Poster(options) {
|
|
578
587
|
if (options === void 0) options = {};
|
|
579
588
|
var _this;
|
|
580
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
589
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$u({}, options, {
|
|
581
590
|
tagName: 'div',
|
|
582
591
|
controlType: 'block',
|
|
583
592
|
classNameSuffix: 'poster'
|
|
@@ -683,7 +692,10 @@ var Icons = {
|
|
|
683
692
|
warnCircleOutLined: '<svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" focusable="false" aria-hidden="true" data-icon="info-circle">\n <path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM7.5 8.875C7.5 8.94375 7.55625 9 7.625 9L8.375 9C8.44375 9 8.5 8.94375 8.5 8.875L8.5 4.625C8.5 4.55625 8.44375 4.5 8.375 4.5L7.625 4.5C7.55625 4.5 7.5 4.55625 7.5 4.625L7.5 8.875ZM7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75Z" fill-rule="evenodd" />\n </svg>',
|
|
684
693
|
date: '<svg width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" focusable="false" aria-hidden="true" data-icon="date">\n <g>\n <path d="m13.35,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.3,0.5 -0.5,0.5z" />\n <path d="m6.65,5.9c-0.3,0 -0.5,-0.2 -0.5,-0.5l0,-3.3c0,-0.3 0.2,-0.5 0.5,-0.5s0.5,0.2 0.5,0.5l0,3.3c0,0.3 -0.2,0.5 -0.5,0.5z" />\n <path d="m17.45,8.4l-15,0c-0.3,0 -0.5,-0.2 -0.5,-0.5s0.2,-0.5 0.5,-0.5l15,0c0.3,0 0.5,0.2 0.5,0.5s-0.2,0.5 -0.5,0.5z" />\n <path d="m15.85,18.4l-11.7,0c-1.2,0 -2.2,-1 -2.2,-2.2l0,-10.8c0,-1.2 1,-2.2 2.2,-2.2l11.7,0c1.2,0 2.2,1 2.2,2.2l0,10.8c-0.1,1.3 -1,2.2 -2.2,2.2zm-11.7,-14.1c-0.6,0 -1.2,0.5 -1.2,1.2l0,10.8c0,0.6 0.5,1.2 1.2,1.2l11.7,0c0.6,0 1.2,-0.5 1.2,-1.2l0,-10.9c0,-0.6 -0.5,-1.2 -1.2,-1.2l-11.7,0l0,0.1z" />\n <path d="m9.95,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5s0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7z" />\n <path d="m14.15,12c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2c0.4,0 0.7,0.3 0.7,0.7s-0.3,0.7 -0.7,0.7zm0,-1c-0.2,0 -0.3,0.1 -0.3,0.3c0,0.2 0.3,0.4 0.5,0.2c0.1,-0.1 0.1,-0.1 0.1,-0.2c0,-0.2 -0.1,-0.3 -0.3,-0.3z" />\n <path d="m5.85,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0,0.4 -0.3,0.7 -0.7,0.7z" />\n <path d="m9.95,15.3c-0.4,0 -0.7,-0.3 -0.7,-0.7c0,-0.2 0.1,-0.4 0.2,-0.5c0.1,-0.1 0.3,-0.2 0.5,-0.2l0,0l0,0c0.4,0 0.7,0.3 0.7,0.7c0.1,0.4 -0.3,0.7 -0.7,0.7z" />\n </g>\n </svg>',
|
|
685
694
|
add: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="add">\n <path d="M10.5859 2.96875L9.41406 2.96875C9.3099 2.96875 9.25781 3.02083 9.25781 3.125L9.25781 9.25781L3.4375 9.25781C3.38542 9.25781 3.34635 9.27083 3.32031 9.29688C3.29427 9.32292 3.28125 9.36198 3.28125 9.41406L3.28125 10.5859C3.28125 10.6901 3.33333 10.7422 3.4375 10.7422L9.25781 10.7422L9.25781 16.875C9.25781 16.9792 9.3099 17.0312 9.41406 17.0312L10.5859 17.0312C10.6901 17.0312 10.7422 16.9792 10.7422 16.875L10.7422 10.7422L16.5625 10.7422C16.6667 10.7422 16.7188 10.6901 16.7188 10.5859L16.7188 9.41406C16.7188 9.3099 16.6667 9.25781 16.5625 9.25781L10.7422 9.25781L10.7422 3.125C10.7422 3.07292 10.7292 3.03385 10.7031 3.00781C10.6771 2.98177 10.638 2.96875 10.5859 2.96875Z" fill-rule="evenodd" /></svg>',
|
|
686
|
-
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>'
|
|
695
|
+
reduce: '<svg fill="currentColor" width="1em" height="1em" viewBox="0 0 20 20" focusable="false" aria-hidden="true" data-icon="reduce">\n <path d="M3.4375 9.25781L16.5625 9.25781C16.6667 9.25781 16.7188 9.3099 16.7188 9.41406L16.7188 10.5859C16.7188 10.6901 16.6667 10.7422 16.5625 10.7422L3.4375 10.7422C3.33333 10.7422 3.28125 10.6901 3.28125 10.5859L3.28125 9.41406C3.28125 9.3099 3.33333 9.25781 3.4375 9.25781Z" fill-rule="evenodd" />\n </svg>',
|
|
696
|
+
/** 直播 */ live: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="live">\n <rect width="18" height="13" x="3" y="7" rx="1.6" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M8.26636 4.8L10.466 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M15.996 4.8L13.796 7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M9.8 17L15.4 13.354L9.8 10L9.8 17Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
697
|
+
/** 回放 */ recDropdown: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="rec-dropdown">\n <path d="M9.168 2.556C9.168 2.556 12.51 4.445 12 4.445C7.306 4.445 3.5 8.251 3.5 12.945C3.5 17.64 7.306 21.445 12 21.445C16.695 21.445 20.5 17.64 20.5 12.945C20.5 10.622 19.568 8.517 18.058 6.982" stroke-linecap="round" stroke-width="1.5"/>\n <path d="M11.61 9.829L11.61 13.731L16.064 13.731" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>',
|
|
698
|
+
/** 消息/告警 */ alarmMessage: '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="alarm-message">\n <path d="M9.708 18.344L9.708 18.709C9.708 19.974 10.734 21 12 21C13.266 21 14.292 19.974 14.292 18.709L14.292 18.343" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M13.833 5.751L13.833 4.833C13.833 3.821 13.013 3 12 3C10.987 3 10.167 3.821 10.167 4.833L10.167 5.751" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n <path d="M6.563 10.189C6.563 7.686 8.592 5.657 11.094 5.657L12.907 5.657C15.41 5.657 17.438 7.686 17.438 10.189L17.438 12.986C17.438 13.516 17.649 14.025 18.024 14.4L18.665 15.04C19.04 15.416 19.251 15.925 19.251 16.455C19.251 17.499 18.405 18.345 17.361 18.345L6.64 18.345C5.596 18.345 4.75 17.499 4.75 16.455C4.75 15.925 4.961 15.416 5.336 15.04L5.977 14.4C6.352 14.025 6.563 13.516 6.563 12.986L6.563 10.189Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>\n </svg>'
|
|
687
699
|
};
|
|
688
700
|
|
|
689
701
|
/**
|
|
@@ -841,11 +853,23 @@ var IconComponents = {
|
|
|
841
853
|
reduce: function(attr) {
|
|
842
854
|
if (attr === void 0) attr = {};
|
|
843
855
|
return createIcon(Icons.reduce, 'reduce', attr);
|
|
856
|
+
},
|
|
857
|
+
/** 直播 */ live: function(attr) {
|
|
858
|
+
if (attr === void 0) attr = {};
|
|
859
|
+
return createIcon(Icons.live, 'live', attr);
|
|
860
|
+
},
|
|
861
|
+
/** 回放 */ recDropdown: function(attr) {
|
|
862
|
+
if (attr === void 0) attr = {};
|
|
863
|
+
return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
|
|
864
|
+
},
|
|
865
|
+
/** 消息 */ alarmMessage: function(attr) {
|
|
866
|
+
if (attr === void 0) attr = {};
|
|
867
|
+
return createIcon(Icons.alarmMessage, 'alarm-message', attr);
|
|
844
868
|
}
|
|
845
869
|
};
|
|
846
870
|
|
|
847
|
-
function _extends$
|
|
848
|
-
_extends$
|
|
871
|
+
function _extends$t() {
|
|
872
|
+
_extends$t = Object.assign || function(target) {
|
|
849
873
|
for(var i = 1; i < arguments.length; i++){
|
|
850
874
|
var source = arguments[i];
|
|
851
875
|
for(var key in source){
|
|
@@ -856,9 +880,9 @@ function _extends$q() {
|
|
|
856
880
|
}
|
|
857
881
|
return target;
|
|
858
882
|
};
|
|
859
|
-
return _extends$
|
|
883
|
+
return _extends$t.apply(this, arguments);
|
|
860
884
|
}
|
|
861
|
-
function _inherits$
|
|
885
|
+
function _inherits$t(subClass, superClass) {
|
|
862
886
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
863
887
|
throw new TypeError("Super expression must either be null or a function");
|
|
864
888
|
}
|
|
@@ -869,28 +893,28 @@ function _inherits$q(subClass, superClass) {
|
|
|
869
893
|
configurable: true
|
|
870
894
|
}
|
|
871
895
|
});
|
|
872
|
-
if (superClass) _set_prototype_of$
|
|
896
|
+
if (superClass) _set_prototype_of$t(subClass, superClass);
|
|
873
897
|
}
|
|
874
|
-
function _set_prototype_of$
|
|
875
|
-
_set_prototype_of$
|
|
898
|
+
function _set_prototype_of$t(o, p) {
|
|
899
|
+
_set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
876
900
|
o.__proto__ = p;
|
|
877
901
|
return o;
|
|
878
902
|
};
|
|
879
|
-
return _set_prototype_of$
|
|
903
|
+
return _set_prototype_of$t(o, p);
|
|
880
904
|
}
|
|
881
905
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
882
906
|
/**
|
|
883
907
|
* 消息控件
|
|
884
908
|
* @category Control
|
|
885
909
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
886
|
-
_inherits$
|
|
910
|
+
_inherits$t(Message, Control);
|
|
887
911
|
function Message(options) {
|
|
888
912
|
if (options === void 0) options = {};
|
|
889
913
|
var _this;
|
|
890
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
914
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$t({}, options, {
|
|
891
915
|
tagName: 'div',
|
|
892
916
|
controlType: 'block'
|
|
893
|
-
}))) || this;
|
|
917
|
+
}))) || this, _this._$toast = null;
|
|
894
918
|
_this.options = Object.assign({}, MESSAGE_DEFAULT_OPTIONS, options);
|
|
895
919
|
_this.$container.classList.add("" + PREFIX_CLASS + "-message", "" + PREFIX_CLASS + "-hide"); // 默认隐藏 `${PREFIX_CLASS}-hide`
|
|
896
920
|
return _this;
|
|
@@ -1040,8 +1064,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1040
1064
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1041
1065
|
return Constructor;
|
|
1042
1066
|
}
|
|
1043
|
-
function _extends$
|
|
1044
|
-
_extends$
|
|
1067
|
+
function _extends$s() {
|
|
1068
|
+
_extends$s = Object.assign || function(target) {
|
|
1045
1069
|
for(var i = 1; i < arguments.length; i++){
|
|
1046
1070
|
var source = arguments[i];
|
|
1047
1071
|
for(var key in source){
|
|
@@ -1052,9 +1076,9 @@ function _extends$p() {
|
|
|
1052
1076
|
}
|
|
1053
1077
|
return target;
|
|
1054
1078
|
};
|
|
1055
|
-
return _extends$
|
|
1079
|
+
return _extends$s.apply(this, arguments);
|
|
1056
1080
|
}
|
|
1057
|
-
function _inherits$
|
|
1081
|
+
function _inherits$s(subClass, superClass) {
|
|
1058
1082
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1059
1083
|
throw new TypeError("Super expression must either be null or a function");
|
|
1060
1084
|
}
|
|
@@ -1065,23 +1089,23 @@ function _inherits$p(subClass, superClass) {
|
|
|
1065
1089
|
configurable: true
|
|
1066
1090
|
}
|
|
1067
1091
|
});
|
|
1068
|
-
if (superClass) _set_prototype_of$
|
|
1092
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
1069
1093
|
}
|
|
1070
|
-
function _set_prototype_of$
|
|
1071
|
-
_set_prototype_of$
|
|
1094
|
+
function _set_prototype_of$s(o, p) {
|
|
1095
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1072
1096
|
o.__proto__ = p;
|
|
1073
1097
|
return o;
|
|
1074
1098
|
};
|
|
1075
|
-
return _set_prototype_of$
|
|
1099
|
+
return _set_prototype_of$s(o, p);
|
|
1076
1100
|
}
|
|
1077
1101
|
/**
|
|
1078
1102
|
* 播放/暂停控件
|
|
1079
1103
|
* @category Control
|
|
1080
1104
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1081
|
-
_inherits$
|
|
1105
|
+
_inherits$s(Play, Control);
|
|
1082
1106
|
function Play(options) {
|
|
1083
1107
|
var _this;
|
|
1084
|
-
_this = Control.call(this, _extends$
|
|
1108
|
+
_this = Control.call(this, _extends$s({}, options, {
|
|
1085
1109
|
tagName: 'span',
|
|
1086
1110
|
controlType: 'button',
|
|
1087
1111
|
classNameSuffix: 'play'
|
|
@@ -1697,8 +1721,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1697
1721
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1698
1722
|
return Constructor;
|
|
1699
1723
|
}
|
|
1700
|
-
function _extends$
|
|
1701
|
-
_extends$
|
|
1724
|
+
function _extends$r() {
|
|
1725
|
+
_extends$r = Object.assign || function(target) {
|
|
1702
1726
|
for(var i = 1; i < arguments.length; i++){
|
|
1703
1727
|
var source = arguments[i];
|
|
1704
1728
|
for(var key in source){
|
|
@@ -1709,9 +1733,9 @@ function _extends$o() {
|
|
|
1709
1733
|
}
|
|
1710
1734
|
return target;
|
|
1711
1735
|
};
|
|
1712
|
-
return _extends$
|
|
1736
|
+
return _extends$r.apply(this, arguments);
|
|
1713
1737
|
}
|
|
1714
|
-
function _inherits$
|
|
1738
|
+
function _inherits$r(subClass, superClass) {
|
|
1715
1739
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1716
1740
|
throw new TypeError("Super expression must either be null or a function");
|
|
1717
1741
|
}
|
|
@@ -1722,14 +1746,14 @@ function _inherits$o(subClass, superClass) {
|
|
|
1722
1746
|
configurable: true
|
|
1723
1747
|
}
|
|
1724
1748
|
});
|
|
1725
|
-
if (superClass) _set_prototype_of$
|
|
1749
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
1726
1750
|
}
|
|
1727
|
-
function _set_prototype_of$
|
|
1728
|
-
_set_prototype_of$
|
|
1751
|
+
function _set_prototype_of$r(o, p) {
|
|
1752
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1729
1753
|
o.__proto__ = p;
|
|
1730
1754
|
return o;
|
|
1731
1755
|
};
|
|
1732
|
-
return _set_prototype_of$
|
|
1756
|
+
return _set_prototype_of$r(o, p);
|
|
1733
1757
|
}
|
|
1734
1758
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1735
1759
|
volume: 0.8,
|
|
@@ -1743,12 +1767,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1743
1767
|
* 音量调节控件
|
|
1744
1768
|
* @category Control
|
|
1745
1769
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1746
|
-
_inherits$
|
|
1770
|
+
_inherits$r(Volume, Control);
|
|
1747
1771
|
function Volume(options) {
|
|
1748
1772
|
if (options === void 0) options = {};
|
|
1749
1773
|
var _this;
|
|
1750
1774
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1751
|
-
_this = Control.call(this, _extends$
|
|
1775
|
+
_this = Control.call(this, _extends$r({}, options, {
|
|
1752
1776
|
tagName: 'span',
|
|
1753
1777
|
classNameSuffix: 'volume',
|
|
1754
1778
|
controlType: 'button'
|
|
@@ -1762,7 +1786,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1762
1786
|
_this._lastVolume = _this._volume;
|
|
1763
1787
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
1764
1788
|
// 轻应用私有暂时不支持调节音量
|
|
1765
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === '
|
|
1789
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
|
|
1766
1790
|
var _this__options_props4, _this__options_props5;
|
|
1767
1791
|
_this.picker = new Picker(_this.$container, {
|
|
1768
1792
|
getPopupContainer: function() {
|
|
@@ -1803,8 +1827,9 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1803
1827
|
}
|
|
1804
1828
|
_this._updateUI();
|
|
1805
1829
|
_this._addEventListener();
|
|
1806
|
-
_this.on(EVENTS.audioCodecUnsupported, function() {
|
|
1807
|
-
|
|
1830
|
+
_this.on(EVENTS.audioCodecUnsupported, function(flag) {
|
|
1831
|
+
flag = flag != null ? flag : true;
|
|
1832
|
+
_this.disabled = flag;
|
|
1808
1833
|
});
|
|
1809
1834
|
_this.on(EVENTS.volumechange, function(volume, muted) {
|
|
1810
1835
|
// 接收
|
|
@@ -2407,8 +2432,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2407
2432
|
return Fullscreen;
|
|
2408
2433
|
}();
|
|
2409
2434
|
|
|
2410
|
-
function _extends$
|
|
2411
|
-
_extends$
|
|
2435
|
+
function _extends$q() {
|
|
2436
|
+
_extends$q = Object.assign || function(target) {
|
|
2412
2437
|
for(var i = 1; i < arguments.length; i++){
|
|
2413
2438
|
var source = arguments[i];
|
|
2414
2439
|
for(var key in source){
|
|
@@ -2419,9 +2444,9 @@ function _extends$n() {
|
|
|
2419
2444
|
}
|
|
2420
2445
|
return target;
|
|
2421
2446
|
};
|
|
2422
|
-
return _extends$
|
|
2447
|
+
return _extends$q.apply(this, arguments);
|
|
2423
2448
|
}
|
|
2424
|
-
function _inherits$
|
|
2449
|
+
function _inherits$q(subClass, superClass) {
|
|
2425
2450
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2426
2451
|
throw new TypeError("Super expression must either be null or a function");
|
|
2427
2452
|
}
|
|
@@ -2432,24 +2457,24 @@ function _inherits$n(subClass, superClass) {
|
|
|
2432
2457
|
configurable: true
|
|
2433
2458
|
}
|
|
2434
2459
|
});
|
|
2435
|
-
if (superClass) _set_prototype_of$
|
|
2460
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
2436
2461
|
}
|
|
2437
|
-
function _set_prototype_of$
|
|
2438
|
-
_set_prototype_of$
|
|
2462
|
+
function _set_prototype_of$q(o, p) {
|
|
2463
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2439
2464
|
o.__proto__ = p;
|
|
2440
2465
|
return o;
|
|
2441
2466
|
};
|
|
2442
|
-
return _set_prototype_of$
|
|
2467
|
+
return _set_prototype_of$q(o, p);
|
|
2443
2468
|
}
|
|
2444
2469
|
/**
|
|
2445
2470
|
* 全屏控件
|
|
2446
2471
|
* @category Control
|
|
2447
2472
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2448
|
-
_inherits$
|
|
2473
|
+
_inherits$q(Fullscreen, Control);
|
|
2449
2474
|
function Fullscreen(options) {
|
|
2450
2475
|
var _this;
|
|
2451
2476
|
var _options_props, _this_options;
|
|
2452
|
-
_this = Control.call(this, _extends$
|
|
2477
|
+
_this = Control.call(this, _extends$q({
|
|
2453
2478
|
tagName: 'span',
|
|
2454
2479
|
classNameSuffix: 'fullscreen',
|
|
2455
2480
|
controlType: 'button'
|
|
@@ -2514,8 +2539,8 @@ function _set_prototype_of$n(o, p) {
|
|
|
2514
2539
|
return Fullscreen;
|
|
2515
2540
|
}(Control);
|
|
2516
2541
|
|
|
2517
|
-
function _extends$
|
|
2518
|
-
_extends$
|
|
2542
|
+
function _extends$p() {
|
|
2543
|
+
_extends$p = Object.assign || function(target) {
|
|
2519
2544
|
for(var i = 1; i < arguments.length; i++){
|
|
2520
2545
|
var source = arguments[i];
|
|
2521
2546
|
for(var key in source){
|
|
@@ -2526,9 +2551,9 @@ function _extends$m() {
|
|
|
2526
2551
|
}
|
|
2527
2552
|
return target;
|
|
2528
2553
|
};
|
|
2529
|
-
return _extends$
|
|
2554
|
+
return _extends$p.apply(this, arguments);
|
|
2530
2555
|
}
|
|
2531
|
-
function _inherits$
|
|
2556
|
+
function _inherits$p(subClass, superClass) {
|
|
2532
2557
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2533
2558
|
throw new TypeError("Super expression must either be null or a function");
|
|
2534
2559
|
}
|
|
@@ -2539,24 +2564,24 @@ function _inherits$m(subClass, superClass) {
|
|
|
2539
2564
|
configurable: true
|
|
2540
2565
|
}
|
|
2541
2566
|
});
|
|
2542
|
-
if (superClass) _set_prototype_of$
|
|
2567
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
2543
2568
|
}
|
|
2544
|
-
function _set_prototype_of$
|
|
2545
|
-
_set_prototype_of$
|
|
2569
|
+
function _set_prototype_of$p(o, p) {
|
|
2570
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2546
2571
|
o.__proto__ = p;
|
|
2547
2572
|
return o;
|
|
2548
2573
|
};
|
|
2549
|
-
return _set_prototype_of$
|
|
2574
|
+
return _set_prototype_of$p(o, p);
|
|
2550
2575
|
}
|
|
2551
2576
|
/**
|
|
2552
2577
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2553
2578
|
* @category Control
|
|
2554
2579
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2555
|
-
_inherits$
|
|
2580
|
+
_inherits$p(Rec, Control);
|
|
2556
2581
|
function Rec(options) {
|
|
2557
2582
|
var _this;
|
|
2558
2583
|
var _options_props;
|
|
2559
|
-
_this = Control.call(this, _extends$
|
|
2584
|
+
_this = Control.call(this, _extends$p({}, options, {
|
|
2560
2585
|
tagName: 'div',
|
|
2561
2586
|
controlType: 'block',
|
|
2562
2587
|
classNameSuffix: 'rec'
|
|
@@ -2833,6 +2858,12 @@ var zh = {
|
|
|
2833
2858
|
BTN_TALK: '对讲',
|
|
2834
2859
|
BTN_BROADCAST: '语音广播',
|
|
2835
2860
|
BTN_AICHAT: 'AI对话',
|
|
2861
|
+
BTN_LIVE: '直播',
|
|
2862
|
+
BTN_REC_DROPDOWN: '回放',
|
|
2863
|
+
BTN_ALARM_MESSAGE: '消息',
|
|
2864
|
+
REC_DROPDOWN_CLOUD_REC: '云存储',
|
|
2865
|
+
REC_DROPDOWN_CLOUD_RECORD: '云录制',
|
|
2866
|
+
REC_DROPDOWN_LOCAL_REC: '本地回放',
|
|
2836
2867
|
BTN_ZOOM: '电子放大',
|
|
2837
2868
|
BTN_3D_ZOOM: '3D定位',
|
|
2838
2869
|
BTN_PTZ: '云台控制',
|
|
@@ -3105,6 +3136,12 @@ var en = {
|
|
|
3105
3136
|
BTN_TALK: 'Intercom',
|
|
3106
3137
|
BTN_BROADCAST: 'Voice broadcast',
|
|
3107
3138
|
BTN_AICHAT: 'AI Chat',
|
|
3139
|
+
BTN_LIVE: 'Live',
|
|
3140
|
+
BTN_REC_DROPDOWN: 'Playback',
|
|
3141
|
+
BTN_ALARM_MESSAGE: 'Messages',
|
|
3142
|
+
REC_DROPDOWN_CLOUD_REC: 'Cloud Storage',
|
|
3143
|
+
REC_DROPDOWN_CLOUD_RECORD: 'Cloud Recording',
|
|
3144
|
+
REC_DROPDOWN_LOCAL_REC: 'Local Playback',
|
|
3108
3145
|
BTN_ZOOM: 'Electronic zoom',
|
|
3109
3146
|
BTN_3D_ZOOM: '3D positioning',
|
|
3110
3147
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3294,6 +3331,21 @@ var en = {
|
|
|
3294
3331
|
iconId: 'deviceName',
|
|
3295
3332
|
part: 'left',
|
|
3296
3333
|
isrender: 1
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
iconId: 'live',
|
|
3337
|
+
part: 'right',
|
|
3338
|
+
isrender: 1
|
|
3339
|
+
},
|
|
3340
|
+
{
|
|
3341
|
+
iconId: 'recDropdown',
|
|
3342
|
+
part: 'right',
|
|
3343
|
+
isrender: 1
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
iconId: 'alarmMessage',
|
|
3347
|
+
part: 'right',
|
|
3348
|
+
isrender: 1
|
|
3297
3349
|
}
|
|
3298
3350
|
]
|
|
3299
3351
|
},
|
|
@@ -3381,19 +3433,19 @@ var en = {
|
|
|
3381
3433
|
isrender: 1
|
|
3382
3434
|
},
|
|
3383
3435
|
{
|
|
3384
|
-
iconId: '
|
|
3436
|
+
iconId: 'live',
|
|
3385
3437
|
part: 'right',
|
|
3386
3438
|
defaultActive: 0,
|
|
3387
3439
|
isrender: 1
|
|
3388
3440
|
},
|
|
3389
3441
|
{
|
|
3390
|
-
iconId: '
|
|
3442
|
+
iconId: 'recDropdown',
|
|
3391
3443
|
part: 'right',
|
|
3392
3444
|
defaultActive: 0,
|
|
3393
3445
|
isrender: 1
|
|
3394
3446
|
},
|
|
3395
3447
|
{
|
|
3396
|
-
iconId: '
|
|
3448
|
+
iconId: 'alarmMessage',
|
|
3397
3449
|
part: 'right',
|
|
3398
3450
|
defaultActive: 0,
|
|
3399
3451
|
isrender: 1
|
|
@@ -3796,7 +3848,7 @@ var en = {
|
|
|
3796
3848
|
voice: voice
|
|
3797
3849
|
};
|
|
3798
3850
|
|
|
3799
|
-
function _inherits$
|
|
3851
|
+
function _inherits$o(subClass, superClass) {
|
|
3800
3852
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3801
3853
|
throw new TypeError("Super expression must either be null or a function");
|
|
3802
3854
|
}
|
|
@@ -3807,20 +3859,20 @@ function _inherits$l(subClass, superClass) {
|
|
|
3807
3859
|
configurable: true
|
|
3808
3860
|
}
|
|
3809
3861
|
});
|
|
3810
|
-
if (superClass) _set_prototype_of$
|
|
3862
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
3811
3863
|
}
|
|
3812
|
-
function _set_prototype_of$
|
|
3813
|
-
_set_prototype_of$
|
|
3864
|
+
function _set_prototype_of$o(o, p) {
|
|
3865
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3814
3866
|
o.__proto__ = p;
|
|
3815
3867
|
return o;
|
|
3816
3868
|
};
|
|
3817
|
-
return _set_prototype_of$
|
|
3869
|
+
return _set_prototype_of$o(o, p);
|
|
3818
3870
|
}
|
|
3819
3871
|
/**
|
|
3820
3872
|
* 截图控件
|
|
3821
3873
|
* @category Content
|
|
3822
3874
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3823
|
-
_inherits$
|
|
3875
|
+
_inherits$o(Content, EventEmitter);
|
|
3824
3876
|
function Content(options) {
|
|
3825
3877
|
var _this;
|
|
3826
3878
|
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
@@ -3935,8 +3987,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
3935
3987
|
return Content;
|
|
3936
3988
|
}(EventEmitter);
|
|
3937
3989
|
|
|
3938
|
-
function _extends$
|
|
3939
|
-
_extends$
|
|
3990
|
+
function _extends$o() {
|
|
3991
|
+
_extends$o = Object.assign || function(target) {
|
|
3940
3992
|
for(var i = 1; i < arguments.length; i++){
|
|
3941
3993
|
var source = arguments[i];
|
|
3942
3994
|
for(var key in source){
|
|
@@ -3947,9 +3999,9 @@ function _extends$l() {
|
|
|
3947
3999
|
}
|
|
3948
4000
|
return target;
|
|
3949
4001
|
};
|
|
3950
|
-
return _extends$
|
|
4002
|
+
return _extends$o.apply(this, arguments);
|
|
3951
4003
|
}
|
|
3952
|
-
function _inherits$
|
|
4004
|
+
function _inherits$n(subClass, superClass) {
|
|
3953
4005
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3954
4006
|
throw new TypeError("Super expression must either be null or a function");
|
|
3955
4007
|
}
|
|
@@ -3960,23 +4012,23 @@ function _inherits$k(subClass, superClass) {
|
|
|
3960
4012
|
configurable: true
|
|
3961
4013
|
}
|
|
3962
4014
|
});
|
|
3963
|
-
if (superClass) _set_prototype_of$
|
|
4015
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
3964
4016
|
}
|
|
3965
|
-
function _set_prototype_of$
|
|
3966
|
-
_set_prototype_of$
|
|
4017
|
+
function _set_prototype_of$n(o, p) {
|
|
4018
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3967
4019
|
o.__proto__ = p;
|
|
3968
4020
|
return o;
|
|
3969
4021
|
};
|
|
3970
|
-
return _set_prototype_of$
|
|
4022
|
+
return _set_prototype_of$n(o, p);
|
|
3971
4023
|
}
|
|
3972
4024
|
/**
|
|
3973
4025
|
* 更多控件
|
|
3974
4026
|
* @category Control
|
|
3975
4027
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3976
|
-
_inherits$
|
|
4028
|
+
_inherits$n(More, Control);
|
|
3977
4029
|
function More(options) {
|
|
3978
4030
|
var _this;
|
|
3979
|
-
_this = Control.call(this, _extends$
|
|
4031
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
3980
4032
|
tagName: 'span',
|
|
3981
4033
|
controlType: 'button',
|
|
3982
4034
|
classNameSuffix: 'more'
|
|
@@ -4086,10 +4138,10 @@ function debounce(func, wait) {
|
|
|
4086
4138
|
* @param theme - Theme
|
|
4087
4139
|
*/ function _themeEventemitter(theme) {
|
|
4088
4140
|
// prettier-ignore
|
|
4089
|
-
theme == null ? void 0 : theme.on(EVENTS.audioCodecUnsupported, function() {
|
|
4141
|
+
theme == null ? void 0 : theme.on(EVENTS.audioCodecUnsupported, function(flag) {
|
|
4090
4142
|
var _theme_controls;
|
|
4091
4143
|
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.volumeControl) {
|
|
4092
|
-
theme.controls.volumeControl.emit(EVENTS.audioCodecUnsupported);
|
|
4144
|
+
theme.controls.volumeControl.emit(EVENTS.audioCodecUnsupported, flag);
|
|
4093
4145
|
}
|
|
4094
4146
|
});
|
|
4095
4147
|
// 处理信息提示 duration 单位秒
|
|
@@ -4192,6 +4244,15 @@ function debounce(func, wait) {
|
|
|
4192
4244
|
}
|
|
4193
4245
|
});
|
|
4194
4246
|
// =======================================================
|
|
4247
|
+
// 告警消息
|
|
4248
|
+
// =======================================================
|
|
4249
|
+
theme.on(EVENTS.alarmMessageChange, function(active) {
|
|
4250
|
+
var _theme_controls;
|
|
4251
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.alarmMessageControl) {
|
|
4252
|
+
theme.controls.alarmMessageControl._panelOpen = active;
|
|
4253
|
+
}
|
|
4254
|
+
});
|
|
4255
|
+
// =======================================================
|
|
4195
4256
|
// 录制
|
|
4196
4257
|
// =======================================================
|
|
4197
4258
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4287,7 +4348,7 @@ function debounce(func, wait) {
|
|
|
4287
4348
|
*
|
|
4288
4349
|
* @param theme - Theme
|
|
4289
4350
|
*/ function _controlEventemitter(theme) {
|
|
4290
|
-
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16;
|
|
4351
|
+
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16, _theme_controls17, _theme_controls18, _theme_controls19, _theme_controls20, _theme_controls21;
|
|
4291
4352
|
// Controls
|
|
4292
4353
|
if (theme._recFooter) {
|
|
4293
4354
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4398,8 +4459,50 @@ function debounce(func, wait) {
|
|
|
4398
4459
|
theme.emit(EVENTS.control.aichatDestroy);
|
|
4399
4460
|
});
|
|
4400
4461
|
}
|
|
4462
|
+
// 直播按钮
|
|
4463
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.liveControl) {
|
|
4464
|
+
theme.controls.liveControl.on(EVENTS.control.liveChange, function() {
|
|
4465
|
+
var _theme_controls;
|
|
4466
|
+
// 直接设置回放下拉控件为非激活状态
|
|
4467
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.recDropdownControl) {
|
|
4468
|
+
theme.controls.recDropdownControl.active = false;
|
|
4469
|
+
}
|
|
4470
|
+
theme.emit(EVENTS.control.liveChange);
|
|
4471
|
+
});
|
|
4472
|
+
}
|
|
4473
|
+
// 回放下拉
|
|
4474
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.recDropdownControl) {
|
|
4475
|
+
theme.controls.recDropdownControl.on(EVENTS.control.recDropdownChange, function(type) {
|
|
4476
|
+
var _theme_controls;
|
|
4477
|
+
// 直接设置直播控件为非激活状态
|
|
4478
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4479
|
+
theme.controls.liveControl.active = false;
|
|
4480
|
+
}
|
|
4481
|
+
theme.emit(EVENTS.control.recDropdownChange, type);
|
|
4482
|
+
});
|
|
4483
|
+
}
|
|
4484
|
+
// 告警消息
|
|
4485
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.alarmMessageControl) {
|
|
4486
|
+
theme.controls.alarmMessageControl.on(EVENTS.control.alarmMessageChange, function(active) {
|
|
4487
|
+
theme.emit(EVENTS.control.alarmMessageChange, active);
|
|
4488
|
+
});
|
|
4489
|
+
}
|
|
4490
|
+
// 播放地址切换后同步 Live/RecDropdown 激活状态
|
|
4491
|
+
// changePlayUrl 后 urlInfo 已更新,firstFrameDisplay 表示新地址播放成功
|
|
4492
|
+
if (((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.liveControl) || ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.recDropdownControl)) {
|
|
4493
|
+
theme.on(EVENTS.firstFrameDisplay, function() {
|
|
4494
|
+
var _theme_controls, _theme_controls1;
|
|
4495
|
+
var urlInfo = theme.urlInfo;
|
|
4496
|
+
if ((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.liveControl) {
|
|
4497
|
+
theme.controls.liveControl._syncActiveByUrlInfo(urlInfo);
|
|
4498
|
+
}
|
|
4499
|
+
if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1.recDropdownControl) {
|
|
4500
|
+
theme.controls.recDropdownControl._syncActiveByUrlInfo(urlInfo);
|
|
4501
|
+
}
|
|
4502
|
+
});
|
|
4503
|
+
}
|
|
4401
4504
|
// 缩放控件
|
|
4402
|
-
if ((
|
|
4505
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.zoomControl) {
|
|
4403
4506
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4404
4507
|
if (theme.zoom !== value) {
|
|
4405
4508
|
theme.zoom = value;
|
|
@@ -4421,7 +4524,7 @@ function debounce(func, wait) {
|
|
|
4421
4524
|
});
|
|
4422
4525
|
}
|
|
4423
4526
|
// 清晰度控件
|
|
4424
|
-
if ((
|
|
4527
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.definitionControl) {
|
|
4425
4528
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4426
4529
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4427
4530
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4434,7 +4537,7 @@ function debounce(func, wait) {
|
|
|
4434
4537
|
});
|
|
4435
4538
|
}
|
|
4436
4539
|
// 倍速控件
|
|
4437
|
-
if ((
|
|
4540
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.speedControl) {
|
|
4438
4541
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4439
4542
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4440
4543
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4447,7 +4550,7 @@ function debounce(func, wait) {
|
|
|
4447
4550
|
});
|
|
4448
4551
|
}
|
|
4449
4552
|
// 截图控件
|
|
4450
|
-
if ((
|
|
4553
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.capturePictureControl) {
|
|
4451
4554
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4452
4555
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4453
4556
|
});
|
|
@@ -4456,25 +4559,25 @@ function debounce(func, wait) {
|
|
|
4456
4559
|
});
|
|
4457
4560
|
}
|
|
4458
4561
|
// 全屏控件
|
|
4459
|
-
if ((
|
|
4562
|
+
if ((_theme_controls16 = theme.controls) == null ? void 0 : _theme_controls16.fullscreenControl) {
|
|
4460
4563
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4461
4564
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4462
4565
|
});
|
|
4463
4566
|
}
|
|
4464
4567
|
// 全局全屏控件
|
|
4465
|
-
if ((
|
|
4568
|
+
if ((_theme_controls17 = theme.controls) == null ? void 0 : _theme_controls17.globalFullscreenControl) {
|
|
4466
4569
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4467
4570
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4468
4571
|
});
|
|
4469
4572
|
}
|
|
4470
4573
|
// 设备信息控件
|
|
4471
|
-
if ((
|
|
4574
|
+
if ((_theme_controls18 = theme.controls) == null ? void 0 : _theme_controls18.deviceControl) {
|
|
4472
4575
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4473
4576
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4474
4577
|
});
|
|
4475
4578
|
}
|
|
4476
4579
|
// 回放类型切换控件
|
|
4477
|
-
if ((
|
|
4580
|
+
if ((_theme_controls19 = theme.controls) == null ? void 0 : _theme_controls19.recControl) {
|
|
4478
4581
|
// prettier-ignore
|
|
4479
4582
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4480
4583
|
if (theme.recType !== type) {
|
|
@@ -4495,7 +4598,7 @@ function debounce(func, wait) {
|
|
|
4495
4598
|
});
|
|
4496
4599
|
}
|
|
4497
4600
|
// 时间轴控件
|
|
4498
|
-
if ((
|
|
4601
|
+
if ((_theme_controls20 = theme.controls) == null ? void 0 : _theme_controls20.timeLineControl) {
|
|
4499
4602
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4500
4603
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4501
4604
|
});
|
|
@@ -4512,7 +4615,7 @@ function debounce(func, wait) {
|
|
|
4512
4615
|
});
|
|
4513
4616
|
}
|
|
4514
4617
|
// 日历控件
|
|
4515
|
-
if ((
|
|
4618
|
+
if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.dateControl) {
|
|
4516
4619
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4517
4620
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4518
4621
|
});
|
|
@@ -4607,8 +4710,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4607
4710
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4608
4711
|
return Constructor;
|
|
4609
4712
|
}
|
|
4610
|
-
function _extends$
|
|
4611
|
-
_extends$
|
|
4713
|
+
function _extends$n() {
|
|
4714
|
+
_extends$n = Object.assign || function(target) {
|
|
4612
4715
|
for(var i = 1; i < arguments.length; i++){
|
|
4613
4716
|
var source = arguments[i];
|
|
4614
4717
|
for(var key in source){
|
|
@@ -4619,9 +4722,9 @@ function _extends$k() {
|
|
|
4619
4722
|
}
|
|
4620
4723
|
return target;
|
|
4621
4724
|
};
|
|
4622
|
-
return _extends$
|
|
4725
|
+
return _extends$n.apply(this, arguments);
|
|
4623
4726
|
}
|
|
4624
|
-
function _inherits$
|
|
4727
|
+
function _inherits$m(subClass, superClass) {
|
|
4625
4728
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4626
4729
|
throw new TypeError("Super expression must either be null or a function");
|
|
4627
4730
|
}
|
|
@@ -4632,14 +4735,14 @@ function _inherits$j(subClass, superClass) {
|
|
|
4632
4735
|
configurable: true
|
|
4633
4736
|
}
|
|
4634
4737
|
});
|
|
4635
|
-
if (superClass) _set_prototype_of$
|
|
4738
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
4636
4739
|
}
|
|
4637
|
-
function _set_prototype_of$
|
|
4638
|
-
_set_prototype_of$
|
|
4740
|
+
function _set_prototype_of$m(o, p) {
|
|
4741
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4639
4742
|
o.__proto__ = p;
|
|
4640
4743
|
return o;
|
|
4641
4744
|
};
|
|
4642
|
-
return _set_prototype_of$
|
|
4745
|
+
return _set_prototype_of$m(o, p);
|
|
4643
4746
|
}
|
|
4644
4747
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4645
4748
|
open: false,
|
|
@@ -4649,10 +4752,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4649
4752
|
* 电子放大控件
|
|
4650
4753
|
* @category Control
|
|
4651
4754
|
*/ var Zoom = /*#__PURE__*/ function(Control) {
|
|
4652
|
-
_inherits$
|
|
4755
|
+
_inherits$m(Zoom, Control);
|
|
4653
4756
|
function Zoom(options) {
|
|
4654
4757
|
var _this;
|
|
4655
|
-
_this = Control.call(this, _extends$
|
|
4758
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
4656
4759
|
tagName: 'span',
|
|
4657
4760
|
controlType: 'button',
|
|
4658
4761
|
classNameSuffix: 'zoom'
|
|
@@ -4780,8 +4883,8 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4780
4883
|
return Zoom;
|
|
4781
4884
|
}(Control);
|
|
4782
4885
|
|
|
4783
|
-
function _extends$
|
|
4784
|
-
_extends$
|
|
4886
|
+
function _extends$m() {
|
|
4887
|
+
_extends$m = Object.assign || function(target) {
|
|
4785
4888
|
for(var i = 1; i < arguments.length; i++){
|
|
4786
4889
|
var source = arguments[i];
|
|
4787
4890
|
for(var key in source){
|
|
@@ -4792,10 +4895,10 @@ function _extends$j() {
|
|
|
4792
4895
|
}
|
|
4793
4896
|
return target;
|
|
4794
4897
|
};
|
|
4795
|
-
return _extends$
|
|
4898
|
+
return _extends$m.apply(this, arguments);
|
|
4796
4899
|
}
|
|
4797
4900
|
function __zoom(theme, container, options) {
|
|
4798
|
-
theme.zoomUtil = new Zoom$1(container, _extends$
|
|
4901
|
+
theme.zoomUtil = new Zoom$1(container, _extends$m({}, options || {}, {
|
|
4799
4902
|
min: 1,
|
|
4800
4903
|
onChange: function(zoom, reset) {
|
|
4801
4904
|
if (zoom !== theme._zoom) {
|
|
@@ -5020,8 +5123,8 @@ function _async_to_generator$5(fn) {
|
|
|
5020
5123
|
});
|
|
5021
5124
|
};
|
|
5022
5125
|
}
|
|
5023
|
-
function _extends$
|
|
5024
|
-
_extends$
|
|
5126
|
+
function _extends$l() {
|
|
5127
|
+
_extends$l = Object.assign || function(target) {
|
|
5025
5128
|
for(var i = 1; i < arguments.length; i++){
|
|
5026
5129
|
var source = arguments[i];
|
|
5027
5130
|
for(var key in source){
|
|
@@ -5032,7 +5135,7 @@ function _extends$i() {
|
|
|
5032
5135
|
}
|
|
5033
5136
|
return target;
|
|
5034
5137
|
};
|
|
5035
|
-
return _extends$
|
|
5138
|
+
return _extends$l.apply(this, arguments);
|
|
5036
5139
|
}
|
|
5037
5140
|
function _ts_generator$5(thisArg, body) {
|
|
5038
5141
|
var f, y, t, _ = {
|
|
@@ -5160,7 +5263,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5160
5263
|
}
|
|
5161
5264
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5162
5265
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5163
|
-
recControls.push(recControls[0] ? _extends$
|
|
5266
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5164
5267
|
part: recControls[0].part
|
|
5165
5268
|
}) : item);
|
|
5166
5269
|
return false;
|
|
@@ -5183,7 +5286,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5183
5286
|
}
|
|
5184
5287
|
if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
|
|
5185
5288
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5186
|
-
recControls.push(recControls[0] ? _extends$
|
|
5289
|
+
recControls.push(recControls[0] ? _extends$l({}, item, {
|
|
5187
5290
|
part: recControls[0].part
|
|
5188
5291
|
}) : item);
|
|
5189
5292
|
return false;
|
|
@@ -5434,8 +5537,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
5434
5537
|
return Component;
|
|
5435
5538
|
}();
|
|
5436
5539
|
|
|
5437
|
-
function _extends$
|
|
5438
|
-
_extends$
|
|
5540
|
+
function _extends$k() {
|
|
5541
|
+
_extends$k = Object.assign || function(target) {
|
|
5439
5542
|
for(var i = 1; i < arguments.length; i++){
|
|
5440
5543
|
var source = arguments[i];
|
|
5441
5544
|
for(var key in source){
|
|
@@ -5446,9 +5549,9 @@ function _extends$h() {
|
|
|
5446
5549
|
}
|
|
5447
5550
|
return target;
|
|
5448
5551
|
};
|
|
5449
|
-
return _extends$
|
|
5552
|
+
return _extends$k.apply(this, arguments);
|
|
5450
5553
|
}
|
|
5451
|
-
function _inherits$
|
|
5554
|
+
function _inherits$l(subClass, superClass) {
|
|
5452
5555
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5453
5556
|
throw new TypeError("Super expression must either be null or a function");
|
|
5454
5557
|
}
|
|
@@ -5459,28 +5562,28 @@ function _inherits$i(subClass, superClass) {
|
|
|
5459
5562
|
configurable: true
|
|
5460
5563
|
}
|
|
5461
5564
|
});
|
|
5462
|
-
if (superClass) _set_prototype_of$
|
|
5565
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
5463
5566
|
}
|
|
5464
|
-
function _set_prototype_of$
|
|
5465
|
-
_set_prototype_of$
|
|
5567
|
+
function _set_prototype_of$l(o, p) {
|
|
5568
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5466
5569
|
o.__proto__ = p;
|
|
5467
5570
|
return o;
|
|
5468
5571
|
};
|
|
5469
|
-
return _set_prototype_of$
|
|
5572
|
+
return _set_prototype_of$l(o, p);
|
|
5470
5573
|
}
|
|
5471
5574
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
5472
|
-
_inherits$
|
|
5575
|
+
_inherits$l(Footer, Component);
|
|
5473
5576
|
function Footer(options) {
|
|
5474
5577
|
if (options === void 0) options = {};
|
|
5475
|
-
return Component.call(this, _extends$
|
|
5578
|
+
return Component.call(this, _extends$k({}, options, {
|
|
5476
5579
|
cType: 'footer'
|
|
5477
5580
|
})) || this;
|
|
5478
5581
|
}
|
|
5479
5582
|
return Footer;
|
|
5480
5583
|
}(Component);
|
|
5481
5584
|
|
|
5482
|
-
function _extends$
|
|
5483
|
-
_extends$
|
|
5585
|
+
function _extends$j() {
|
|
5586
|
+
_extends$j = Object.assign || function(target) {
|
|
5484
5587
|
for(var i = 1; i < arguments.length; i++){
|
|
5485
5588
|
var source = arguments[i];
|
|
5486
5589
|
for(var key in source){
|
|
@@ -5491,9 +5594,9 @@ function _extends$g() {
|
|
|
5491
5594
|
}
|
|
5492
5595
|
return target;
|
|
5493
5596
|
};
|
|
5494
|
-
return _extends$
|
|
5597
|
+
return _extends$j.apply(this, arguments);
|
|
5495
5598
|
}
|
|
5496
|
-
function _inherits$
|
|
5599
|
+
function _inherits$k(subClass, superClass) {
|
|
5497
5600
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5498
5601
|
throw new TypeError("Super expression must either be null or a function");
|
|
5499
5602
|
}
|
|
@@ -5504,20 +5607,20 @@ function _inherits$h(subClass, superClass) {
|
|
|
5504
5607
|
configurable: true
|
|
5505
5608
|
}
|
|
5506
5609
|
});
|
|
5507
|
-
if (superClass) _set_prototype_of$
|
|
5610
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
5508
5611
|
}
|
|
5509
|
-
function _set_prototype_of$
|
|
5510
|
-
_set_prototype_of$
|
|
5612
|
+
function _set_prototype_of$k(o, p) {
|
|
5613
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5511
5614
|
o.__proto__ = p;
|
|
5512
5615
|
return o;
|
|
5513
5616
|
};
|
|
5514
|
-
return _set_prototype_of$
|
|
5617
|
+
return _set_prototype_of$k(o, p);
|
|
5515
5618
|
}
|
|
5516
5619
|
var Header = /*#__PURE__*/ function(Component) {
|
|
5517
|
-
_inherits$
|
|
5620
|
+
_inherits$k(Header, Component);
|
|
5518
5621
|
function Header(options) {
|
|
5519
5622
|
if (options === void 0) options = {};
|
|
5520
|
-
return Component.call(this, _extends$
|
|
5623
|
+
return Component.call(this, _extends$j({}, options, {
|
|
5521
5624
|
cType: 'header'
|
|
5522
5625
|
})) || this;
|
|
5523
5626
|
}
|
|
@@ -5683,8 +5786,8 @@ function interactiveHF($container, second, callback) {
|
|
|
5683
5786
|
};
|
|
5684
5787
|
}
|
|
5685
5788
|
|
|
5686
|
-
function _extends$
|
|
5687
|
-
_extends$
|
|
5789
|
+
function _extends$i() {
|
|
5790
|
+
_extends$i = Object.assign || function(target) {
|
|
5688
5791
|
for(var i = 1; i < arguments.length; i++){
|
|
5689
5792
|
var source = arguments[i];
|
|
5690
5793
|
for(var key in source){
|
|
@@ -5695,9 +5798,9 @@ function _extends$f() {
|
|
|
5695
5798
|
}
|
|
5696
5799
|
return target;
|
|
5697
5800
|
};
|
|
5698
|
-
return _extends$
|
|
5801
|
+
return _extends$i.apply(this, arguments);
|
|
5699
5802
|
}
|
|
5700
|
-
function _inherits$
|
|
5803
|
+
function _inherits$j(subClass, superClass) {
|
|
5701
5804
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5702
5805
|
throw new TypeError("Super expression must either be null or a function");
|
|
5703
5806
|
}
|
|
@@ -5708,23 +5811,23 @@ function _inherits$g(subClass, superClass) {
|
|
|
5708
5811
|
configurable: true
|
|
5709
5812
|
}
|
|
5710
5813
|
});
|
|
5711
|
-
if (superClass) _set_prototype_of$
|
|
5814
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
5712
5815
|
}
|
|
5713
|
-
function _set_prototype_of$
|
|
5714
|
-
_set_prototype_of$
|
|
5816
|
+
function _set_prototype_of$j(o, p) {
|
|
5817
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5715
5818
|
o.__proto__ = p;
|
|
5716
5819
|
return o;
|
|
5717
5820
|
};
|
|
5718
|
-
return _set_prototype_of$
|
|
5821
|
+
return _set_prototype_of$j(o, p);
|
|
5719
5822
|
}
|
|
5720
5823
|
/**
|
|
5721
5824
|
* 全局全屏
|
|
5722
5825
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
5723
5826
|
* @category Control
|
|
5724
5827
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
5725
|
-
_inherits$
|
|
5828
|
+
_inherits$j(GlobalFullscreen, Fullscreen);
|
|
5726
5829
|
function GlobalFullscreen(options) {
|
|
5727
|
-
return Fullscreen.call(this, _extends$
|
|
5830
|
+
return Fullscreen.call(this, _extends$i({}, options, {
|
|
5728
5831
|
controlType: 'button',
|
|
5729
5832
|
classNameSuffix: 'global-fullscreen'
|
|
5730
5833
|
})) || this;
|
|
@@ -5755,8 +5858,8 @@ function _set_prototype_of$g(o, p) {
|
|
|
5755
5858
|
return GlobalFullscreen;
|
|
5756
5859
|
}(Fullscreen);
|
|
5757
5860
|
|
|
5758
|
-
function _extends$
|
|
5759
|
-
_extends$
|
|
5861
|
+
function _extends$h() {
|
|
5862
|
+
_extends$h = Object.assign || function(target) {
|
|
5760
5863
|
for(var i = 1; i < arguments.length; i++){
|
|
5761
5864
|
var source = arguments[i];
|
|
5762
5865
|
for(var key in source){
|
|
@@ -5767,9 +5870,9 @@ function _extends$e() {
|
|
|
5767
5870
|
}
|
|
5768
5871
|
return target;
|
|
5769
5872
|
};
|
|
5770
|
-
return _extends$
|
|
5873
|
+
return _extends$h.apply(this, arguments);
|
|
5771
5874
|
}
|
|
5772
|
-
function _inherits$
|
|
5875
|
+
function _inherits$i(subClass, superClass) {
|
|
5773
5876
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5774
5877
|
throw new TypeError("Super expression must either be null or a function");
|
|
5775
5878
|
}
|
|
@@ -5780,23 +5883,23 @@ function _inherits$f(subClass, superClass) {
|
|
|
5780
5883
|
configurable: true
|
|
5781
5884
|
}
|
|
5782
5885
|
});
|
|
5783
|
-
if (superClass) _set_prototype_of$
|
|
5886
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
5784
5887
|
}
|
|
5785
|
-
function _set_prototype_of$
|
|
5786
|
-
_set_prototype_of$
|
|
5787
|
-
o.__proto__ = p;
|
|
5888
|
+
function _set_prototype_of$i(o, p) {
|
|
5889
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5890
|
+
o.__proto__ = p;
|
|
5788
5891
|
return o;
|
|
5789
5892
|
};
|
|
5790
|
-
return _set_prototype_of$
|
|
5893
|
+
return _set_prototype_of$i(o, p);
|
|
5791
5894
|
}
|
|
5792
5895
|
/**
|
|
5793
5896
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
5794
5897
|
* @category Control
|
|
5795
5898
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
5796
|
-
_inherits$
|
|
5899
|
+
_inherits$i(CapturePicture, Control);
|
|
5797
5900
|
function CapturePicture(options) {
|
|
5798
5901
|
var _this;
|
|
5799
|
-
_this = Control.call(this, _extends$
|
|
5902
|
+
_this = Control.call(this, _extends$h({}, options, {
|
|
5800
5903
|
tagName: 'span',
|
|
5801
5904
|
classNameSuffix: 'capture-picture'
|
|
5802
5905
|
})) || this, _this._timer = null;
|
|
@@ -5862,8 +5965,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
5862
5965
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
5863
5966
|
return Constructor;
|
|
5864
5967
|
}
|
|
5865
|
-
function _extends$
|
|
5866
|
-
_extends$
|
|
5968
|
+
function _extends$g() {
|
|
5969
|
+
_extends$g = Object.assign || function(target) {
|
|
5867
5970
|
for(var i = 1; i < arguments.length; i++){
|
|
5868
5971
|
var source = arguments[i];
|
|
5869
5972
|
for(var key in source){
|
|
@@ -5874,9 +5977,9 @@ function _extends$d() {
|
|
|
5874
5977
|
}
|
|
5875
5978
|
return target;
|
|
5876
5979
|
};
|
|
5877
|
-
return _extends$
|
|
5980
|
+
return _extends$g.apply(this, arguments);
|
|
5878
5981
|
}
|
|
5879
|
-
function _inherits$
|
|
5982
|
+
function _inherits$h(subClass, superClass) {
|
|
5880
5983
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
5881
5984
|
throw new TypeError("Super expression must either be null or a function");
|
|
5882
5985
|
}
|
|
@@ -5887,23 +5990,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
5887
5990
|
configurable: true
|
|
5888
5991
|
}
|
|
5889
5992
|
});
|
|
5890
|
-
if (superClass) _set_prototype_of$
|
|
5993
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
5891
5994
|
}
|
|
5892
|
-
function _set_prototype_of$
|
|
5893
|
-
_set_prototype_of$
|
|
5995
|
+
function _set_prototype_of$h(o, p) {
|
|
5996
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
5894
5997
|
o.__proto__ = p;
|
|
5895
5998
|
return o;
|
|
5896
5999
|
};
|
|
5897
|
-
return _set_prototype_of$
|
|
6000
|
+
return _set_prototype_of$h(o, p);
|
|
5898
6001
|
}
|
|
5899
6002
|
/**
|
|
5900
6003
|
* 云台控件
|
|
5901
6004
|
* @category Control
|
|
5902
6005
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
5903
|
-
_inherits$
|
|
6006
|
+
_inherits$h(Ptz, Control);
|
|
5904
6007
|
function Ptz(options) {
|
|
5905
6008
|
var _this;
|
|
5906
|
-
_this = Control.call(this, _extends$
|
|
6009
|
+
_this = Control.call(this, _extends$g({}, options, {
|
|
5907
6010
|
tagName: 'span',
|
|
5908
6011
|
controlType: 'button',
|
|
5909
6012
|
classNameSuffix: 'ptz'
|
|
@@ -5946,7 +6049,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5946
6049
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
5947
6050
|
this.$panel.appendChild(this.$turntable);
|
|
5948
6051
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5949
|
-
this._ptzControl = new Ptz$1(this.$turntable, _extends$
|
|
6052
|
+
this._ptzControl = new Ptz$1(this.$turntable, _extends$g({}, this._options, {
|
|
5950
6053
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5951
6054
|
onDirection: this._onDirection.bind(this)
|
|
5952
6055
|
}));
|
|
@@ -5955,7 +6058,7 @@ function _set_prototype_of$e(o, p) {
|
|
|
5955
6058
|
};
|
|
5956
6059
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
5957
6060
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
5958
|
-
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$
|
|
6061
|
+
if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$g({}, this._options, {
|
|
5959
6062
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
5960
6063
|
onDirection: this._onDirection.bind(this)
|
|
5961
6064
|
}));
|
|
@@ -6058,8 +6161,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
6058
6161
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
6059
6162
|
return Constructor;
|
|
6060
6163
|
}
|
|
6061
|
-
function _extends$
|
|
6062
|
-
_extends$
|
|
6164
|
+
function _extends$f() {
|
|
6165
|
+
_extends$f = Object.assign || function(target) {
|
|
6063
6166
|
for(var i = 1; i < arguments.length; i++){
|
|
6064
6167
|
var source = arguments[i];
|
|
6065
6168
|
for(var key in source){
|
|
@@ -6070,9 +6173,9 @@ function _extends$c() {
|
|
|
6070
6173
|
}
|
|
6071
6174
|
return target;
|
|
6072
6175
|
};
|
|
6073
|
-
return _extends$
|
|
6176
|
+
return _extends$f.apply(this, arguments);
|
|
6074
6177
|
}
|
|
6075
|
-
function _inherits$
|
|
6178
|
+
function _inherits$g(subClass, superClass) {
|
|
6076
6179
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6077
6180
|
throw new TypeError("Super expression must either be null or a function");
|
|
6078
6181
|
}
|
|
@@ -6083,14 +6186,14 @@ function _inherits$d(subClass, superClass) {
|
|
|
6083
6186
|
configurable: true
|
|
6084
6187
|
}
|
|
6085
6188
|
});
|
|
6086
|
-
if (superClass) _set_prototype_of$
|
|
6189
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6087
6190
|
}
|
|
6088
|
-
function _set_prototype_of$
|
|
6089
|
-
_set_prototype_of$
|
|
6191
|
+
function _set_prototype_of$g(o, p) {
|
|
6192
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6090
6193
|
o.__proto__ = p;
|
|
6091
6194
|
return o;
|
|
6092
6195
|
};
|
|
6093
|
-
return _set_prototype_of$
|
|
6196
|
+
return _set_prototype_of$g(o, p);
|
|
6094
6197
|
}
|
|
6095
6198
|
var RECORD_DEFAULT_OPTIONS = {
|
|
6096
6199
|
maxDuration: 3600
|
|
@@ -6104,10 +6207,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
6104
6207
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
6105
6208
|
* @category Control
|
|
6106
6209
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
6107
|
-
_inherits$
|
|
6210
|
+
_inherits$g(Record, Control);
|
|
6108
6211
|
function Record(options) {
|
|
6109
6212
|
var _this;
|
|
6110
|
-
_this = Control.call(this, _extends$
|
|
6213
|
+
_this = Control.call(this, _extends$f({}, options, {
|
|
6111
6214
|
tagName: 'span',
|
|
6112
6215
|
controlType: 'button',
|
|
6113
6216
|
classNameSuffix: 'record'
|
|
@@ -6248,8 +6351,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
6248
6351
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
6249
6352
|
return Constructor;
|
|
6250
6353
|
}
|
|
6251
|
-
function _extends$
|
|
6252
|
-
_extends$
|
|
6354
|
+
function _extends$e() {
|
|
6355
|
+
_extends$e = Object.assign || function(target) {
|
|
6253
6356
|
for(var i = 1; i < arguments.length; i++){
|
|
6254
6357
|
var source = arguments[i];
|
|
6255
6358
|
for(var key in source){
|
|
@@ -6260,9 +6363,9 @@ function _extends$b() {
|
|
|
6260
6363
|
}
|
|
6261
6364
|
return target;
|
|
6262
6365
|
};
|
|
6263
|
-
return _extends$
|
|
6366
|
+
return _extends$e.apply(this, arguments);
|
|
6264
6367
|
}
|
|
6265
|
-
function _inherits$
|
|
6368
|
+
function _inherits$f(subClass, superClass) {
|
|
6266
6369
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6267
6370
|
throw new TypeError("Super expression must either be null or a function");
|
|
6268
6371
|
}
|
|
@@ -6273,14 +6376,14 @@ function _inherits$c(subClass, superClass) {
|
|
|
6273
6376
|
configurable: true
|
|
6274
6377
|
}
|
|
6275
6378
|
});
|
|
6276
|
-
if (superClass) _set_prototype_of$
|
|
6379
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6277
6380
|
}
|
|
6278
|
-
function _set_prototype_of$
|
|
6279
|
-
_set_prototype_of$
|
|
6381
|
+
function _set_prototype_of$f(o, p) {
|
|
6382
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6280
6383
|
o.__proto__ = p;
|
|
6281
6384
|
return o;
|
|
6282
6385
|
};
|
|
6283
|
-
return _set_prototype_of$
|
|
6386
|
+
return _set_prototype_of$f(o, p);
|
|
6284
6387
|
}
|
|
6285
6388
|
function _ts_generator$4(thisArg, body) {
|
|
6286
6389
|
var f, y, t, _ = {
|
|
@@ -6382,10 +6485,10 @@ function _ts_generator$4(thisArg, body) {
|
|
|
6382
6485
|
*
|
|
6383
6486
|
* @category Control
|
|
6384
6487
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
6385
|
-
_inherits$
|
|
6488
|
+
_inherits$f(Talk, Control);
|
|
6386
6489
|
function Talk(options) {
|
|
6387
6490
|
var _this;
|
|
6388
|
-
_this = Control.call(this, _extends$
|
|
6491
|
+
_this = Control.call(this, _extends$e({}, options, {
|
|
6389
6492
|
tagName: 'span',
|
|
6390
6493
|
controlType: 'button',
|
|
6391
6494
|
classNameSuffix: 'talk'
|
|
@@ -6518,8 +6621,8 @@ function _async_to_generator$3(fn) {
|
|
|
6518
6621
|
});
|
|
6519
6622
|
};
|
|
6520
6623
|
}
|
|
6521
|
-
function _extends$
|
|
6522
|
-
_extends$
|
|
6624
|
+
function _extends$d() {
|
|
6625
|
+
_extends$d = Object.assign || function(target) {
|
|
6523
6626
|
for(var i = 1; i < arguments.length; i++){
|
|
6524
6627
|
var source = arguments[i];
|
|
6525
6628
|
for(var key in source){
|
|
@@ -6530,9 +6633,9 @@ function _extends$a() {
|
|
|
6530
6633
|
}
|
|
6531
6634
|
return target;
|
|
6532
6635
|
};
|
|
6533
|
-
return _extends$
|
|
6636
|
+
return _extends$d.apply(this, arguments);
|
|
6534
6637
|
}
|
|
6535
|
-
function _inherits$
|
|
6638
|
+
function _inherits$e(subClass, superClass) {
|
|
6536
6639
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6537
6640
|
throw new TypeError("Super expression must either be null or a function");
|
|
6538
6641
|
}
|
|
@@ -6543,14 +6646,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
6543
6646
|
configurable: true
|
|
6544
6647
|
}
|
|
6545
6648
|
});
|
|
6546
|
-
if (superClass) _set_prototype_of$
|
|
6649
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6547
6650
|
}
|
|
6548
|
-
function _set_prototype_of$
|
|
6549
|
-
_set_prototype_of$
|
|
6651
|
+
function _set_prototype_of$e(o, p) {
|
|
6652
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6550
6653
|
o.__proto__ = p;
|
|
6551
6654
|
return o;
|
|
6552
6655
|
};
|
|
6553
|
-
return _set_prototype_of$
|
|
6656
|
+
return _set_prototype_of$e(o, p);
|
|
6554
6657
|
}
|
|
6555
6658
|
function _ts_generator$3(thisArg, body) {
|
|
6556
6659
|
var f, y, t, _ = {
|
|
@@ -6650,10 +6753,10 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6650
6753
|
*
|
|
6651
6754
|
* @category Control
|
|
6652
6755
|
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
6653
|
-
_inherits$
|
|
6756
|
+
_inherits$e(Broadcast, Control);
|
|
6654
6757
|
function Broadcast(options) {
|
|
6655
6758
|
var _this;
|
|
6656
|
-
_this = Control.call(this, _extends$
|
|
6759
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6657
6760
|
tagName: 'span',
|
|
6658
6761
|
controlType: 'button',
|
|
6659
6762
|
classNameSuffix: 'broadcast'
|
|
@@ -6748,8 +6851,8 @@ function _async_to_generator$2(fn) {
|
|
|
6748
6851
|
});
|
|
6749
6852
|
};
|
|
6750
6853
|
}
|
|
6751
|
-
function _extends$
|
|
6752
|
-
_extends$
|
|
6854
|
+
function _extends$c() {
|
|
6855
|
+
_extends$c = Object.assign || function(target) {
|
|
6753
6856
|
for(var i = 1; i < arguments.length; i++){
|
|
6754
6857
|
var source = arguments[i];
|
|
6755
6858
|
for(var key in source){
|
|
@@ -6760,9 +6863,9 @@ function _extends$9() {
|
|
|
6760
6863
|
}
|
|
6761
6864
|
return target;
|
|
6762
6865
|
};
|
|
6763
|
-
return _extends$
|
|
6866
|
+
return _extends$c.apply(this, arguments);
|
|
6764
6867
|
}
|
|
6765
|
-
function _inherits$
|
|
6868
|
+
function _inherits$d(subClass, superClass) {
|
|
6766
6869
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6767
6870
|
throw new TypeError("Super expression must either be null or a function");
|
|
6768
6871
|
}
|
|
@@ -6773,14 +6876,14 @@ function _inherits$a(subClass, superClass) {
|
|
|
6773
6876
|
configurable: true
|
|
6774
6877
|
}
|
|
6775
6878
|
});
|
|
6776
|
-
if (superClass) _set_prototype_of$
|
|
6879
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
6777
6880
|
}
|
|
6778
|
-
function _set_prototype_of$
|
|
6779
|
-
_set_prototype_of$
|
|
6881
|
+
function _set_prototype_of$d(o, p) {
|
|
6882
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6780
6883
|
o.__proto__ = p;
|
|
6781
6884
|
return o;
|
|
6782
6885
|
};
|
|
6783
|
-
return _set_prototype_of$
|
|
6886
|
+
return _set_prototype_of$d(o, p);
|
|
6784
6887
|
}
|
|
6785
6888
|
function _ts_generator$2(thisArg, body) {
|
|
6786
6889
|
var f, y, t, _ = {
|
|
@@ -6880,10 +6983,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6880
6983
|
*
|
|
6881
6984
|
* @category Control
|
|
6882
6985
|
*/ var AIChat = /*#__PURE__*/ function(Control) {
|
|
6883
|
-
_inherits$
|
|
6986
|
+
_inherits$d(AIChat, Control);
|
|
6884
6987
|
function AIChat(options) {
|
|
6885
6988
|
var _this;
|
|
6886
|
-
_this = Control.call(this, _extends$
|
|
6989
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
6887
6990
|
tagName: 'span',
|
|
6888
6991
|
controlType: 'button',
|
|
6889
6992
|
classNameSuffix: 'aichat'
|
|
@@ -6949,6 +7052,340 @@ function _ts_generator$2(thisArg, body) {
|
|
|
6949
7052
|
return AIChat;
|
|
6950
7053
|
}(Control);
|
|
6951
7054
|
|
|
7055
|
+
function _extends$b() {
|
|
7056
|
+
_extends$b = Object.assign || function(target) {
|
|
7057
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7058
|
+
var source = arguments[i];
|
|
7059
|
+
for(var key in source){
|
|
7060
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7061
|
+
target[key] = source[key];
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
return target;
|
|
7066
|
+
};
|
|
7067
|
+
return _extends$b.apply(this, arguments);
|
|
7068
|
+
}
|
|
7069
|
+
function _inherits$c(subClass, superClass) {
|
|
7070
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
7071
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
7072
|
+
}
|
|
7073
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
7074
|
+
constructor: {
|
|
7075
|
+
value: subClass,
|
|
7076
|
+
writable: true,
|
|
7077
|
+
configurable: true
|
|
7078
|
+
}
|
|
7079
|
+
});
|
|
7080
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7081
|
+
}
|
|
7082
|
+
function _set_prototype_of$c(o, p) {
|
|
7083
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7084
|
+
o.__proto__ = p;
|
|
7085
|
+
return o;
|
|
7086
|
+
};
|
|
7087
|
+
return _set_prototype_of$c(o, p);
|
|
7088
|
+
}
|
|
7089
|
+
/**
|
|
7090
|
+
* 直播按钮控件
|
|
7091
|
+
*
|
|
7092
|
+
* 点击切换到直播模式
|
|
7093
|
+
*
|
|
7094
|
+
* @category Control
|
|
7095
|
+
*/ var Live = /*#__PURE__*/ function(Control) {
|
|
7096
|
+
_inherits$c(Live, Control);
|
|
7097
|
+
function Live(options) {
|
|
7098
|
+
var _this;
|
|
7099
|
+
var _this___options_props1;
|
|
7100
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7101
|
+
tagName: 'span',
|
|
7102
|
+
controlType: 'button',
|
|
7103
|
+
classNameSuffix: 'live'
|
|
7104
|
+
})) || this;
|
|
7105
|
+
_this._options = options;
|
|
7106
|
+
_this._render();
|
|
7107
|
+
// 初始化时根据当前播放模式确定激活状态
|
|
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
|
+
|
|
6952
7389
|
function _defineProperties$1(target, props) {
|
|
6953
7390
|
for(var i = 0; i < props.length; i++){
|
|
6954
7391
|
var descriptor = props[i];
|
|
@@ -7941,6 +8378,9 @@ var Controls = {
|
|
|
7941
8378
|
talk: Talk,
|
|
7942
8379
|
broadcast: Broadcast,
|
|
7943
8380
|
aiChat: AIChat,
|
|
8381
|
+
live: Live,
|
|
8382
|
+
recDropdown: RecDropdown,
|
|
8383
|
+
alarmMessage: AlarmMessage,
|
|
7944
8384
|
zoom: Zoom,
|
|
7945
8385
|
definition: Definition,
|
|
7946
8386
|
fullscreen: Fullscreen,
|
|
@@ -8474,7 +8914,10 @@ function _ts_generator$1(thisArg, body) {
|
|
|
8474
8914
|
// 需要权限的控件
|
|
8475
8915
|
var AUTH_KEY = [
|
|
8476
8916
|
'ptz',
|
|
8477
|
-
'aiChat'
|
|
8917
|
+
'aiChat',
|
|
8918
|
+
'live',
|
|
8919
|
+
'recDropdown',
|
|
8920
|
+
'alarmMessage'
|
|
8478
8921
|
];
|
|
8479
8922
|
/**
|
|
8480
8923
|
* 渲染控件
|
|
@@ -8554,7 +8997,7 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
8554
8997
|
}
|
|
8555
8998
|
function _renderTheme(theme, data) {
|
|
8556
8999
|
return _async_to_generator$1(function() {
|
|
8557
|
-
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;
|
|
9000
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_controls2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
|
|
8558
9001
|
return _ts_generator$1(this, function(_state) {
|
|
8559
9002
|
switch(_state.label){
|
|
8560
9003
|
case 0:
|
|
@@ -8695,8 +9138,8 @@ function _renderTheme(theme, data) {
|
|
|
8695
9138
|
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 : []);
|
|
8696
9139
|
// FIXME: 这个逻辑实际上是有问题的
|
|
8697
9140
|
_needTimeLine = list.some(function(item) {
|
|
8698
|
-
return REC_GROUP.includes(item.iconId);
|
|
8699
|
-
});
|
|
9141
|
+
return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
|
|
9142
|
+
}) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
|
|
8700
9143
|
// PC 单独渲染timeLine
|
|
8701
9144
|
if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
|
|
8702
9145
|
theme._recFooter = new RecFooter(theme.$container, {
|
|
@@ -8727,6 +9170,23 @@ function _renderTheme(theme, data) {
|
|
|
8727
9170
|
if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
|
|
8728
9171
|
});
|
|
8729
9172
|
}
|
|
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
|
+
}
|
|
8730
9190
|
if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('timeLine')) && _needTimeLine) {
|
|
8731
9191
|
_renderTimeLine(theme, theme._mobileExtend.$content, props);
|
|
8732
9192
|
}
|
|
@@ -8737,6 +9197,10 @@ function _renderTheme(theme, data) {
|
|
|
8737
9197
|
}
|
|
8738
9198
|
theme.emit(EVENTS.control.mountedControls);
|
|
8739
9199
|
if (!theme.playing) theme._disabled(true);
|
|
9200
|
+
// 同步 loading 状态(修复:_loadingControl 创建前设置的 loading=true 不生效的问题)
|
|
9201
|
+
if (theme._loading && theme._loadingControl) {
|
|
9202
|
+
theme._loadingControl.show();
|
|
9203
|
+
}
|
|
8740
9204
|
_controlEventemitter(theme);
|
|
8741
9205
|
return [
|
|
8742
9206
|
2
|
|
@@ -9135,7 +9599,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
9135
9599
|
// 标准流暂时仅支持 TEMPLATES 中的配置, 多余的的展示不生效(如电子放大是不支持的等等), 待版本更新才能支持
|
|
9136
9600
|
// prettier-ignore
|
|
9137
9601
|
_this._renderTheme(// hls 不支持自定义
|
|
9138
|
-
options.type === 'hls' ? hlsLiveTemplate : // flv mp4 支持自定义 themeData
|
|
9602
|
+
options.type === 'hls' || options.type === 'ezhls' ? hlsLiveTemplate : // flv mp4 支持自定义 themeData
|
|
9139
9603
|
[
|
|
9140
9604
|
'flv',
|
|
9141
9605
|
'mp4'
|
|
@@ -10332,6 +10796,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10332
10796
|
zh: zh,
|
|
10333
10797
|
en: en
|
|
10334
10798
|
};
|
|
10335
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.
|
|
10799
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.0.1-beta.3';
|
|
10336
10800
|
|
|
10337
10801
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|