@ezuikit/player-theme 3.1.5-beta.3 → 3.1.5-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.5-beta.3
3
- * Copyright (c) 2026-09-04 06:40:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.5-beta.4
3
+ * Copyright (c) 2026-09-15 13:35:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -20,8 +20,8 @@ var controlDatePicker = require('@ezuikit/control-date-picker');
20
20
  var controlTimeLine = require('@ezuikit/control-time-line');
21
21
  var SegmentProgress = require('@ezuikit/control-segment-progress');
22
22
 
23
- /**
24
- * 播放器的类名前缀
23
+ /**
24
+ * 播放器的类名前缀
25
25
  */ var PREFIX_CLASS = 'ezplayer';
26
26
  /** 填充模式 */ var THEME_SCALE_MODE_TYPE = {
27
27
  /** 画面完全填充canvas区域,画面会被拉伸 */ full: 0,
@@ -53,32 +53,32 @@ var THEME_PROPS = [
53
53
  // 播放区间(片段分享)。通过 props 下发而不是靠事件,避免主题异步渲染时错过初始化事件
54
54
  'playbackRange'
55
55
  ];
56
- /**
57
- * 当移动端 picker 控件打开时需要关闭动画(定时器)
56
+ /**
57
+ * 当移动端 picker 控件打开时需要关闭动画(定时器)
58
58
  */ var CLEAR_TIMER_HEADER_FOOTER_ANIMATION = 'CLEAR_TIMER_HEADER_FOOTER_ANIMATION';
59
- /**
60
- * 'rec', 'cloudRec', 'cloudRecord' 是一个组,并且要在头部(移动端特殊处理)
61
- *
62
- * | rec | cloudRec | cloudRecord |
63
- * |:---------------------:|:------------:|:---------------:|
64
- * | 本地回放(SDK存储回放) | 云存储回放 | 云录制回放 |
59
+ /**
60
+ * 'rec', 'cloudRec', 'cloudRecord' 是一个组,并且要在头部(移动端特殊处理)
61
+ *
62
+ * | rec | cloudRec | cloudRecord |
63
+ * |:---------------------:|:------------:|:---------------:|
64
+ * | 本地回放(SDK存储回放) | 云存储回放 | 云录制回放 |
65
65
  */ var REC_GROUP = [
66
66
  'rec',
67
67
  'cloudRec',
68
68
  'cloudRecord'
69
69
  ];
70
- /**
71
- * 设备信息
72
- *
73
- * | deviceID | deviceName |
74
- * |:-------------------:|:-------------:|
75
- * | 设备ID(唯一标识) | 设备名称 |
70
+ /**
71
+ * 设备信息
72
+ *
73
+ * | deviceID | deviceName |
74
+ * |:-------------------:|:-------------:|
75
+ * | 设备ID(唯一标识) | 设备名称 |
76
76
  */ var DEVICE_INFO_GROUP = [
77
77
  'deviceID',
78
78
  'deviceName'
79
79
  ];
80
- /**
81
- * 暂停时能禁用的控件按钮
80
+ /**
81
+ * 暂停时能禁用的控件按钮
82
82
  */ var PAUSE_DISABLED_BTN = [
83
83
  'capturePicture',
84
84
  'volume',
@@ -89,9 +89,9 @@ var THEME_PROPS = [
89
89
  'speed',
90
90
  'globalFullscreen'
91
91
  ];
92
- /**
93
- * 移动端可以扩展的控件
94
- * ['ptz', 'talk', 'record', 'capturePicture', 'timeLine', 'rec', 'date'];
92
+ /**
93
+ * 移动端可以扩展的控件
94
+ * ['ptz', 'talk', 'record', 'capturePicture', 'timeLine', 'rec', 'date'];
95
95
  */ var MOBILE_EXTENDS = [
96
96
  'ptz',
97
97
  'timeLine',
@@ -99,25 +99,25 @@ var THEME_PROPS = [
99
99
  'date',
100
100
  'segmentProgress'
101
101
  ];
102
- /**
103
- *
104
- * 事件名
105
- *
106
- * --------------- ------------------
107
- * - - theme.emit(EVENTS.xxxxx) - -
108
- * - - -------------------------------------> - -
109
- * - - - -
110
- * - Theme - - Controls -
111
- * - - control.emit(EVENTS.control.xxx) - -
112
- * - - <-------------------------------------- - -
113
- * --------------- ------------------
114
- *
115
- * @example
116
- * ```ts
117
- * theme.on(EVENTS.loading)
118
- * theme.on(EVENTS.loading)
119
- * ```
120
- *
102
+ /**
103
+ *
104
+ * 事件名
105
+ *
106
+ * --------------- ------------------
107
+ * - - theme.emit(EVENTS.xxxxx) - -
108
+ * - - -------------------------------------> - -
109
+ * - - - -
110
+ * - Theme - - Controls -
111
+ * - - control.emit(EVENTS.control.xxx) - -
112
+ * - - <-------------------------------------- - -
113
+ * --------------- ------------------
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * theme.on(EVENTS.loading)
118
+ * theme.on(EVENTS.loading)
119
+ * ```
120
+ *
121
121
  */ // 事件命名不要超过两层
122
122
  var EVENTS = {
123
123
  loading: 'loading',
@@ -132,11 +132,11 @@ var EVENTS = {
132
132
  /** 首帧 */ firstFrameDisplay: 'firstFrameDisplay',
133
133
  /** 全屏 */ fullscreen: 'fullscreen',
134
134
  /** 退出全屏 */ exitFullscreen: 'exitFullscreen',
135
- /**
136
- * 全屏变化(移动端也支持触发, 不过移动端是模拟的web全屏 即旋转 180度)
137
- * 当 isCurrentFullscreen 为 true 时,表示当前容器全局全屏状态
138
- *
139
- * 注意:同一个页面中只要有全屏的操作或取消全屏的操作,都会触发该事件 (移动端除外)
135
+ /**
136
+ * 全屏变化(移动端也支持触发, 不过移动端是模拟的web全屏 即旋转 180度)
137
+ * 当 isCurrentFullscreen 为 true 时,表示当前容器全局全屏状态
138
+ *
139
+ * 注意:同一个页面中只要有全屏的操作或取消全屏的操作,都会触发该事件 (移动端除外)
140
140
  */ fullscreenChange: 'fullscreenChange',
141
141
  /** 重置容器尺寸 */ resize: 'resize',
142
142
  /** 屏幕旋转方向变化 */ orientationChange: 'orientationChange',
@@ -163,8 +163,8 @@ var EVENTS = {
163
163
  setAllDayRecTimes: 'setAllDayRecTimes',
164
164
  getOSDTime: 'getOSDTime',
165
165
  /** 播放区间播放结束(SDK 层 playbackRange 特性) */ playbackEnd: 'playbackEnd',
166
- /**
167
- * 控件相关
166
+ /**
167
+ * 控件相关
168
168
  */ control: {
169
169
  /** 点击播放播放/暂停按钮 */ play: 'Control.play',
170
170
  /** 播放控件销毁 */ playDestroy: 'Control.playDestroy',
@@ -235,8 +235,8 @@ var EVENTS = {
235
235
  /** 播放器内容区域销毁 */ contentDestroy: 'Control.contentDestroy',
236
236
  /** 播放器内容区域重新渲染 */ contentRerender: 'Control.contentRerender'
237
237
  },
238
- /**
239
- * 主题控件相关
238
+ /**
239
+ * 主题控件相关
240
240
  */ theme: {
241
241
  /** 销毁前 */ beforeDestroy: 'Theme.beforeDestroy',
242
242
  /** 销毁后 */ destroyed: 'Theme.destroyed',
@@ -284,17 +284,17 @@ function _set_prototype_of$z(o, p) {
284
284
  };
285
285
  return _set_prototype_of$z(o, p);
286
286
  }
287
- /**
288
- * 控件基类
289
- * @category Control
290
- * @example
291
- * ```ts
292
- * // 创建控件
293
- * class MyControl extends Control {}
294
- *
295
- * // 使用控件
296
- * const myControl = new MyControl({})
297
- * ```
287
+ /**
288
+ * 控件基类
289
+ * @category Control
290
+ * @example
291
+ * ```ts
292
+ * // 创建控件
293
+ * class MyControl extends Control {}
294
+ *
295
+ * // 使用控件
296
+ * const myControl = new MyControl({})
297
+ * ```
298
298
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
299
299
  _inherits$z(Control, EventEmitter);
300
300
  function Control(options) {
@@ -336,22 +336,22 @@ function _set_prototype_of$z(o, p) {
336
336
  return _this;
337
337
  }
338
338
  var _proto = Control.prototype;
339
- /**
340
- * 重置整个控件
339
+ /**
340
+ * 重置整个控件
341
341
  */ _proto.reset = function reset(hide) {
342
342
  if (this._camelCaseName) {
343
343
  this.emit("Control." + this._camelCaseName + "Reset", hide);
344
344
  }
345
345
  };
346
- /**
347
- * 重置控件挂载节点
348
- * @param popupContainer 重新挂载的节点
349
- * @param append 添加的方式, 默认 append
350
- * @param element 当 append = before 时 需要 element, 插入 element 前
351
- *
352
- * | prepend | append |
353
- * |:-------------:|:---------------:|
354
- * | 插入第一个位置 | 追加在末尾 |
346
+ /**
347
+ * 重置控件挂载节点
348
+ * @param popupContainer 重新挂载的节点
349
+ * @param append 添加的方式, 默认 append
350
+ * @param element 当 append = before 时 需要 element, 插入 element 前
351
+ *
352
+ * | prepend | append |
353
+ * |:-------------:|:---------------:|
354
+ * | 插入第一个位置 | 追加在末尾 |
355
355
  */ _proto.resetPopupContainer = function resetPopupContainer(popupContainer, append, element) {
356
356
  if (popupContainer !== this.$popupContainer) {
357
357
  if (this.$popupContainer.contains(this.$container)) {
@@ -373,16 +373,16 @@ function _set_prototype_of$z(o, p) {
373
373
  }
374
374
  }
375
375
  };
376
- /**
377
- * 隐藏整个控件
376
+ /**
377
+ * 隐藏整个控件
378
378
  */ _proto.hide = function hide() {
379
379
  if (this.$container) {
380
380
  this.$container.style.display = 'none';
381
381
  this.$container.classList.add("" + PREFIX_CLASS + "-hide");
382
382
  }
383
383
  };
384
- /**
385
- * 销毁控件
384
+ /**
385
+ * 销毁控件
386
386
  */ _proto.destroy = function destroy() {
387
387
  var _this___options, _this_$container_remove, _this_$container;
388
388
  if (this._camelCaseName) {
@@ -419,8 +419,8 @@ function _set_prototype_of$z(o, p) {
419
419
  (_this_$container1 = this.$container) == null ? void 0 : _this_$container1.classList.remove("" + PREFIX_CLASS + "-active");
420
420
  }
421
421
  };
422
- /**
423
- * 当点击 Control 时 触发子类的 _onControlClick
422
+ /**
423
+ * 当点击 Control 时 触发子类的 _onControlClick
424
424
  */ _proto._onClick = function _onClick() {
425
425
  var _this = this;
426
426
  // 使用具名 handler 便于在 destroy 时精确移除,避免匿名监听残留
@@ -438,10 +438,10 @@ function _set_prototype_of$z(o, p) {
438
438
  e.stopPropagation();
439
439
  e.preventDefault();
440
440
  };
441
- /**
442
- * 点击 Control 控件触发
443
- * @param {Event} e
444
- * @returns {void}
441
+ /**
442
+ * 点击 Control 控件触发
443
+ * @param {Event} e
444
+ * @returns {void}
445
445
  */ _proto._onControlClick = function _onControlClick(e) {
446
446
  // 这是一个空函数, 子类可以实现重新改方法
447
447
  this.__options.onClick == null ? void 0 : this.__options.onClick.call(this.__options, e);
@@ -449,8 +449,8 @@ function _set_prototype_of$z(o, p) {
449
449
  _create_class$9(Control, [
450
450
  {
451
451
  key: "active",
452
- get: /**
453
- * 是否激活
452
+ get: /**
453
+ * 是否激活
454
454
  */ function get() {
455
455
  return this._active;
456
456
  },
@@ -465,8 +465,8 @@ function _set_prototype_of$z(o, p) {
465
465
  },
466
466
  {
467
467
  key: "disabled",
468
- get: /**
469
- * 是否禁用
468
+ get: /**
469
+ * 是否禁用
470
470
  */ function get() {
471
471
  return this._disabled;
472
472
  },
@@ -510,9 +510,9 @@ function _set_prototype_of$y(o, p) {
510
510
  return _set_prototype_of$y(o, p);
511
511
  }
512
512
  var LOADING_DEFAULT_OPTIONS = {};
513
- /**
514
- * 加载动画控件
515
- * @category Control
513
+ /**
514
+ * 加载动画控件
515
+ * @category Control
516
516
  */ var Loading = /*#__PURE__*/ function(Control) {
517
517
  _inherits$y(Loading, Control);
518
518
  function Loading(options) {
@@ -537,9 +537,9 @@ var LOADING_DEFAULT_OPTIONS = {};
537
537
  this.$container.innerHTML = '\n <span class="' + PREFIX_CLASS + "-loading-dot " + PREFIX_CLASS + '-loading-dot-load">\n <i class="' + PREFIX_CLASS + '-loading-dot-item"></i>\n <i class="' + PREFIX_CLASS + '-loading-dot-item"></i>\n <i class="' + PREFIX_CLASS + '-loading-dot-item"></i>\n <i class="' + PREFIX_CLASS + '-loading-dot-item"></i>\n </span>\n <div class="' + PREFIX_CLASS + '-loading-text">' + (((_this_locale = this.locale) == null ? void 0 : _this_locale.LOADING) || 'loading...') + "</div>\n ";
538
538
  }
539
539
  };
540
- /**
541
- * 动画展示
542
- * @param html 自定义动画内容, 如果不存在则使用默认动画
540
+ /**
541
+ * 动画展示
542
+ * @param html 自定义动画内容, 如果不存在则使用默认动画
543
543
  */ _proto.show = function show(html) {
544
544
  if (html) this.$container.innerHTML = html;
545
545
  // 初始化, 出流再等待中(回放出流结束不包括)
@@ -547,8 +547,8 @@ var LOADING_DEFAULT_OPTIONS = {};
547
547
  this.$container.classList.remove("" + PREFIX_CLASS + "-hide");
548
548
  this.$popupContainer.classList.add("" + PREFIX_CLASS + "-has-loading");
549
549
  };
550
- /**
551
- * 隐藏动画
550
+ /**
551
+ * 隐藏动画
552
552
  */ _proto.hide = function hide() {
553
553
  Control.prototype.hide.call(this);
554
554
  this.$popupContainer.classList.remove("" + PREFIX_CLASS + "-has-loading");
@@ -592,9 +592,9 @@ var DEFAULT_POSTER = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29
592
592
  var POSTER_OPTIONS = {
593
593
  poster: DEFAULT_POSTER
594
594
  };
595
- /**
596
- * 封面控件
597
- * @category Control
595
+ /**
596
+ * 封面控件
597
+ * @category Control
598
598
  */ var Poster = /*#__PURE__*/ function(Control) {
599
599
  _inherits$x(Poster, Control);
600
600
  function Poster(options) {
@@ -614,18 +614,18 @@ var POSTER_OPTIONS = {
614
614
  return _this;
615
615
  }
616
616
  var _proto = Poster.prototype;
617
- /**
618
- * 封面图片加载失败
619
- * @param error
617
+ /**
618
+ * 封面图片加载失败
619
+ * @param error
620
620
  */ _proto._imgLoadErrorEvent = function _imgLoadErrorEvent(error) {
621
621
  var _error_target;
622
622
  // 封面加载失败, 一般只有自定义封面会出现这种情况
623
623
  // 这里不做img src重置处理 防止无限循环
624
624
  this._options.onLoadImgError == null ? void 0 : this._options.onLoadImgError.call(this._options, ((_error_target = error.target) == null ? void 0 : _error_target.getAttribute('src')) || '');
625
625
  };
626
- /**
627
- * 设置封面 这里不对 poster 进行缓存,如果有值优先使用,如果没有值优先使用 初始化传入的值
628
- * @param {string} poster 封面地址或 base64 数据
626
+ /**
627
+ * 设置封面 这里不对 poster 进行缓存,如果有值优先使用,如果没有值优先使用 初始化传入的值
628
+ * @param {string} poster 封面地址或 base64 数据
629
629
  */ _proto.setPoster = function setPoster(poster) {
630
630
  var // eslint-disable-next-line @typescript-eslint/unbound-method
631
631
  // prettier-ignore
@@ -638,24 +638,24 @@ var POSTER_OPTIONS = {
638
638
  this.$container.innerHTML = '<img class="' + PREFIX_CLASS + '-poster-img" src="' + poster + '" />';
639
639
  (_this_$container_querySelector = this.$container.querySelector("." + PREFIX_CLASS + "-poster-img")) == null ? void 0 : _this_$container_querySelector.addEventListener("error", this._imgLoadErrorEvent);
640
640
  };
641
- /**
642
- * 展示封面 这里不对 poster 进行缓存, 如果有值优先使用, 如果没有值优先使用 初始化传入的值
641
+ /**
642
+ * 展示封面 这里不对 poster 进行缓存, 如果有值优先使用, 如果没有值优先使用 初始化传入的值
643
643
  */ _proto.show = function show() {
644
644
  if (this.$container) {
645
645
  this.$container.style.display = 'flex';
646
646
  this.$container.classList.remove("" + PREFIX_CLASS + "-hide");
647
647
  }
648
648
  };
649
- /**
650
- * 隐藏封面
649
+ /**
650
+ * 隐藏封面
651
651
  */ _proto.hide = function hide() {
652
652
  var // eslint-disable-next-line @typescript-eslint/unbound-method
653
653
  _this_$container_querySelector, _this_$container;
654
654
  Control.prototype.hide.call(this);
655
655
  (_this_$container = this.$container) == null ? void 0 : (_this_$container_querySelector = _this_$container.querySelector("." + PREFIX_CLASS + "-poster-img")) == null ? void 0 : _this_$container_querySelector.removeEventListener('error', this._imgLoadErrorEvent);
656
656
  };
657
- /**
658
- * 销毁
657
+ /**
658
+ * 销毁
659
659
  */ _proto.destroy = function destroy() {
660
660
  this.hide();
661
661
  Control.prototype.destroy.call(this);
@@ -714,15 +714,15 @@ var Icons = {
714
714
  list: '<svg stroke="currentColor" fill="none" width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="list">\n <path d="M10.9995 5H21.0005" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M10.9995 12H21.0005" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M10.9995 19H21.0005" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99951 5C6.99951 3.896 6.10351 3 4.99951 3C3.89551 3 2.99951 3.896 2.99951 5C2.99951 6.105 3.89551 7 4.99951 7C6.10351 7 6.99951 6.105 6.99951 5V5Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99951 12C6.99951 10.896 6.10351 10 4.99951 10C3.89551 10 2.99951 10.896 2.99951 12C2.99951 13.105 3.89551 14 4.99951 14C6.10351 14 6.99951 13.105 6.99951 12V12Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99951 12C6.99951 10.896 6.10351 10 4.99951 10C3.89551 10 2.99951 10.896 2.99951 12C2.99951 13.105 3.89551 14 4.99951 14C6.10351 14 6.99951 13.105 6.99951 12V12Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M6.99951 19C6.99951 17.896 6.10351 17 4.99951 17C3.89551 17 2.99951 17.896 2.99951 19C2.99951 20.105 3.89551 21 4.99951 21C6.10351 21 6.99951 20.105 6.99951 19V19Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'
715
715
  };
716
716
 
717
- /**
718
- * 创建 icon 组件
719
- * @param svg - svg 字符串
720
- * @param type - icon 类型
721
- * @returns icon 组件
722
- * @example
723
- * ```ts
724
- * createIcon('<svg>....</svg>', 'logo') // <span class="ezplayer-icon ezplayer-icon-logo"><svg>....</svg></span>
725
- * ```
717
+ /**
718
+ * 创建 icon 组件
719
+ * @param svg - svg 字符串
720
+ * @param type - icon 类型
721
+ * @returns icon 组件
722
+ * @example
723
+ * ```ts
724
+ * createIcon('<svg>....</svg>', 'logo') // <span class="ezplayer-icon ezplayer-icon-logo"><svg>....</svg></span>
725
+ * ```
726
726
  */ function createIcon(svg, type, attr) {
727
727
  if (attr === void 0) attr = {};
728
728
  var attrStr = '';
@@ -923,9 +923,9 @@ function _set_prototype_of$w(o, p) {
923
923
  return _set_prototype_of$w(o, p);
924
924
  }
925
925
  var MESSAGE_DEFAULT_OPTIONS = {};
926
- /**
927
- * 消息控件
928
- * @category Control
926
+ /**
927
+ * 消息控件
928
+ * @category Control
929
929
  */ var Message = /*#__PURE__*/ function(Control) {
930
930
  _inherits$w(Message, Control);
931
931
  function Message(options) {
@@ -940,34 +940,34 @@ var MESSAGE_DEFAULT_OPTIONS = {};
940
940
  return _this;
941
941
  }
942
942
  var _proto = Message.prototype;
943
- /**
944
- * info 普通消息, 内容默认字体白色
945
- * @param {string} msg 消息内容
946
- * @param {number} duration 认自动关闭延时,单位秒, 默认 2s后 关闭, 需手动 调用 hide()
943
+ /**
944
+ * info 普通消息, 内容默认字体白色
945
+ * @param {string} msg 消息内容
946
+ * @param {number} duration 认自动关闭延时,单位秒, 默认 2s后 关闭, 需手动 调用 hide()
947
947
  */ _proto.info = function info(msg, duration) {
948
948
  if (duration === void 0) duration = 2;
949
949
  this._toast(msg, 'info', duration);
950
950
  };
951
- /**
952
- * warn 警告消息, 内容默认字体黄色
953
- * @param {string} msg 消息内容
954
- * @param {number} duration 认自动关闭延时,单位秒, 默认 2s后 关闭, 需手动 调用 hide()
951
+ /**
952
+ * warn 警告消息, 内容默认字体黄色
953
+ * @param {string} msg 消息内容
954
+ * @param {number} duration 认自动关闭延时,单位秒, 默认 2s后 关闭, 需手动 调用 hide()
955
955
  */ _proto.warn = function warn(msg, duration) {
956
956
  if (duration === void 0) duration = 2;
957
957
  this._toast(msg, 'warn', duration);
958
958
  };
959
- /**
960
- * toast 错误消息(渲染在 rootContainer 上的浮层)
961
- * @param {string} msg 消息内容
962
- * @param {number} duration 自动关闭延时,单位秒, 默认 2s 后关闭
959
+ /**
960
+ * toast 错误消息(渲染在 rootContainer 上的浮层)
961
+ * @param {string} msg 消息内容
962
+ * @param {number} duration 自动关闭延时,单位秒, 默认 2s 后关闭
963
963
  */ _proto.toastError = function toastError(msg, duration) {
964
964
  if (duration === void 0) duration = 2;
965
965
  this._toast(msg, 'error', duration);
966
966
  };
967
- /**
968
- * error 错误消息, 内容默认字体红色
969
- * @param {string} msg 消息内容
970
- * @param {number=} duration 认自动关闭延时,单位秒, 默认 0 不关闭, 需手动 调用 hide()
967
+ /**
968
+ * error 错误消息, 内容默认字体红色
969
+ * @param {string} msg 消息内容
970
+ * @param {number=} duration 认自动关闭延时,单位秒, 默认 0 不关闭, 需手动 调用 hide()
971
971
  */ _proto.error = function error(msg, duration) {
972
972
  if (duration === void 0) duration = 0;
973
973
  this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS + '-message-msg">' + (msg || '') + "</div>", duration, 'error');
@@ -996,11 +996,11 @@ var MESSAGE_DEFAULT_OPTIONS = {};
996
996
  }
997
997
  }
998
998
  };
999
- /**
1000
- * 展示消息,如果同时调用多次只展示最后一次的消息
1001
- * @param {string} msg 消息内容, 支持 html dom 字符串
1002
- * @param {number} duration 认自动关闭延时,单位秒, 默认 0 不关闭 需手动 调用 hide()
1003
- * @param {MessageType} type 消息类型
999
+ /**
1000
+ * 展示消息,如果同时调用多次只展示最后一次的消息
1001
+ * @param {string} msg 消息内容, 支持 html dom 字符串
1002
+ * @param {number} duration 认自动关闭延时,单位秒, 默认 0 不关闭 需手动 调用 hide()
1003
+ * @param {MessageType} type 消息类型
1004
1004
  */ _proto._show = function _show(msg, duration, type) {
1005
1005
  var _this = this;
1006
1006
  if (duration === void 0) duration = 0;
@@ -1028,8 +1028,8 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1028
1028
  }, duration * 1000);
1029
1029
  }
1030
1030
  };
1031
- /**
1032
- * 销毁
1031
+ /**
1032
+ * 销毁
1033
1033
  */ _proto.destroy = function destroy() {
1034
1034
  var _this__$toast;
1035
1035
  if (this._timer) {
@@ -1044,8 +1044,8 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1044
1044
  this.hide();
1045
1045
  Control.prototype.destroy.call(this);
1046
1046
  };
1047
- /**
1048
- * 隐藏消息, 并清空消息内容
1047
+ /**
1048
+ * 隐藏消息, 并清空消息内容
1049
1049
  */ _proto.hide = function hide() {
1050
1050
  var _this = this;
1051
1051
  // 每次隐藏都清空内 消息内容
@@ -1118,9 +1118,9 @@ function _set_prototype_of$v(o, p) {
1118
1118
  };
1119
1119
  return _set_prototype_of$v(o, p);
1120
1120
  }
1121
- /**
1122
- * 播放/暂停控件
1123
- * @category Control
1121
+ /**
1122
+ * 播放/暂停控件
1123
+ * @category Control
1124
1124
  */ var Play = /*#__PURE__*/ function(Control) {
1125
1125
  _inherits$v(Play, Control);
1126
1126
  function Play(options) {
@@ -1142,8 +1142,8 @@ function _set_prototype_of$v(o, p) {
1142
1142
  return _this;
1143
1143
  }
1144
1144
  var _proto = Play.prototype;
1145
- /**
1146
- * 点击 Control 会触发
1145
+ /**
1146
+ * 点击 Control 会触发
1147
1147
  */ _proto._onControlClick = function _onControlClick(e) {
1148
1148
  this._playing = !this._playing;
1149
1149
  this.emit(EVENTS.control.play, this._playing);
@@ -1166,8 +1166,8 @@ function _set_prototype_of$v(o, p) {
1166
1166
  _create_class$8(Play, [
1167
1167
  {
1168
1168
  key: "playing",
1169
- get: /**
1170
- * 播放状态
1169
+ get: /**
1170
+ * 播放状态
1171
1171
  */ function get() {
1172
1172
  return this._playing;
1173
1173
  }
@@ -1176,12 +1176,12 @@ function _set_prototype_of$v(o, p) {
1176
1176
  return Play;
1177
1177
  }(Control);
1178
1178
 
1179
- /**
1180
- * 节流函数
1181
- * @param {Function} func
1182
- * @param {number} wait
1183
- * @typeParam T - 函数类型
1184
- * @returns {Function}
1179
+ /**
1180
+ * 节流函数
1181
+ * @param {Function} func
1182
+ * @param {number} wait
1183
+ * @typeParam T - 函数类型
1184
+ * @returns {Function}
1185
1185
  */ // eslint-disable-next-line @typescript-eslint/ban-types
1186
1186
  function throttle(func, wait) {
1187
1187
  var timeout = null;
@@ -1237,28 +1237,28 @@ function _unsupported_iterable_to_array$2(o, minLen) {
1237
1237
  if (n === "Map" || n === "Set") return Array.from(n);
1238
1238
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
1239
1239
  }
1240
- /**
1241
- * 工具类
1242
- * @category Util
1240
+ /**
1241
+ * 工具类
1242
+ * @category Util
1243
1243
  */ var Utils = /*#__PURE__*/ function() {
1244
1244
  function Utils() {}
1245
1245
  // /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(navigator?.userAgent) ||
1246
1246
  // (/Macintosh/i.test(navigator?.userAgent) && navigator?.maxTouchPoints > 1); // iPad 支持多点触控;
1247
- /**
1248
- * 监听手机旋转, 参考 {@link https://developer.mozilla.org/zh-CN/docs/Web/API/Screen/orientation}
1249
- * @param {OrientationChangeCallback} change 手机旋转回调
1250
- * @returns {[ScreenOrientation, CleanUpScreenOrientationFun]} [第一次的结果, 事件移除]
1251
- *
1252
- * @example
1253
- * ```ts
1254
- * const [orientation, cleanUp] = Utils.orientationEventListener((orientation) => {
1255
- * console.log("orientation", orientation)
1256
- * })
1257
- *
1258
- * console.log("orientation", orientation)
1259
- * // 清除监听
1260
- * cleanUp()
1261
- * ```
1247
+ /**
1248
+ * 监听手机旋转, 参考 {@link https://developer.mozilla.org/zh-CN/docs/Web/API/Screen/orientation}
1249
+ * @param {OrientationChangeCallback} change 手机旋转回调
1250
+ * @returns {[ScreenOrientation, CleanUpScreenOrientationFun]} [第一次的结果, 事件移除]
1251
+ *
1252
+ * @example
1253
+ * ```ts
1254
+ * const [orientation, cleanUp] = Utils.orientationEventListener((orientation) => {
1255
+ * console.log("orientation", orientation)
1256
+ * })
1257
+ *
1258
+ * console.log("orientation", orientation)
1259
+ * // 清除监听
1260
+ * cleanUp()
1261
+ * ```
1262
1262
  */ // prettier-ignore
1263
1263
  Utils.orientationEventListener = function orientationEventListener(change) {
1264
1264
  var _orientationTimer = null;
@@ -1348,18 +1348,18 @@ function _unsupported_iterable_to_array$2(o, minLen) {
1348
1348
  }
1349
1349
  ];
1350
1350
  };
1351
- /**
1352
- * 监听节点尺寸变化, 参考 {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver}
1353
- * @param {Element} node
1354
- * @param callback
1355
- * @returns {CleanUpResizeObserver}
1356
- * @example
1357
- * ```ts
1358
- * const [unobserve, disconnect] = Utils.resizeObserver(node, (entries, observer) => {});
1359
- *
1360
- * // 移除监听
1361
- * unobserve()
1362
- * ```
1351
+ /**
1352
+ * 监听节点尺寸变化, 参考 {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver}
1353
+ * @param {Element} node
1354
+ * @param callback
1355
+ * @returns {CleanUpResizeObserver}
1356
+ * @example
1357
+ * ```ts
1358
+ * const [unobserve, disconnect] = Utils.resizeObserver(node, (entries, observer) => {});
1359
+ *
1360
+ * // 移除监听
1361
+ * unobserve()
1362
+ * ```
1363
1363
  */ // prettier-ignore
1364
1364
  Utils.resizeObserver = function resizeObserver(node, callback) {
1365
1365
  // prettier-ignore
@@ -1394,12 +1394,12 @@ function _unsupported_iterable_to_array$2(o, minLen) {
1394
1394
  return Utils;
1395
1395
  }();
1396
1396
  // 不要使用 window, 如果在 worker 中会报错
1397
- /**
1398
- * 判断是否是移动端, (iPadOS 13+ 移除了 "iPad" 标识)
1399
- * @example
1400
- * ```ts
1401
- * Utils.isMobile // true | false
1402
- * ```
1397
+ /**
1398
+ * 判断是否是移动端, (iPadOS 13+ 移除了 "iPad" 标识)
1399
+ * @example
1400
+ * ```ts
1401
+ * Utils.isMobile // true | false
1402
+ * ```
1403
1403
  */ Utils.isMobile = utilsTools.isMobile();
1404
1404
 
1405
1405
  function _defineProperties$7(target, props) {
@@ -1433,23 +1433,23 @@ var PROGRESS_DEFAULT_OPTIONS = {
1433
1433
  return (percent * 100).toFixed(0);
1434
1434
  }
1435
1435
  };
1436
- /**
1437
- * 进度条
1438
- *
1439
- * @category Control
1440
- * @example
1441
- * ```ts
1442
- * const progress = new Progress({
1443
- * container: document.getElementById('progress-container'),
1444
- * step: 0.01,
1445
- * range: [0, 1],
1446
- * onChange: (value, range) => {
1447
- * console.log(`Progress changed: ${value}, Range: ${range}`);
1448
- * },
1449
- * defaultValue: 0.5,
1450
- * draggable: true,
1451
- * disabled: false,
1452
- * })
1436
+ /**
1437
+ * 进度条
1438
+ *
1439
+ * @category Control
1440
+ * @example
1441
+ * ```ts
1442
+ * const progress = new Progress({
1443
+ * container: document.getElementById('progress-container'),
1444
+ * step: 0.01,
1445
+ * range: [0, 1],
1446
+ * onChange: (value, range) => {
1447
+ * console.log(`Progress changed: ${value}, Range: ${range}`);
1448
+ * },
1449
+ * defaultValue: 0.5,
1450
+ * draggable: true,
1451
+ * disabled: false,
1452
+ * })
1453
1453
  */ var Progress = /*#__PURE__*/ function() {
1454
1454
  function Progress(options) {
1455
1455
  var _this_options_defaultValue;
@@ -1482,20 +1482,20 @@ var PROGRESS_DEFAULT_OPTIONS = {
1482
1482
  this.disabled = this.options.disabled;
1483
1483
  }
1484
1484
  var _proto = Progress.prototype;
1485
- /**
1486
- * 是否旋转了
1487
- * @param rotated
1485
+ /**
1486
+ * 是否旋转了
1487
+ * @param rotated
1488
1488
  */ _proto.isRotate = function isRotate(rotated) {
1489
1489
  this._isRotated = rotated;
1490
1490
  };
1491
- /**
1492
- * 销毁 Progress 实例,移除事件监听器
1493
- * @returns {void}
1494
- * @memberof Progress
1495
- * @example
1496
- * ```ts
1497
- * progress.destroy();
1498
- * ```
1491
+ /**
1492
+ * 销毁 Progress 实例,移除事件监听器
1493
+ * @returns {void}
1494
+ * @memberof Progress
1495
+ * @example
1496
+ * ```ts
1497
+ * progress.destroy();
1498
+ * ```
1499
1499
  */ _proto.destroy = function destroy() {
1500
1500
  var _this__delegateSliderMouseDown_destroy, _this__delegateSliderMouseDown, _this__delegateSliderHandleMouseDown_destroy, _this__delegateSliderHandleMouseDown, _this__delegateProgressMouseDown_destroy, _this__delegateProgressMouseDown, _this__delegatePlusClick_destroy, _this__delegatePlusClick, _this__delegateMinusClick_destroy, _this__delegateMinusClick;
1501
1501
  (_this__delegateSliderMouseDown = this._delegateSliderMouseDown) == null ? void 0 : (_this__delegateSliderMouseDown_destroy = _this__delegateSliderMouseDown.destroy) == null ? void 0 : _this__delegateSliderMouseDown_destroy.call(_this__delegateSliderMouseDown);
@@ -1690,14 +1690,14 @@ var PROGRESS_DEFAULT_OPTIONS = {
1690
1690
  },
1691
1691
  {
1692
1692
  key: "value",
1693
- get: /**
1694
- * 获取进度条值
1695
- * @returns {number} 当前进度条值
1696
- * @example
1697
- * ```ts
1698
- * const value = progress.value; // 获取当前进度条值
1699
- * console.log(value); // 输出值
1700
- * ```
1693
+ get: /**
1694
+ * 获取进度条值
1695
+ * @returns {number} 当前进度条值
1696
+ * @example
1697
+ * ```ts
1698
+ * const value = progress.value; // 获取当前进度条值
1699
+ * console.log(value); // 输出值
1700
+ * ```
1701
1701
  */ function get() {
1702
1702
  return this._value; //
1703
1703
  },
@@ -1707,14 +1707,14 @@ var PROGRESS_DEFAULT_OPTIONS = {
1707
1707
  },
1708
1708
  {
1709
1709
  key: "percent",
1710
- get: /**
1711
- * 获取进度百分比
1712
- * @returns {number} 当前进度条百分比
1713
- * @example
1714
- * ```ts
1715
- * const percent = progress.percent; // 获取当前进度条百分比
1716
- * console.log(percent); // 输出百分比
1717
- * ```
1710
+ get: /**
1711
+ * 获取进度百分比
1712
+ * @returns {number} 当前进度条百分比
1713
+ * @example
1714
+ * ```ts
1715
+ * const percent = progress.percent; // 获取当前进度条百分比
1716
+ * console.log(percent); // 输出百分比
1717
+ * ```
1718
1718
  */ function get() {
1719
1719
  return this._percent;
1720
1720
  },
@@ -1777,9 +1777,9 @@ var VOLUME_DEFAULT_OPTIONS = {
1777
1777
  onOpenChange: function onOpenChange() {},
1778
1778
  onChange: function onChange() {}
1779
1779
  };
1780
- /**
1781
- * 音量调节控件
1782
- * @category Control
1780
+ /**
1781
+ * 音量调节控件
1782
+ * @category Control
1783
1783
  */ var Volume = /*#__PURE__*/ function(Control) {
1784
1784
  _inherits$u(Volume, Control);
1785
1785
  function Volume(options) {
@@ -1853,8 +1853,8 @@ var VOLUME_DEFAULT_OPTIONS = {
1853
1853
  return _this;
1854
1854
  }
1855
1855
  var _proto = Volume.prototype;
1856
- /**
1857
- * 销毁
1856
+ /**
1857
+ * 销毁
1858
1858
  */ _proto.destroy = function destroy() {
1859
1859
  var _this__progress_destroy, _this__progress, _this_picker;
1860
1860
  (_this__progress = this._progress) == null ? void 0 : (_this__progress_destroy = _this__progress.destroy) == null ? void 0 : _this__progress_destroy.call(_this__progress);
@@ -1912,8 +1912,8 @@ var VOLUME_DEFAULT_OPTIONS = {
1912
1912
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_VOLUME
1913
1913
  });
1914
1914
  };
1915
- /**
1916
- * 点击 Control 会触发
1915
+ /**
1916
+ * 点击 Control 会触发
1917
1917
  */ _proto._onControlClick = function _onControlClick() {
1918
1918
  // this._options.onClick?.(e);
1919
1919
  };
@@ -1930,8 +1930,8 @@ var VOLUME_DEFAULT_OPTIONS = {
1930
1930
  _create_class$6(Volume, [
1931
1931
  {
1932
1932
  key: "muted",
1933
- get: /**
1934
- * 是否静音
1933
+ get: /**
1934
+ * 是否静音
1935
1935
  */ function get() {
1936
1936
  return this._muted;
1937
1937
  },
@@ -1955,8 +1955,8 @@ var VOLUME_DEFAULT_OPTIONS = {
1955
1955
  },
1956
1956
  {
1957
1957
  key: "volume",
1958
- get: /**
1959
- * 当前音量值(真实值 即使静音)
1958
+ get: /**
1959
+ * 当前音量值(真实值 即使静音)
1960
1960
  */ function get() {
1961
1961
  return this._lastVolume;
1962
1962
  },
@@ -1979,8 +1979,8 @@ var VOLUME_DEFAULT_OPTIONS = {
1979
1979
  },
1980
1980
  {
1981
1981
  key: "disabled",
1982
- get: /**
1983
- * 是否禁用
1982
+ get: /**
1983
+ * 是否禁用
1984
1984
  */ function get() {
1985
1985
  return this._disabled;
1986
1986
  },
@@ -2480,9 +2480,9 @@ function _set_prototype_of$t(o, p) {
2480
2480
  };
2481
2481
  return _set_prototype_of$t(o, p);
2482
2482
  }
2483
- /**
2484
- * 全屏控件
2485
- * @category Control
2483
+ /**
2484
+ * 全屏控件
2485
+ * @category Control
2486
2486
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
2487
2487
  _inherits$t(Fullscreen, Control);
2488
2488
  function Fullscreen(options) {
@@ -2509,8 +2509,8 @@ function _set_prototype_of$t(o, p) {
2509
2509
  return _this;
2510
2510
  }
2511
2511
  var _proto = Fullscreen.prototype;
2512
- /**
2513
- * 销毁
2512
+ /**
2513
+ * 销毁
2514
2514
  */ _proto.destroy = function destroy() {
2515
2515
  var _this__fullscreenUtil;
2516
2516
  this.$container.innerHTML = '';
@@ -2538,8 +2538,8 @@ function _set_prototype_of$t(o, p) {
2538
2538
  this._render();
2539
2539
  this.options.onChange == null ? void 0 : this.options.onChange.call(this.options, info);
2540
2540
  };
2541
- /**
2542
- * 点击 Control 会触发
2541
+ /**
2542
+ * 点击 Control 会触发
2543
2543
  */ _proto._onControlClick = function _onControlClick() {
2544
2544
  if (this.isCurrentFullscreen) {
2545
2545
  var _this__fullscreenUtil;
@@ -2583,9 +2583,9 @@ function _set_prototype_of$s(o, p) {
2583
2583
  };
2584
2584
  return _set_prototype_of$s(o, p);
2585
2585
  }
2586
- /**
2587
- * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2588
- * @category Control
2586
+ /**
2587
+ * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2588
+ * @category Control
2589
2589
  */ var Rec = /*#__PURE__*/ function(Control) {
2590
2590
  _inherits$s(Rec, Control);
2591
2591
  function Rec(options) {
@@ -2604,8 +2604,8 @@ function _set_prototype_of$s(o, p) {
2604
2604
  return _this;
2605
2605
  }
2606
2606
  var _proto = Rec.prototype;
2607
- /**
2608
- * 销毁
2607
+ /**
2608
+ * 销毁
2609
2609
  */ _proto.destroy = function destroy() {
2610
2610
  var _this__delegation;
2611
2611
  this.$container.removeEventListener('dblclick', this._onDBlClick);
@@ -2613,9 +2613,9 @@ function _set_prototype_of$s(o, p) {
2613
2613
  this._delegation = null;
2614
2614
  Control.prototype.destroy.call(this);
2615
2615
  };
2616
- /**
2617
- * 添加回放类型图标
2618
- * @param {string} id 回放类型 'rec' | 'cloudRec' | 'cloudRecord'
2616
+ /**
2617
+ * 添加回放类型图标
2618
+ * @param {string} id 回放类型 'rec' | 'cloudRec' | 'cloudRecord'
2619
2619
  */ _proto.addRecType = function addRecType(id) {
2620
2620
  var spanIcon = '';
2621
2621
  switch(id){
@@ -2682,8 +2682,8 @@ function _set_prototype_of$s(o, p) {
2682
2682
  }
2683
2683
  });
2684
2684
  };
2685
- /**
2686
- * 点击 Control 会触发
2685
+ /**
2686
+ * 点击 Control 会触发
2687
2687
  */ _proto._onControlClick = function _onControlClick(e) {};
2688
2688
  return Rec;
2689
2689
  }(Control);
@@ -3367,8 +3367,8 @@ var en = {
3367
3367
  }
3368
3368
  };
3369
3369
 
3370
- /**
3371
- * flv 预览
3370
+ /**
3371
+ * flv 预览
3372
3372
  */ var hlsLiveTemplate = {
3373
3373
  autoFocus: 3,
3374
3374
  // poster:
@@ -3420,8 +3420,8 @@ var en = {
3420
3420
  }
3421
3421
  };
3422
3422
 
3423
- /**
3424
- * flv 预览
3423
+ /**
3424
+ * flv 预览
3425
3425
  */ var hlsRecTemplate = {
3426
3426
  autoFocus: 3,
3427
3427
  // poster:
@@ -3479,8 +3479,8 @@ var en = {
3479
3479
  }
3480
3480
  };
3481
3481
 
3482
- /**
3483
- * pc 预览
3482
+ /**
3483
+ * pc 预览
3484
3484
  */ var pcLive = {
3485
3485
  autoFocus: 3,
3486
3486
  header: {
@@ -3579,8 +3579,8 @@ var en = {
3579
3579
  }
3580
3580
  };
3581
3581
 
3582
- /**
3583
- * pc 回放
3582
+ /**
3583
+ * pc 回放
3584
3584
  */ var pcRec = {
3585
3585
  header: {
3586
3586
  // color: DEFAULT_COLOR,
@@ -3691,8 +3691,8 @@ var en = {
3691
3691
  }
3692
3692
  };
3693
3693
 
3694
- /**
3695
- * mobile 预览
3694
+ /**
3695
+ * mobile 预览
3696
3696
  */ var mobileLive = {
3697
3697
  header: {
3698
3698
  // color: DEFAULT_COLOR,
@@ -3780,8 +3780,8 @@ var en = {
3780
3780
  }
3781
3781
  };
3782
3782
 
3783
- /**
3784
- * mobile 回放
3783
+ /**
3784
+ * mobile 回放
3785
3785
  */ var mobileRec = {
3786
3786
  header: {
3787
3787
  // color: DEFAULT_COLOR,
@@ -3875,8 +3875,8 @@ var en = {
3875
3875
  }
3876
3876
  };
3877
3877
 
3878
- /**
3879
- * 安防版(预览/回放)
3878
+ /**
3879
+ * 安防版(预览/回放)
3880
3880
  */ var security = {
3881
3881
  header: {
3882
3882
  // color: DEFAULT_COLOR,
@@ -3952,8 +3952,8 @@ var en = {
3952
3952
  }
3953
3953
  };
3954
3954
 
3955
- /**
3956
- * 语音版(预览)
3955
+ /**
3956
+ * 语音版(预览)
3957
3957
  */ var voice = {
3958
3958
  header: {
3959
3959
  // color: DEFAULT_COLOR,
@@ -4005,11 +4005,11 @@ var en = {
4005
4005
  }
4006
4006
  };
4007
4007
 
4008
- /**
4009
- * standard 做特殊处理
4010
- *
4011
- * WARN: 除了 'deviceID', 'deviceName', 'rec', 'cloudRec', 'cloudRecord' 做特殊处理, 只能放置在顶部, 其它不做处理,如果配置渲染的有问题需要开发者自行修改
4012
- * FIXME: 暂时不去重, 让开发者自己去修改
4008
+ /**
4009
+ * standard 做特殊处理
4010
+ *
4011
+ * WARN: 除了 'deviceID', 'deviceName', 'rec', 'cloudRec', 'cloudRecord' 做特殊处理, 只能放置在顶部, 其它不做处理,如果配置渲染的有问题需要开发者自行修改
4012
+ * FIXME: 暂时不去重, 让开发者自己去修改
4013
4013
  */ var TEMPLATES = {
4014
4014
  pcLive: pcLive,
4015
4015
  pcRec: pcRec,
@@ -4039,9 +4039,9 @@ function _set_prototype_of$r(o, p) {
4039
4039
  };
4040
4040
  return _set_prototype_of$r(o, p);
4041
4041
  }
4042
- /**
4043
- * 截图控件
4044
- * @category Content
4042
+ /**
4043
+ * 截图控件
4044
+ * @category Content
4045
4045
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
4046
4046
  _inherits$r(Content, EventEmitter);
4047
4047
  function Content(options) {
@@ -4071,11 +4071,11 @@ function _set_prototype_of$r(o, p) {
4071
4071
  return _this;
4072
4072
  }
4073
4073
  var _proto = Content.prototype;
4074
- /**
4075
- * 重新画面区域
4076
- * @param {number} originWidth 画面宽度
4077
- * @param {number} originHeight 画面高度
4078
- * @returns {void}
4074
+ /**
4075
+ * 重新画面区域
4076
+ * @param {number} originWidth 画面宽度
4077
+ * @param {number} originHeight 画面高度
4078
+ * @returns {void}
4079
4079
  */ _proto.rerender = function rerender(originWidth, originHeight) {
4080
4080
  if (originWidth === void 0) originWidth = 0;
4081
4081
  if (originHeight === void 0) originHeight = 0;
@@ -4188,9 +4188,9 @@ function _set_prototype_of$q(o, p) {
4188
4188
  };
4189
4189
  return _set_prototype_of$q(o, p);
4190
4190
  }
4191
- /**
4192
- * 更多控件
4193
- * @category Control
4191
+ /**
4192
+ * 更多控件
4193
+ * @category Control
4194
4194
  */ var More = /*#__PURE__*/ function(Control) {
4195
4195
  _inherits$q(More, Control);
4196
4196
  function More(options) {
@@ -4236,9 +4236,9 @@ function _set_prototype_of$q(o, p) {
4236
4236
  }
4237
4237
  // debug
4238
4238
  };
4239
- /**
4240
- * 添加
4241
- * @param control
4239
+ /**
4240
+ * 添加
4241
+ * @param control
4242
4242
  */ _proto.add = function add(key, part, control, props) {
4243
4243
  this.list.unshift({
4244
4244
  part: part,
@@ -4248,9 +4248,9 @@ function _set_prototype_of$q(o, p) {
4248
4248
  height: props.height
4249
4249
  });
4250
4250
  };
4251
- /**
4252
- * 移除
4253
- * @param control
4251
+ /**
4252
+ * 移除
4253
+ * @param control
4254
4254
  */ _proto.remove = function remove(control) {
4255
4255
  var index = this.list.findIndex(function(item) {
4256
4256
  return item.control === control;
@@ -4270,20 +4270,20 @@ function _set_prototype_of$q(o, p) {
4270
4270
  }
4271
4271
  Control.prototype.destroy.call(this);
4272
4272
  };
4273
- /**
4274
- * 点击 Control 会触发
4273
+ /**
4274
+ * 点击 Control 会触发
4275
4275
  */ _proto._onControlClick = function _onControlClick(e) {
4276
4276
  // this._options.onClick?.(e);
4277
4277
  };
4278
4278
  return More;
4279
4279
  }(Control);
4280
4280
 
4281
- /**
4282
- * 函数防抖
4283
- * @param {Function} func
4284
- * @param {number} wait
4285
- * @typeParam T - 函数类型
4286
- * @returns {Function}
4281
+ /**
4282
+ * 函数防抖
4283
+ * @param {Function} func
4284
+ * @param {number} wait
4285
+ * @typeParam T - 函数类型
4286
+ * @returns {Function}
4287
4287
  */ // eslint-disable-next-line @typescript-eslint/ban-types
4288
4288
  function debounce(func, wait) {
4289
4289
  var timeout;
@@ -4907,23 +4907,23 @@ var ignoreList = [
4907
4907
  });
4908
4908
  }
4909
4909
 
4910
- /**
4911
- * 重新调整播放器窗口大小
4912
- *
4913
- * Adjust the player window size
4914
- * @param {number | string} width 宽度(number 类型默认px, 支持字符串大小 "100%" | "50vw")
4915
- * @param {number | string} height 高度(number 类型默认px, 支持字符串大小 "100%" | "50vh")
4916
- * @since 0.0.1
4917
- * @example
4918
- * ```ts
4919
- * theme.resize(600, 400) // 600px * 400px
4920
- * theme.resize("600px", "400px") // 600px * 400px
4921
- * theme.resize("50%", "1vh")
4922
- * theme.resize("2em", "2rem")
4923
- * // 事件监听 event, 这里是具体的宽高(单位px)
4924
- * theme.on(Theme.EVENTS.resize, (width: number, height: number) => {})
4925
- * ```
4926
- * @returns {void}
4910
+ /**
4911
+ * 重新调整播放器窗口大小
4912
+ *
4913
+ * Adjust the player window size
4914
+ * @param {number | string} width 宽度(number 类型默认px, 支持字符串大小 "100%" | "50vw")
4915
+ * @param {number | string} height 高度(number 类型默认px, 支持字符串大小 "100%" | "50vh")
4916
+ * @since 0.0.1
4917
+ * @example
4918
+ * ```ts
4919
+ * theme.resize(600, 400) // 600px * 400px
4920
+ * theme.resize("600px", "400px") // 600px * 400px
4921
+ * theme.resize("50%", "1vh")
4922
+ * theme.resize("2em", "2rem")
4923
+ * // 事件监听 event, 这里是具体的宽高(单位px)
4924
+ * theme.on(Theme.EVENTS.resize, (width: number, height: number) => {})
4925
+ * ```
4926
+ * @returns {void}
4927
4927
  */ function _resize(theme, width, height) {
4928
4928
  var cssText = '';
4929
4929
  if (/^\d+(\.\d+)?$/.test(width + '')) {
@@ -4986,9 +4986,9 @@ var ZOOM_DEFAULT_OPTIONS = {
4986
4986
  open: false,
4987
4987
  max: 8
4988
4988
  };
4989
- /**
4990
- * 电子放大控件
4991
- * @category Control
4989
+ /**
4990
+ * 电子放大控件
4991
+ * @category Control
4992
4992
  */ var Zoom = /*#__PURE__*/ function(Control) {
4993
4993
  _inherits$p(Zoom, Control);
4994
4994
  function Zoom(options) {
@@ -5065,8 +5065,8 @@ var ZOOM_DEFAULT_OPTIONS = {
5065
5065
  }
5066
5066
  Control.prototype.destroy.call(this);
5067
5067
  };
5068
- /**
5069
- * 点击 Control 会触发
5068
+ /**
5069
+ * 点击 Control 会触发
5070
5070
  */ _proto._onControlClick = function _onControlClick(e) {
5071
5071
  this.active = !this.active;
5072
5072
  Control.prototype._onControlClick.call(this, e);
@@ -5086,8 +5086,8 @@ var ZOOM_DEFAULT_OPTIONS = {
5086
5086
  },
5087
5087
  {
5088
5088
  key: "active",
5089
- get: /**
5090
- * 是否激活
5089
+ get: /**
5090
+ * 是否激活
5091
5091
  */ function get() {
5092
5092
  return this._active;
5093
5093
  },
@@ -5736,8 +5736,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5736
5736
  return '';
5737
5737
  }
5738
5738
 
5739
- /**
5740
- * Header
5739
+ /**
5740
+ * Header
5741
5741
  */ var Component = /*#__PURE__*/ function() {
5742
5742
  function Component(options) {
5743
5743
  if (options === void 0) options = {};
@@ -5789,8 +5789,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5789
5789
  this.$popupContainer.appendChild(this.$container);
5790
5790
  }
5791
5791
  var _proto = Component.prototype;
5792
- /**
5793
- * 销毁 header
5792
+ /**
5793
+ * 销毁 header
5794
5794
  */ _proto.destroy = function destroy() {
5795
5795
  var _this_$popupContainer;
5796
5796
  (_this_$popupContainer = this.$popupContainer) == null ? void 0 : _this_$popupContainer.removeChild(this.$container);
@@ -6066,10 +6066,10 @@ function _set_prototype_of$m(o, p) {
6066
6066
  };
6067
6067
  return _set_prototype_of$m(o, p);
6068
6068
  }
6069
- /**
6070
- * 全局全屏
6071
- * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
6072
- * @category Control
6069
+ /**
6070
+ * 全局全屏
6071
+ * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
6072
+ * @category Control
6073
6073
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
6074
6074
  _inherits$m(GlobalFullscreen, Fullscreen);
6075
6075
  function GlobalFullscreen(options) {
@@ -6087,8 +6087,8 @@ function _set_prototype_of$m(o, p) {
6087
6087
  title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_GLOBAL_FULLSCREEN
6088
6088
  });
6089
6089
  };
6090
- /**
6091
- * 点击 Control 会触发
6090
+ /**
6091
+ * 点击 Control 会触发
6092
6092
  */ _proto._onControlClick = function _onControlClick() {
6093
6093
  // 网页全屏的情况下 还可以执行全局全屏
6094
6094
  if (this.isCurrentFullscreen && this._$rootContainer.classList.contains("" + PREFIX_CLASS + "-global-fullscreen")) {
@@ -6134,9 +6134,9 @@ function _set_prototype_of$l(o, p) {
6134
6134
  };
6135
6135
  return _set_prototype_of$l(o, p);
6136
6136
  }
6137
- /**
6138
- * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
6139
- * @category Control
6137
+ /**
6138
+ * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
6139
+ * @category Control
6140
6140
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
6141
6141
  _inherits$l(CapturePicture, Control);
6142
6142
  function CapturePicture(options) {
@@ -6167,8 +6167,8 @@ function _set_prototype_of$l(o, p) {
6167
6167
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_CAPTURE
6168
6168
  });
6169
6169
  };
6170
- /**
6171
- * 点击 Control 会触发
6170
+ /**
6171
+ * 点击 Control 会触发
6172
6172
  */ _proto._onControlClick = function _onControlClick(e) {
6173
6173
  var _this = this;
6174
6174
  var _this_options_type, _this_options_cloudRecUpload;
@@ -6237,9 +6237,9 @@ function _set_prototype_of$k(o, p) {
6237
6237
  };
6238
6238
  return _set_prototype_of$k(o, p);
6239
6239
  }
6240
- /**
6241
- * 云台控件
6242
- * @category Control
6240
+ /**
6241
+ * 云台控件
6242
+ * @category Control
6243
6243
  */ var Ptz = /*#__PURE__*/ function(Control) {
6244
6244
  _inherits$k(Ptz, Control);
6245
6245
  function Ptz(options) {
@@ -6328,8 +6328,8 @@ function _set_prototype_of$k(o, p) {
6328
6328
  }
6329
6329
  };
6330
6330
  };
6331
- /**
6332
- * 点击 Control 会触发
6331
+ /**
6332
+ * 点击 Control 会触发
6333
6333
  */ _proto._onControlClick = function _onControlClick(e) {
6334
6334
  Control.prototype._onControlClick.call(this, e);
6335
6335
  this.active = !this.active;
@@ -6432,14 +6432,14 @@ function _set_prototype_of$j(o, p) {
6432
6432
  var RECORD_DEFAULT_OPTIONS = {
6433
6433
  maxDuration: 3600
6434
6434
  };
6435
- /**
6436
- * 录制控件,点击开始录制,再次点击停止录制,
6437
- * 录制开始到结束会依次触发 `startRecord` 和 `stopRecord` 事件
6438
- *
6439
- * 注意:
6440
- * 1. 录制过程中会占用浏览器内存, 请根据实际情况进行配置
6441
- * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6442
- * @category Control
6435
+ /**
6436
+ * 录制控件,点击开始录制,再次点击停止录制,
6437
+ * 录制开始到结束会依次触发 `startRecord` 和 `stopRecord` 事件
6438
+ *
6439
+ * 注意:
6440
+ * 1. 录制过程中会占用浏览器内存, 请根据实际情况进行配置
6441
+ * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6442
+ * @category Control
6443
6443
  */ var Record = /*#__PURE__*/ function(Control) {
6444
6444
  _inherits$j(Record, Control);
6445
6445
  function Record(options) {
@@ -6454,16 +6454,16 @@ var RECORD_DEFAULT_OPTIONS = {
6454
6454
  return _this;
6455
6455
  }
6456
6456
  var _proto = Record.prototype;
6457
- /**
6458
- * 渲染图标
6457
+ /**
6458
+ * 渲染图标
6459
6459
  */ _proto._render = function _render() {
6460
6460
  var _this_locale;
6461
6461
  this.$container.innerHTML = IconComponents.record({
6462
6462
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_RECORDVIDEO
6463
6463
  });
6464
6464
  };
6465
- /**
6466
- * 渲染计时器
6465
+ /**
6466
+ * 渲染计时器
6467
6467
  */ _proto._renderTimer = function _renderTimer() {
6468
6468
  var _this = this;
6469
6469
  var _this__options_rootContainer, _this__options;
@@ -6492,8 +6492,8 @@ var RECORD_DEFAULT_OPTIONS = {
6492
6492
  this._destroyTimer();
6493
6493
  Control.prototype.destroy.call(this);
6494
6494
  };
6495
- /**
6496
- * 销毁定时器和销毁节点
6495
+ /**
6496
+ * 销毁定时器和销毁节点
6497
6497
  */ _proto._destroyTimer = function _destroyTimer() {
6498
6498
  this._seconds = 0;
6499
6499
  if (this._timer) {
@@ -6508,8 +6508,8 @@ var RECORD_DEFAULT_OPTIONS = {
6508
6508
  }
6509
6509
  this._active = false;
6510
6510
  };
6511
- /**
6512
- * 点击 Control 会触发
6511
+ /**
6512
+ * 点击 Control 会触发
6513
6513
  */ _proto._onControlClick = function _onControlClick(e) {
6514
6514
  this.active = !this.active;
6515
6515
  Control.prototype._onControlClick.call(this, e);
@@ -6517,8 +6517,8 @@ var RECORD_DEFAULT_OPTIONS = {
6517
6517
  _create_class$3(Record, [
6518
6518
  {
6519
6519
  key: "active",
6520
- get: /**
6521
- * 是否激活
6520
+ get: /**
6521
+ * 是否激活
6522
6522
  */ function get() {
6523
6523
  return this._active;
6524
6524
  },
@@ -6711,14 +6711,14 @@ function _ts_generator$4(thisArg, body) {
6711
6711
  };
6712
6712
  }
6713
6713
  }
6714
- /**
6715
- * 对讲控件
6716
- *
6717
- * navigator.mediaDevices.getUserMedia {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia} 返回一个 Promise 对象,
6718
- * 成功后会resolve回调一个 MediaStream 对象。若用户拒绝了使用权限,或者需要的媒体源不可用,
6719
- * promise会reject回调一个 PermissionDeniedError 或者 NotFoundError 。
6720
- *
6721
- * @category Control
6714
+ /**
6715
+ * 对讲控件
6716
+ *
6717
+ * navigator.mediaDevices.getUserMedia {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia} 返回一个 Promise 对象,
6718
+ * 成功后会resolve回调一个 MediaStream 对象。若用户拒绝了使用权限,或者需要的媒体源不可用,
6719
+ * promise会reject回调一个 PermissionDeniedError 或者 NotFoundError 。
6720
+ *
6721
+ * @category Control
6722
6722
  */ var Talk = /*#__PURE__*/ function(Control) {
6723
6723
  _inherits$i(Talk, Control);
6724
6724
  function Talk(options) {
@@ -6761,16 +6761,16 @@ function _ts_generator$4(thisArg, body) {
6761
6761
  Control.prototype.reset.call(this, hide);
6762
6762
  }
6763
6763
  };
6764
- /**
6765
- * 销毁对讲
6764
+ /**
6765
+ * 销毁对讲
6766
6766
  */ _proto.destroy = function destroy() {
6767
6767
  if (this.active) {
6768
6768
  this.reset();
6769
6769
  }
6770
6770
  Control.prototype.destroy.call(this);
6771
6771
  };
6772
- /**
6773
- * 点击 Control 会触发
6772
+ /**
6773
+ * 点击 Control 会触发
6774
6774
  */ _proto._onControlClick = function _onControlClick(e) {
6775
6775
  var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
6776
6776
  return Control.prototype._onControlClick;
@@ -6790,13 +6790,13 @@ function _ts_generator$4(thisArg, body) {
6790
6790
  _create_class$2(Talk, [
6791
6791
  {
6792
6792
  key: "value",
6793
- get: /**
6794
- * 获取当前值
6793
+ get: /**
6794
+ * 获取当前值
6795
6795
  */ function get() {
6796
6796
  return this._value;
6797
6797
  },
6798
- set: /**
6799
- * 设置当前值 [0-1]
6798
+ set: /**
6799
+ * 设置当前值 [0-1]
6800
6800
  */ function set(value) {
6801
6801
  // 没有激活状态,则不处理
6802
6802
  if (!this.active) {
@@ -6982,12 +6982,12 @@ function _ts_generator$3(thisArg, body) {
6982
6982
  };
6983
6983
  }
6984
6984
  }
6985
- /**
6986
- * 语音广播控件
6987
- *
6988
- * 用于触发语音广播功能的按钮控件
6989
- *
6990
- * @category Control
6985
+ /**
6986
+ * 语音广播控件
6987
+ *
6988
+ * 用于触发语音广播功能的按钮控件
6989
+ *
6990
+ * @category Control
6991
6991
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6992
6992
  _inherits$h(Broadcast, Control);
6993
6993
  function Broadcast(options) {
@@ -7027,16 +7027,16 @@ function _ts_generator$3(thisArg, body) {
7027
7027
  Control.prototype.reset.call(this, hide);
7028
7028
  }
7029
7029
  };
7030
- /**
7031
- * 销毁语音广播控件
7030
+ /**
7031
+ * 销毁语音广播控件
7032
7032
  */ _proto.destroy = function destroy() {
7033
7033
  if (this.active) {
7034
7034
  this.reset();
7035
7035
  }
7036
7036
  Control.prototype.destroy.call(this);
7037
7037
  };
7038
- /**
7039
- * 点击 Control 会触发
7038
+ /**
7039
+ * 点击 Control 会触发
7040
7040
  */ _proto._onControlClick = function _onControlClick(e) {
7041
7041
  var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
7042
7042
  return Control.prototype._onControlClick;
@@ -7213,12 +7213,12 @@ function _ts_generator$2(thisArg, body) {
7213
7213
  };
7214
7214
  }
7215
7215
  }
7216
- /**
7217
- * AI对话框控件
7218
- *
7219
- * 用于触发AI对话框功能的按钮控件
7220
- *
7221
- * @category Control
7216
+ /**
7217
+ * AI对话框控件
7218
+ *
7219
+ * 用于触发AI对话框功能的按钮控件
7220
+ *
7221
+ * @category Control
7222
7222
  */ var AIChat = /*#__PURE__*/ function(Control) {
7223
7223
  _inherits$g(AIChat, Control);
7224
7224
  function AIChat(options) {
@@ -7259,16 +7259,16 @@ function _ts_generator$2(thisArg, body) {
7259
7259
  Control.prototype.reset.call(this, hide);
7260
7260
  }
7261
7261
  };
7262
- /**
7263
- * 销毁AI对话框控件
7262
+ /**
7263
+ * 销毁AI对话框控件
7264
7264
  */ _proto.destroy = function destroy() {
7265
7265
  if (this.active) {
7266
7266
  this.reset();
7267
7267
  }
7268
7268
  Control.prototype.destroy.call(this);
7269
7269
  };
7270
- /**
7271
- * 点击 Control 会触发
7270
+ /**
7271
+ * 点击 Control 会触发
7272
7272
  */ _proto._onControlClick = function _onControlClick(e) {
7273
7273
  var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
7274
7274
  return Control.prototype._onControlClick;
@@ -7320,12 +7320,12 @@ function _set_prototype_of$f(o, p) {
7320
7320
  };
7321
7321
  return _set_prototype_of$f(o, p);
7322
7322
  }
7323
- /**
7324
- * 直播按钮控件
7325
- *
7326
- * 点击切换到直播模式
7327
- *
7328
- * @category Control
7323
+ /**
7324
+ * 直播按钮控件
7325
+ *
7326
+ * 点击切换到直播模式
7327
+ *
7328
+ * @category Control
7329
7329
  */ var Live = /*#__PURE__*/ function(Control) {
7330
7330
  _inherits$f(Live, Control);
7331
7331
  function Live(options) {
@@ -7347,9 +7347,9 @@ function _set_prototype_of$f(o, p) {
7347
7347
  return _this;
7348
7348
  }
7349
7349
  var _proto = Live.prototype;
7350
- /**
7351
- * 根据 urlInfo 同步激活状态
7352
- * 在初始化和播放地址切换后调用
7350
+ /**
7351
+ * 根据 urlInfo 同步激活状态
7352
+ * 在初始化和播放地址切换后调用
7353
7353
  */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7354
7354
  var shouldBeActive = !!(urlInfo && urlInfo.type === 'live');
7355
7355
  this.active = shouldBeActive;
@@ -7360,13 +7360,13 @@ function _set_prototype_of$f(o, p) {
7360
7360
  title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_LIVE) || '直播'
7361
7361
  });
7362
7362
  };
7363
- /**
7364
- * 销毁
7363
+ /**
7364
+ * 销毁
7365
7365
  */ _proto.destroy = function destroy() {
7366
7366
  Control.prototype.destroy.call(this);
7367
7367
  };
7368
- /**
7369
- * 点击 Control 会触发
7368
+ /**
7369
+ * 点击 Control 会触发
7370
7370
  */ _proto._onControlClick = function _onControlClick(e) {
7371
7371
  var _this__options_onChange, _this__options;
7372
7372
  Control.prototype._onControlClick.call(this, e);
@@ -7411,12 +7411,12 @@ function _set_prototype_of$e(o, p) {
7411
7411
  };
7412
7412
  return _set_prototype_of$e(o, p);
7413
7413
  }
7414
- /**
7415
- * 回放下拉控件
7416
- *
7417
- * 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
7418
- *
7419
- * @category Control
7414
+ /**
7415
+ * 回放下拉控件
7416
+ *
7417
+ * 鼠标移入弹出气泡,展示云存储、云录制、本地回放三个选项
7418
+ *
7419
+ * @category Control
7420
7420
  */ var RecDropdown = /*#__PURE__*/ function(Control) {
7421
7421
  _inherits$e(RecDropdown, Control);
7422
7422
  function RecDropdown(options) {
@@ -7440,9 +7440,9 @@ function _set_prototype_of$e(o, p) {
7440
7440
  return _this;
7441
7441
  }
7442
7442
  var _proto = RecDropdown.prototype;
7443
- /**
7444
- * 根据 urlInfo 同步激活状态和回放类型
7445
- * 在初始化和播放地址切换后调用
7443
+ /**
7444
+ * 根据 urlInfo 同步激活状态和回放类型
7445
+ * 在初始化和播放地址切换后调用
7446
7446
  */ _proto._syncActiveByUrlInfo = function _syncActiveByUrlInfo(urlInfo) {
7447
7447
  if (urlInfo && urlInfo.type === 'rec') {
7448
7448
  var _urlInfo_searchParams1;
@@ -7519,8 +7519,8 @@ function _set_prototype_of$e(o, p) {
7519
7519
  target == null ? void 0 : target.classList.add("" + PREFIX_CLASS + "-active");
7520
7520
  }
7521
7521
  };
7522
- /**
7523
- * 销毁
7522
+ /**
7523
+ * 销毁
7524
7524
  */ _proto.destroy = function destroy() {
7525
7525
  var _this__delegation_destroy, _this__delegation;
7526
7526
  (_this__delegation = this._delegation) == null ? void 0 : (_this__delegation_destroy = _this__delegation.destroy) == null ? void 0 : _this__delegation_destroy.call(_this__delegation);
@@ -7532,8 +7532,8 @@ function _set_prototype_of$e(o, p) {
7532
7532
  }
7533
7533
  Control.prototype.destroy.call(this);
7534
7534
  };
7535
- /**
7536
- * 点击 Control 会触发(移动端 click 触发 picker)
7535
+ /**
7536
+ * 点击 Control 会触发(移动端 click 触发 picker)
7537
7537
  */ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7538
7538
  _proto._onControlClick = function _onControlClick(_e) {
7539
7539
  // picker 自行处理 click/hover,这里不额外处理
@@ -7610,11 +7610,20 @@ function _set_prototype_of$d(o, p) {
7610
7610
  }
7611
7611
  }));
7612
7612
  _this.on(EVENTS.setAllDayRecTimes, function(records) {
7613
- var // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7613
+ var _this__options_props_urlInfo, _this__options_props, _this__options, // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7614
7614
  _this__modal;
7615
7615
  _this.disabled = records.length === 0;
7616
7616
  _this.records = records;
7617
- (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(records);
7617
+ if ((_this__options = _this._options) == null ? void 0 : (_this__options_props = _this__options.props) == null ? void 0 : (_this__options_props_urlInfo = _this__options_props.urlInfo) == null ? void 0 : _this__options_props_urlInfo.validateCode) {
7618
+ _this.records = records.map(function(item) {
7619
+ var _this__options_props_urlInfo, _this__options_props, _this__options;
7620
+ return _extends$c({}, item, {
7621
+ // 加密图片的地址是有时效的
7622
+ coverPic: item.coverPic + "&decodekey=" + ((_this__options = _this._options) == null ? void 0 : (_this__options_props = _this__options.props) == null ? void 0 : (_this__options_props_urlInfo = _this__options_props.urlInfo) == null ? void 0 : _this__options_props_urlInfo.validateCode)
7623
+ });
7624
+ });
7625
+ }
7626
+ (_this__modal = _this._modal) == null ? void 0 : _this__modal.setSections(_this.records);
7618
7627
  // this._modal?.showEventFilter(this._options.showEventFilter ?? true);
7619
7628
  });
7620
7629
  _this.on(EVENTS.getOSDTime, function(time) {
@@ -7719,12 +7728,12 @@ function _set_prototype_of$c(o, p) {
7719
7728
  };
7720
7729
  return _set_prototype_of$c(o, p);
7721
7730
  }
7722
- /**
7723
- * 告警消息按钮控件
7724
- *
7725
- * 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
7726
- *
7727
- * @category Control
7731
+ /**
7732
+ * 告警消息按钮控件
7733
+ *
7734
+ * 点击弹出告警消息列表弹窗(纯触发按钮,无激活状态)
7735
+ *
7736
+ * @category Control
7728
7737
  */ var AlarmMessage = /*#__PURE__*/ function(Control) {
7729
7738
  _inherits$c(AlarmMessage, Control);
7730
7739
  function AlarmMessage(options) {
@@ -7748,16 +7757,16 @@ function _set_prototype_of$c(o, p) {
7748
7757
  title: ((_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_ALARM_MESSAGE) || '消息'
7749
7758
  });
7750
7759
  };
7751
- /**
7752
- * 销毁
7760
+ /**
7761
+ * 销毁
7753
7762
  */ _proto.destroy = function destroy() {
7754
7763
  if (this._panelOpen) {
7755
7764
  this.emit(EVENTS.control.alarmMessageChange, false);
7756
7765
  }
7757
7766
  Control.prototype.destroy.call(this);
7758
7767
  };
7759
- /**
7760
- * 点击 Control 会触发
7768
+ /**
7769
+ * 点击 Control 会触发
7761
7770
  */ _proto._onControlClick = function _onControlClick(e) {
7762
7771
  var _this__options_onChange, _this__options;
7763
7772
  Control.prototype._onControlClick.call(this, e);
@@ -7822,54 +7831,54 @@ var SELECT_DEFAULT_OPTIONS = {
7822
7831
  onChange: function onChange() {},
7823
7832
  onOpenChange: function onOpenChange() {}
7824
7833
  };
7825
- /**
7826
- * 选择器切换 (支持PC/Mobile)
7827
- * @category Control
7828
- * @example
7829
- * ```ts
7830
- * new Select({
7831
- * title: '清晰度',
7832
- * list: [
7833
- * {
7834
- * label: '高清',
7835
- * value: 'hd',
7836
- * streamTypeIn: 1,
7837
- * },
7838
- * {
7839
- * label: '超清',
7840
- * value: 'super',
7841
- * streamTypeIn: 2,
7842
- * }
7843
- * ],
7844
- * value: 'hd',
7845
- * onChange: (value, item) => {
7846
- * console.log('选择了', value, item);
7847
- * }
7848
- * })
7849
- *
7850
- * // 如果想扩展 Select 组件,可以继承 Select 组件
7851
- * // 例如清晰度切换组件
7852
- * class Definition extends Select {
7853
- * options: DefinitionOptions;
7854
- * constructor(options: DefinitionOptions) {
7855
- * super({
7856
- * ...options,
7857
- * fieldNames: { label: 'name', value: 'level',},
7858
- * title: options?.locale?.definition,
7859
- * controlType: 'button',
7860
- * classNameSuffix: 'definition',
7861
- * onChange: (value: SelectItem['value'], item) => {
7862
- * options?.onChange?.(value, item);
7863
- * this.emit(EVENTS.control.definitionChange, value, item);
7864
- * },
7865
- * onOpenChange: (open: boolean, value: SelectItem['value'], item) => {
7866
- * options?.onOpenChange?.(open, value, item);
7867
- * this.emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
7868
- * }
7869
- * });
7870
- * }
7871
- * }
7872
- * ```
7834
+ /**
7835
+ * 选择器切换 (支持PC/Mobile)
7836
+ * @category Control
7837
+ * @example
7838
+ * ```ts
7839
+ * new Select({
7840
+ * title: '清晰度',
7841
+ * list: [
7842
+ * {
7843
+ * label: '高清',
7844
+ * value: 'hd',
7845
+ * streamTypeIn: 1,
7846
+ * },
7847
+ * {
7848
+ * label: '超清',
7849
+ * value: 'super',
7850
+ * streamTypeIn: 2,
7851
+ * }
7852
+ * ],
7853
+ * value: 'hd',
7854
+ * onChange: (value, item) => {
7855
+ * console.log('选择了', value, item);
7856
+ * }
7857
+ * })
7858
+ *
7859
+ * // 如果想扩展 Select 组件,可以继承 Select 组件
7860
+ * // 例如清晰度切换组件
7861
+ * class Definition extends Select {
7862
+ * options: DefinitionOptions;
7863
+ * constructor(options: DefinitionOptions) {
7864
+ * super({
7865
+ * ...options,
7866
+ * fieldNames: { label: 'name', value: 'level',},
7867
+ * title: options?.locale?.definition,
7868
+ * controlType: 'button',
7869
+ * classNameSuffix: 'definition',
7870
+ * onChange: (value: SelectItem['value'], item) => {
7871
+ * options?.onChange?.(value, item);
7872
+ * this.emit(EVENTS.control.definitionChange, value, item);
7873
+ * },
7874
+ * onOpenChange: (open: boolean, value: SelectItem['value'], item) => {
7875
+ * options?.onOpenChange?.(open, value, item);
7876
+ * this.emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
7877
+ * }
7878
+ * });
7879
+ * }
7880
+ * }
7881
+ * ```
7873
7882
  */ var Select = /*#__PURE__*/ function(Control) {
7874
7883
  _inherits$b(Select, Control);
7875
7884
  function Select(options) {
@@ -7921,9 +7930,9 @@ var SELECT_DEFAULT_OPTIONS = {
7921
7930
  return _this;
7922
7931
  }
7923
7932
  var _proto = Select.prototype;
7924
- /**
7925
- * 更新选项列表
7926
- * @param list - 选项列表
7933
+ /**
7934
+ * 更新选项列表
7935
+ * @param list - 选项列表
7927
7936
  */ _proto.updateOptions = function updateOptions(list) {
7928
7937
  var _this = this;
7929
7938
  if (list === void 0) list = [];
@@ -8008,8 +8017,8 @@ var SELECT_DEFAULT_OPTIONS = {
8008
8017
  });
8009
8018
  }
8010
8019
  };
8011
- /**
8012
- * 销毁
8020
+ /**
8021
+ * 销毁
8013
8022
  */ _proto.destroy = function destroy() {
8014
8023
  var _this__delegationOption_destroy, _this__delegationOption, _this__delegationClose_destroy, _this__delegationClose, _this__delegationCancel_destroy, _this__delegationCancel;
8015
8024
  (_this__delegationOption = this._delegationOption) == null ? void 0 : (_this__delegationOption_destroy = _this__delegationOption.destroy) == null ? void 0 : _this__delegationOption_destroy.call(_this__delegationOption);
@@ -8031,8 +8040,8 @@ var SELECT_DEFAULT_OPTIONS = {
8031
8040
  e.stopPropagation();
8032
8041
  e.preventDefault();
8033
8042
  };
8034
- /**
8035
- * 点击 Control 会触发
8043
+ /**
8044
+ * 点击 Control 会触发
8036
8045
  */ _proto._onControlClick = function _onControlClick(e) {
8037
8046
  this._options.onClick == null ? void 0 : this._options.onClick.call(this._options, e);
8038
8047
  };
@@ -8051,8 +8060,8 @@ var SELECT_DEFAULT_OPTIONS = {
8051
8060
  },
8052
8061
  {
8053
8062
  key: "disabled",
8054
- get: /**
8055
- * 是否禁用
8063
+ get: /**
8064
+ * 是否禁用
8056
8065
  */ function get() {
8057
8066
  return this._disabled;
8058
8067
  },
@@ -8138,15 +8147,15 @@ function __filter(list, locale) {
8138
8147
  };
8139
8148
  });
8140
8149
  }
8141
- /**
8142
- * 清晰度切换控件
8143
- *
8144
- * 清晰度切换控件有三套UI
8145
- * 1. PC 端默认UI,hover 展示清晰度切换面板
8146
- * 2. 移动端 picker选择器清晰度切换面板 + 取消按钮
8147
- * 3. 移动端全屏模式右侧菜单清晰度切换面板
8148
- *
8149
- * @category Control
8150
+ /**
8151
+ * 清晰度切换控件
8152
+ *
8153
+ * 清晰度切换控件有三套UI
8154
+ * 1. PC 端默认UI,hover 展示清晰度切换面板
8155
+ * 2. 移动端 picker选择器清晰度切换面板 + 取消按钮
8156
+ * 3. 移动端全屏模式右侧菜单清晰度切换面板
8157
+ *
8158
+ * @category Control
8150
8159
  */ var Definition = /*#__PURE__*/ function(Select) {
8151
8160
  _inherits$a(Definition, Select);
8152
8161
  function Definition(options) {
@@ -8212,9 +8221,9 @@ function __filter(list, locale) {
8212
8221
  return _this;
8213
8222
  }
8214
8223
  var _proto = Definition.prototype;
8215
- /**
8216
- * 重置,恢复默认值
8217
- * @param hide 默认不隐藏
8224
+ /**
8225
+ * 重置,恢复默认值
8226
+ * @param hide 默认不隐藏
8218
8227
  */ _proto.reset = function reset(hide) {
8219
8228
  Select.prototype.reset.call(this, hide);
8220
8229
  };
@@ -8265,13 +8274,13 @@ var SUPPORT_SPEED = [
8265
8274
  16
8266
8275
  ]; // 8, 16
8267
8276
  var SPEED_DEFAULT_OPTIONS = {
8268
- /**
8269
- * 默认倍速 1, 如果传入的值不在列表中会使用 1 倍速,可能会没有选中
8270
- * 暂时不支持初始化时设置倍速
8277
+ /**
8278
+ * 默认倍速 1, 如果传入的值不在列表中会使用 1 倍速,可能会没有选中
8279
+ * 暂时不支持初始化时设置倍速
8271
8280
  */ // value: 1, // 对应list 中的 value
8272
8281
  // 这里不要设置多语言, 比较麻烦
8273
- /**
8274
- * 倍速列表, 需要是 2 的指数,不能小于 0.5, 最大 16 倍
8282
+ /**
8283
+ * 倍速列表, 需要是 2 的指数,不能小于 0.5, 最大 16 倍
8275
8284
  */ list: SUPPORT_SPEED.reverse().map(function(speed) {
8276
8285
  return {
8277
8286
  label: "" + speed + "x",
@@ -8279,13 +8288,13 @@ var SPEED_DEFAULT_OPTIONS = {
8279
8288
  };
8280
8289
  })
8281
8290
  };
8282
- /**
8283
- * 倍速切换控件, 不支持动态切换倍速列表
8284
- *
8285
- * 注意:
8286
- * 1. 本地回放倍速需要设备本身支持才可以, 如果不支持切换后的倍数不会生效, 云端回放(云存储,云录制)倍速都是支持, 需要是 2 的指数,不能小于 0.5, 最大 16 倍;
8287
- * 2. 标准流不支持;
8288
- * @category Control
8291
+ /**
8292
+ * 倍速切换控件, 不支持动态切换倍速列表
8293
+ *
8294
+ * 注意:
8295
+ * 1. 本地回放倍速需要设备本身支持才可以, 如果不支持切换后的倍数不会生效, 云端回放(云存储,云录制)倍速都是支持, 需要是 2 的指数,不能小于 0.5, 最大 16 倍;
8296
+ * 2. 标准流不支持;
8297
+ * @category Control
8289
8298
  */ var Speed = /*#__PURE__*/ function(Select) {
8290
8299
  _inherits$9(Speed, Select);
8291
8300
  function Speed(options) {
@@ -8319,10 +8328,10 @@ var SPEED_DEFAULT_OPTIONS = {
8319
8328
  return _this;
8320
8329
  }
8321
8330
  var _proto = Speed.prototype;
8322
- /**
8323
- * 滤掉本地回放不支持的倍速
8324
- * @param optionsList 初始化配置倍速列表
8325
- * @param type 回放类型
8331
+ /**
8332
+ * 滤掉本地回放不支持的倍速
8333
+ * @param optionsList 初始化配置倍速列表
8334
+ * @param type 回放类型
8326
8335
  */ _proto._filterSpeedList = function _filterSpeedList(optionsList, type, url) {
8327
8336
  if (!optionsList) {
8328
8337
  // 非用户自定义 /openpb/ 是标准流回放路径
@@ -8381,9 +8390,9 @@ function _set_prototype_of$8(o, p) {
8381
8390
  };
8382
8391
  return _set_prototype_of$8(o, p);
8383
8392
  }
8384
- /**
8385
- * 日历选择器控件
8386
- * @category Control
8393
+ /**
8394
+ * 日历选择器控件
8395
+ * @category Control
8387
8396
  */ var DatePickerControl = /*#__PURE__*/ function(Control) {
8388
8397
  _inherits$8(DatePickerControl, Control);
8389
8398
  function DatePickerControl(options) {
@@ -8464,10 +8473,10 @@ function _set_prototype_of$8(o, p) {
8464
8473
  }
8465
8474
  }));
8466
8475
  };
8467
- /**
8468
- * 设置日期, change = true 时触发 onChange 事件
8469
- * @param date 设置的日期
8470
- * @param change 是否触发 onChange 事件
8476
+ /**
8477
+ * 设置日期, change = true 时触发 onChange 事件
8478
+ * @param date 设置的日期
8479
+ * @param change 是否触发 onChange 事件
8471
8480
  */ _proto.setDate = function setDate(date, change) {
8472
8481
  if (change === void 0) change = true;
8473
8482
  var _this_datePicker;
@@ -8483,9 +8492,9 @@ function _set_prototype_of$8(o, p) {
8483
8492
  if (this.datePicker) this.datePicker.open = false;
8484
8493
  Control.prototype.reset.call(this);
8485
8494
  };
8486
- /**
8487
- * 销毁控件
8488
- * @override
8495
+ /**
8496
+ * 销毁控件
8497
+ * @override
8489
8498
  */ _proto.destroy = function destroy() {
8490
8499
  if (this.datePicker) {
8491
8500
  this.datePicker.destroy();
@@ -8498,9 +8507,9 @@ function _set_prototype_of$8(o, p) {
8498
8507
  var arr = this._value.split('-');
8499
8508
  return arr[1] + "." + arr[2];
8500
8509
  };
8501
- /**
8502
- * 点击 Control 会触发
8503
- * @overload super._onControlClick(e: Event)
8510
+ /**
8511
+ * 点击 Control 会触发
8512
+ * @overload super._onControlClick(e: Event)
8504
8513
  */ _proto._onControlClick = function _onControlClick(e) {
8505
8514
  Control.prototype._onControlClick.call(this, e);
8506
8515
  };
@@ -8538,9 +8547,9 @@ function _set_prototype_of$7(o, p) {
8538
8547
  return _set_prototype_of$7(o, p);
8539
8548
  }
8540
8549
  /** 时间格式 HH:mm:ss */ var TIME_FORMAT = 'HH:mm:ss';
8541
- /**
8542
- * 时间选择器控件
8543
- * @category Control
8550
+ /**
8551
+ * 时间选择器控件
8552
+ * @category Control
8544
8553
  */ var TimePickerControl = /*#__PURE__*/ function(Control) {
8545
8554
  _inherits$7(TimePickerControl, Control);
8546
8555
  function TimePickerControl(options) {
@@ -8601,9 +8610,9 @@ function _set_prototype_of$7(o, p) {
8601
8610
  }
8602
8611
  }));
8603
8612
  };
8604
- /**
8605
- * 设置时间
8606
- * @param time 设置的时间 HH:mm:ss
8613
+ /**
8614
+ * 设置时间
8615
+ * @param time 设置的时间 HH:mm:ss
8607
8616
  */ _proto.setTime = function setTime(time) {
8608
8617
  var _this_timePicker;
8609
8618
  (_this_timePicker = this.timePicker) == null ? void 0 : _this_timePicker.setCurrent(time);
@@ -8619,9 +8628,9 @@ function _set_prototype_of$7(o, p) {
8619
8628
  if (this.timePicker) this.timePicker.open = false;
8620
8629
  Control.prototype.reset.call(this);
8621
8630
  };
8622
- /**
8623
- * 销毁控件
8624
- * @override
8631
+ /**
8632
+ * 销毁控件
8633
+ * @override
8625
8634
  */ _proto.destroy = function destroy() {
8626
8635
  if (this.timePicker) {
8627
8636
  this.timePicker.destroy();
@@ -8633,9 +8642,9 @@ function _set_prototype_of$7(o, p) {
8633
8642
  _proto._getTimeStr = function _getTimeStr() {
8634
8643
  return this._value;
8635
8644
  };
8636
- /**
8637
- * 点击 Control 会触发
8638
- * @overload super._onControlClick(e: Event)
8645
+ /**
8646
+ * 点击 Control 会触发
8647
+ * @overload super._onControlClick(e: Event)
8639
8648
  */ _proto._onControlClick = function _onControlClick(e) {
8640
8649
  Control.prototype._onControlClick.call(this, e);
8641
8650
  };
@@ -8672,8 +8681,8 @@ function _set_prototype_of$6(o, p) {
8672
8681
  };
8673
8682
  return _set_prototype_of$6(o, p);
8674
8683
  }
8675
- /**
8676
- * 回放时间轴控件
8684
+ /**
8685
+ * 回放时间轴控件
8677
8686
  */ var TimeLineControl = /*#__PURE__*/ function(Control) {
8678
8687
  _inherits$6(TimeLineControl, Control);
8679
8688
  function TimeLineControl(options) {
@@ -8833,8 +8842,8 @@ function _set_prototype_of$6(o, p) {
8833
8842
  }
8834
8843
  Control.prototype.destroy.call(this);
8835
8844
  };
8836
- /**
8837
- * 点击 Control 会触发
8845
+ /**
8846
+ * 点击 Control 会触发
8838
8847
  */ _proto._onControlClick = function _onControlClick(e) {
8839
8848
  this._options.onClick == null ? void 0 : this._options.onClick.call(this._options, e);
8840
8849
  };
@@ -8871,24 +8880,24 @@ function _set_prototype_of$5(o, p) {
8871
8880
  };
8872
8881
  return _set_prototype_of$5(o, p);
8873
8882
  }
8874
- /**
8875
- * 播放结束后忽略 OSD 回写的静默期(毫秒)
8876
- *
8877
- * 断流结束时 SDK 不会立刻停掉 OSD 轮询(要让时间轴光标跟到画面最后一帧,见
8878
- * api/_playbackRange.ts 的 OSD_SETTLE_MS = 2500),这些回写的时间早于区间末端,
8879
- * 会把刚补满的进度拉回去。取值需覆盖该窗口。
8880
- *
8881
- * 用静默期而不是永久忽略:用户可能从时间轴点回区间内继续看,那条 seek 不经过
8882
- * 进度条的 onChange,永久忽略会让进度条卡死不再更新。
8883
+ /**
8884
+ * 播放结束后忽略 OSD 回写的静默期(毫秒)
8885
+ *
8886
+ * 断流结束时 SDK 不会立刻停掉 OSD 轮询(要让时间轴光标跟到画面最后一帧,见
8887
+ * api/_playbackRange.ts 的 OSD_SETTLE_MS = 2500),这些回写的时间早于区间末端,
8888
+ * 会把刚补满的进度拉回去。取值需覆盖该窗口。
8889
+ *
8890
+ * 用静默期而不是永久忽略:用户可能从时间轴点回区间内继续看,那条 seek 不经过
8891
+ * 进度条的 onChange,永久忽略会让进度条卡死不再更新。
8883
8892
  */ var PLAYBACK_END_SILENCE_MS = 3000;
8884
- /**
8885
- * 读取录像片段的起止时间(毫秒)
8886
- *
8887
- * 录像列表是服务端原始返回、未做字段归一化,`begin/end` 与 `startTime/endTime`
8888
- * 两套字段名在不同回放类型下都出现过,这里统一兼容。
8889
- *
8890
- * @param seg 录像片段
8891
- * @param which 取起点还是终点
8893
+ /**
8894
+ * 读取录像片段的起止时间(毫秒)
8895
+ *
8896
+ * 录像列表是服务端原始返回、未做字段归一化,`begin/end` 与 `startTime/endTime`
8897
+ * 两套字段名在不同回放类型下都出现过,这里统一兼容。
8898
+ *
8899
+ * @param seg 录像片段
8900
+ * @param which 取起点还是终点
8892
8901
  */ function segMs(seg, which) {
8893
8902
  var _ref, _ref1;
8894
8903
  var value = which === 'start' ? (_ref = seg == null ? void 0 : seg.startTime) != null ? _ref : seg == null ? void 0 : seg.begin : (_ref1 = seg == null ? void 0 : seg.endTime) != null ? _ref1 : seg == null ? void 0 : seg.end;
@@ -8896,12 +8905,12 @@ function _set_prototype_of$5(o, p) {
8896
8905
  if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
8897
8906
  return utilsTools.DateTime.toDate(value).getTime();
8898
8907
  }
8899
- /**
8900
- * 回放片段进度条控件(移动端)
8901
- *
8902
- * 只在设置了播放区间时渲染,范围是「当前录像片段 ∩ 播放区间」。
8903
- * 区间内跨片段的定位由时间轴承担,这里只负责当前片段的精细拖动。
8904
- * @category Control
8908
+ /**
8909
+ * 回放片段进度条控件(移动端)
8910
+ *
8911
+ * 只在设置了播放区间时渲染,范围是「当前录像片段 ∩ 播放区间」。
8912
+ * 区间内跨片段的定位由时间轴承担,这里只负责当前片段的精细拖动。
8913
+ * @category Control
8905
8914
  */ var SegmentProgressControl = /*#__PURE__*/ function(Control) {
8906
8915
  _inherits$5(SegmentProgressControl, Control);
8907
8916
  function SegmentProgressControl(options) {
@@ -8968,9 +8977,9 @@ function _set_prototype_of$5(o, p) {
8968
8977
  });
8969
8978
  this._updateVisible();
8970
8979
  };
8971
- /**
8972
- * 设置播放区间
8973
- * @param range 区间;null 表示解除约束
8980
+ /**
8981
+ * 设置播放区间
8982
+ * @param range 区间;null 表示解除约束
8974
8983
  */ _proto._setRange = function _setRange(range) {
8975
8984
  if ((range == null ? void 0 : range.begin) && (range == null ? void 0 : range.end)) {
8976
8985
  this._rangeBeginMs = utilsTools.DateTime.toDate(range.begin).getTime();
@@ -8981,9 +8990,9 @@ function _set_prototype_of$5(o, p) {
8981
8990
  }
8982
8991
  this._updateVisible();
8983
8992
  };
8984
- /**
8985
- * 用区间裁剪录像片段
8986
- * @param records 全天录像片段
8993
+ /**
8994
+ * 用区间裁剪录像片段
8995
+ * @param records 全天录像片段
8987
8996
  */ _proto._setSegments = function _setSegments(records) {
8988
8997
  var _this = this;
8989
8998
  if (!this._hasRange() || !Array.isArray(records)) {
@@ -9011,9 +9020,9 @@ function _set_prototype_of$5(o, p) {
9011
9020
  if (force) this._currentIndex = -1;
9012
9021
  this._updateVisible();
9013
9022
  };
9014
- /**
9015
- * 按播放进度更新片段与进度
9016
- * @param currentMs 当前播放时间(毫秒)
9023
+ /**
9024
+ * 按播放进度更新片段与进度
9025
+ * @param currentMs 当前播放时间(毫秒)
9017
9026
  */ _proto._syncCurrent = function _syncCurrent(currentMs) {
9018
9027
  if (!this._hasRange()) return;
9019
9028
  var index = this._segments.findIndex(function(seg) {
@@ -9084,9 +9093,9 @@ function _set_prototype_of$4(o, p) {
9084
9093
  };
9085
9094
  return _set_prototype_of$4(o, p);
9086
9095
  }
9087
- /**
9088
- * 展示设备序列号控件
9089
- * @category Control
9096
+ /**
9097
+ * 展示设备序列号控件
9098
+ * @category Control
9090
9099
  */ var Device = /*#__PURE__*/ function(Control) {
9091
9100
  _inherits$4(Device, Control);
9092
9101
  function Device(options) {
@@ -9104,10 +9113,10 @@ function _set_prototype_of$4(o, p) {
9104
9113
  var _this___options_props_urlInfo, _this___options_props;
9105
9114
  this.$container.innerHTML = '<span class="' + PREFIX_CLASS + "-text " + PREFIX_CLASS + '-text-device">' + this._splicingString(this.__options.deviceName, (_this___options_props = this.__options.props) == null ? void 0 : (_this___options_props_urlInfo = _this___options_props.urlInfo) == null ? void 0 : _this___options_props_urlInfo.deviceSerial) + "</span>";
9106
9115
  };
9107
- /**
9108
- * 更新设备序列号
9109
- * @param deviceSerial - 设备序列号
9110
- * @param deviceName - 设备名称
9116
+ /**
9117
+ * 更新设备序列号
9118
+ * @param deviceSerial - 设备序列号
9119
+ * @param deviceName - 设备名称
9111
9120
  */ _proto.update = function update(deviceName, deviceSerial) {
9112
9121
  if (this.$container.querySelector("." + PREFIX_CLASS + "-text-device")) {
9113
9122
  var $span = this.$container.querySelector("." + PREFIX_CLASS + "-text-device");
@@ -9265,8 +9274,8 @@ function _set_prototype_of$2(o, p) {
9265
9274
  // const MobileExtend_DEFAULT_Options = {
9266
9275
  // controls: MOBILE_EXTENDS,
9267
9276
  // };
9268
- /**
9269
- * 移动端扩展
9277
+ /**
9278
+ * 移动端扩展
9270
9279
  */ var MobileExtend = /*#__PURE__*/ function(EventEmitter) {
9271
9280
  _inherits$2(MobileExtend, EventEmitter);
9272
9281
  function MobileExtend($siblingContainer) {
@@ -9343,9 +9352,9 @@ function _set_prototype_of$1(o, p) {
9343
9352
  return _set_prototype_of$1(o, p);
9344
9353
  }
9345
9354
  var PAUSE_DEFAULT_OPTIONS = {};
9346
- /**
9347
- * 暂停控件(仅在第一次非自动播放时可以点击播放), 防止和放大有冲突
9348
- * @category Control
9355
+ /**
9356
+ * 暂停控件(仅在第一次非自动播放时可以点击播放), 防止和放大有冲突
9357
+ * @category Control
9349
9358
  */ var Pause = /*#__PURE__*/ function(Control) {
9350
9359
  _inherits$1(Pause, Control);
9351
9360
  function Pause(options) {
@@ -9361,8 +9370,8 @@ var PAUSE_DEFAULT_OPTIONS = {};
9361
9370
  return _this;
9362
9371
  }
9363
9372
  var _proto = Pause.prototype;
9364
- /**
9365
- * 展示封面 这里不对 poster 进行缓存, 如果有值优先使用, 如果没有值优先使用 初始化传入的值
9373
+ /**
9374
+ * 展示封面 这里不对 poster 进行缓存, 如果有值优先使用, 如果没有值优先使用 初始化传入的值
9366
9375
  */ _proto.show = function show(playing, always) {
9367
9376
  var _this = this;
9368
9377
  var _this_$container_classList, _this_$container;
@@ -9407,8 +9416,8 @@ var PAUSE_DEFAULT_OPTIONS = {};
9407
9416
  }, 300);
9408
9417
  }, 10);
9409
9418
  };
9410
- /**
9411
- * 销毁
9419
+ /**
9420
+ * 销毁
9412
9421
  */ _proto.destroy = function destroy() {
9413
9422
  if (this._timer) {
9414
9423
  clearTimeout(this._timer);
@@ -9696,10 +9705,10 @@ var AUTH_KEY = [
9696
9705
  'recDropdown',
9697
9706
  'alarmMessage'
9698
9707
  ];
9699
- /**
9700
- * 渲染控件
9701
- * @param $container - 控件渲染节点
9702
- * @param btnList - 控件按钮列表
9708
+ /**
9709
+ * 渲染控件
9710
+ * @param $container - 控件渲染节点
9711
+ * @param btnList - 控件按钮列表
9703
9712
  */ // prettier-ignore
9704
9713
  function _renderControls(theme, $container, btnList, props) {
9705
9714
  if (props === void 0) props = {};
@@ -10101,27 +10110,27 @@ var _renderRecType = function _renderRecType(theme, container, recType, props) {
10101
10110
  if ((_theme_controls1 = theme.controls) == null ? void 0 : _theme_controls1['recControl']) ((_theme_controls2 = theme.controls) == null ? void 0 : _theme_controls2['recControl']).addRecType(recType);
10102
10111
  };
10103
10112
 
10104
- /**
10105
- * 布局溢出(More 收纳)与响应式尺寸分档的**纯函数**模块。
10106
- *
10107
- * @remarks
10108
- * 这些函数只做「计算 / 判定」,不含任何 DOM 副作用,因此可以在没有布局引擎的环境(如 jsdom)
10109
- * 中被完整单元测试。`theme.ts` 中的命令式外壳(读取 `clientWidth`、增删 class、创建 More、
10110
- * 搬移控件)负责副作用,具体的判定逻辑全部下沉到这里。
10111
- */ /**
10112
- * 一次 classList 变更集合:需要添加与需要移除的类名。
10113
- */ /**
10114
- * 根据尺寸计算某一维度(宽或高)需要增删的响应式档位类名。
10115
- *
10116
- * 档位规则:
10117
- * - `(280, 375]` → medium
10118
- * - `(200, 280]` → small
10119
- * - `<= 200` → mini
10120
- * - 其它(> 375)→ 无档位(移除全部)
10121
- *
10122
- * @param size 尺寸(px)
10123
- * @param axis `'width'` 或 `'height'`
10124
- * @param prefix 类名前缀(如 `ezplayer`)
10113
+ /**
10114
+ * 布局溢出(More 收纳)与响应式尺寸分档的**纯函数**模块。
10115
+ *
10116
+ * @remarks
10117
+ * 这些函数只做「计算 / 判定」,不含任何 DOM 副作用,因此可以在没有布局引擎的环境(如 jsdom)
10118
+ * 中被完整单元测试。`theme.ts` 中的命令式外壳(读取 `clientWidth`、增删 class、创建 More、
10119
+ * 搬移控件)负责副作用,具体的判定逻辑全部下沉到这里。
10120
+ */ /**
10121
+ * 一次 classList 变更集合:需要添加与需要移除的类名。
10122
+ */ /**
10123
+ * 根据尺寸计算某一维度(宽或高)需要增删的响应式档位类名。
10124
+ *
10125
+ * 档位规则:
10126
+ * - `(280, 375]` → medium
10127
+ * - `(200, 280]` → small
10128
+ * - `<= 200` → mini
10129
+ * - 其它(> 375)→ 无档位(移除全部)
10130
+ *
10131
+ * @param size 尺寸(px)
10132
+ * @param axis `'width'` 或 `'height'`
10133
+ * @param prefix 类名前缀(如 `ezplayer`)
10125
10134
  */ function computeDimensionClasses(size, axis, prefix) {
10126
10135
  var medium = prefix + "-medium-" + axis;
10127
10136
  var small = prefix + "-small-" + axis;
@@ -10147,11 +10156,11 @@ var _renderRecType = function _renderRecType(theme, container, recType, props) {
10147
10156
  remove: remove
10148
10157
  };
10149
10158
  }
10150
- /**
10151
- * 计算宽、高两个维度的响应式档位类名增删集合。
10152
- * @param width 容器宽度(px)
10153
- * @param height 容器高度(px)
10154
- * @param prefix 类名前缀
10159
+ /**
10160
+ * 计算宽、高两个维度的响应式档位类名增删集合。
10161
+ * @param width 容器宽度(px)
10162
+ * @param height 容器高度(px)
10163
+ * @param prefix 类名前缀
10155
10164
  */ function computeSizeClasses(width, height, prefix) {
10156
10165
  var w = computeDimensionClasses(width, 'width', prefix);
10157
10166
  var h = computeDimensionClasses(height, 'height', prefix);
@@ -10160,34 +10169,34 @@ var _renderRecType = function _renderRecType(theme, container, recType, props) {
10160
10169
  remove: [].concat(w.remove, h.remove)
10161
10170
  };
10162
10171
  }
10163
- /**
10164
- * header 左右控件宽度之和 + 30 是否超过容器宽度 —— 超过则需要显示 More。
10172
+ /**
10173
+ * header 左右控件宽度之和 + 30 是否超过容器宽度 —— 超过则需要显示 More。
10165
10174
  */ function shouldShowHeaderMore(width, leftWidth, rightWidth) {
10166
10175
  return leftWidth + rightWidth + 30 > width;
10167
10176
  }
10168
- /**
10169
- * header 剩余空间是否 > 100 —— 足够则可以移除 More,把控件放回工具栏。
10177
+ /**
10178
+ * header 剩余空间是否 > 100 —— 足够则可以移除 More,把控件放回工具栏。
10170
10179
  */ function shouldRemoveHeaderMore(width, leftWidth, rightWidth) {
10171
10180
  return width - leftWidth - rightWidth > 100;
10172
10181
  }
10173
- /**
10174
- * footer 剩余空间是否 < 16 —— 不足则需要把控件收拢进 More。
10182
+ /**
10183
+ * footer 剩余空间是否 < 16 —— 不足则需要把控件收拢进 More。
10175
10184
  */ function shouldCollapseFooter(width, leftWidth, rightWidth) {
10176
10185
  return width - leftWidth - rightWidth < 16;
10177
10186
  }
10178
- /**
10179
- * footer 从 More 中释放控件时的展开阈值。
10180
- *
10181
- * 基准为 50;当 More 中已有控件时,加上首个控件宽度(保持与历史实现一致的运算与兜底:
10182
- * `50 + firstItemWidth || 0`)。
10183
- * @param firstItemWidth More 列表中第一个控件的宽度;未提供表示 More 为空。
10187
+ /**
10188
+ * footer 从 More 中释放控件时的展开阈值。
10189
+ *
10190
+ * 基准为 50;当 More 中已有控件时,加上首个控件宽度(保持与历史实现一致的运算与兜底:
10191
+ * `50 + firstItemWidth || 0`)。
10192
+ * @param firstItemWidth More 列表中第一个控件的宽度;未提供表示 More 为空。
10184
10193
  */ function computeFooterExpandOffset(firstItemWidth) {
10185
10194
  var base = 50;
10186
10195
  if (firstItemWidth === undefined) return base;
10187
10196
  return base + firstItemWidth || 0;
10188
10197
  }
10189
- /**
10190
- * footer 剩余空间是否足够把一个控件从 More 释放回工具栏。
10198
+ /**
10199
+ * footer 剩余空间是否足够把一个控件从 More 释放回工具栏。
10191
10200
  */ function shouldExpandFooter(width, leftWidth, rightWidth, offset) {
10192
10201
  return width - leftWidth - rightWidth > offset;
10193
10202
  }
@@ -11861,7 +11870,7 @@ var THEME_DEFAULT_OPTIONS = {
11861
11870
  zh: zh,
11862
11871
  en: en
11863
11872
  };
11864
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.3';
11873
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.4';
11865
11874
 
11866
11875
  exports.Control = Control;
11867
11876
  exports.EVENTS = EVENTS;