@ezuikit/player-theme 3.1.3-beta.1 → 3.1.3-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.3-beta.1
3
- * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.3
3
+ * Copyright (c) 2026-08-19 18:26:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  /**
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.3-beta.1
3
- * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.3
3
+ * Copyright (c) 2026-08-19 18:26:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -9843,9 +9843,8 @@ function _renderTheme(theme, data) {
9843
9843
  _needTimeLine = list.some(function(item) {
9844
9844
  return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9845
9845
  }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
9846
- // 处于播放区间约束中时不渲染日历:区间必然在同一天内,切到任何其它日期都会越界
9847
9846
  _hasPlaybackRange = !!((_theme_playbackRange = theme.playbackRange) == null ? void 0 : _theme_playbackRange.begin) && !!((_theme_playbackRange1 = theme.playbackRange) == null ? void 0 : _theme_playbackRange1.end);
9848
- _needDatePicker = theme.options.dateOptions !== null && !_hasPlaybackRange;
9847
+ _needDatePicker = theme.options.dateOptions !== null;
9849
9848
  theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
9850
9849
  // PC 单独渲染timeLine
9851
9850
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
@@ -11321,6 +11320,9 @@ var THEME_DEFAULT_OPTIONS = {
11321
11320
  * ```
11322
11321
  */ function get() {
11323
11322
  return this._videoInfo || {};
11323
+ },
11324
+ set: function set(info) {
11325
+ this._videoInfo = info;
11324
11326
  }
11325
11327
  },
11326
11328
  {
@@ -11763,7 +11765,7 @@ var THEME_DEFAULT_OPTIONS = {
11763
11765
  zh: zh,
11764
11766
  en: en
11765
11767
  };
11766
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.1';
11768
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.3';
11767
11769
 
11768
11770
  exports.Control = Control;
11769
11771
  exports.EVENTS = EVENTS;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.3-beta.1
3
- * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.3
3
+ * Copyright (c) 2026-08-19 18:26:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -9841,9 +9841,8 @@ function _renderTheme(theme, data) {
9841
9841
  _needTimeLine = list.some(function(item) {
9842
9842
  return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9843
9843
  }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
9844
- // 处于播放区间约束中时不渲染日历:区间必然在同一天内,切到任何其它日期都会越界
9845
9844
  _hasPlaybackRange = !!((_theme_playbackRange = theme.playbackRange) == null ? void 0 : _theme_playbackRange.begin) && !!((_theme_playbackRange1 = theme.playbackRange) == null ? void 0 : _theme_playbackRange1.end);
9846
- _needDatePicker = theme.options.dateOptions !== null && !_hasPlaybackRange;
9845
+ _needDatePicker = theme.options.dateOptions !== null;
9847
9846
  theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
9848
9847
  // PC 单独渲染timeLine
9849
9848
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
@@ -11319,6 +11318,9 @@ var THEME_DEFAULT_OPTIONS = {
11319
11318
  * ```
11320
11319
  */ function get() {
11321
11320
  return this._videoInfo || {};
11321
+ },
11322
+ set: function set(info) {
11323
+ this._videoInfo = info;
11322
11324
  }
11323
11325
  },
11324
11326
  {
@@ -11761,6 +11763,6 @@ var THEME_DEFAULT_OPTIONS = {
11761
11763
  zh: zh,
11762
11764
  en: en
11763
11765
  };
11764
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.1';
11766
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.3';
11765
11767
 
11766
11768
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.3-beta.1
3
- * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.3
3
+ * Copyright (c) 2026-08-19 18:26:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -11842,9 +11842,8 @@
11842
11842
  _needTimeLine = list.some(function(item) {
11843
11843
  return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
11844
11844
  }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
11845
- // 处于播放区间约束中时不渲染日历:区间必然在同一天内,切到任何其它日期都会越界
11846
11845
  _hasPlaybackRange = !!((_theme_playbackRange = theme.playbackRange) == null ? void 0 : _theme_playbackRange.begin) && !!((_theme_playbackRange1 = theme.playbackRange) == null ? void 0 : _theme_playbackRange1.end);
11847
- _needDatePicker = theme.options.dateOptions !== null && !_hasPlaybackRange;
11846
+ _needDatePicker = theme.options.dateOptions !== null;
11848
11847
  theme.$container.classList.remove("" + PREFIX_CLASS$1 + "-has-time-line");
11849
11848
  // PC 单独渲染timeLine
11850
11849
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
@@ -13320,6 +13319,9 @@
13320
13319
  * ```
13321
13320
  */ function get() {
13322
13321
  return this._videoInfo || {};
13322
+ },
13323
+ set: function set(info) {
13324
+ this._videoInfo = info;
13323
13325
  }
13324
13326
  },
13325
13327
  {
@@ -13762,7 +13764,7 @@
13762
13764
  zh: zh,
13763
13765
  en: en
13764
13766
  };
13765
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.1';
13767
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.3';
13766
13768
 
13767
13769
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
13768
13770
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.3-beta.1
3
- * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.3
3
+ * Copyright (c) 2026-08-19 18:26:29 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -2136,25 +2136,13 @@ declare class Theme extends EventEmitter {
2136
2136
  BTN_PLAY: string;
2137
2137
  BTN_PAUSE: string;
2138
2138
  BTN_VOLUME: string;
2139
- BTN_MUTED: string; /**
2140
- * 视频分辨率 宽
2141
- *
2142
- * @version 3.1.2
2143
- *
2144
- * ```ts
2145
- * theme.videoWidth // number
2146
- * ```
2147
- */
2139
+ BTN_MUTED: string;
2148
2140
  BTN_RECORDVIDEO: string;
2149
2141
  BTN_CAPTURE: string;
2150
2142
  BTN_TALK: string;
2151
2143
  BTN_BROADCAST: string;
2152
2144
  BTN_AICHAT: string;
2153
2145
  BTN_LIVE: string;
2154
- /**
2155
- * 视频分辨率 高
2156
- * @version 3.1.2
2157
- */
2158
2146
  BTN_REC_DROPDOWN: string;
2159
2147
  BTN_ALARM_MESSAGE: string;
2160
2148
  REC_DROPDOWN_CLOUD_REC: string;
@@ -2216,7 +2204,14 @@ declare class Theme extends EventEmitter {
2216
2204
  WEB_FULLSCREEN: string;
2217
2205
  WEB_FULLSCREEN_EXIT: string;
2218
2206
  DESTROY: string;
2219
- GET_CAPACITY: string;
2207
+ GET_CAPACITY: string; /**
2208
+ * 静音
2209
+ * @example
2210
+ * ```ts
2211
+ * // 事件监听
2212
+ * theme.on(Theme.EVENTS.volumechange, (volume: number, muted: boolean) => {})
2213
+ * ```
2214
+ */
2220
2215
  GET_PTZ_STATUS: string;
2221
2216
  GET_PTZ_STATUS_FAILED: string;
2222
2217
  MOBILE_HIDE_PTZ: string;
@@ -2413,6 +2408,7 @@ declare class Theme extends EventEmitter {
2413
2408
  * ```
2414
2409
  */
2415
2410
  get videoInfo(): ThemeVideoInfo;
2411
+ set videoInfo(info: ThemeVideoInfo);
2416
2412
  /**
2417
2413
  * 视频分辨率 宽
2418
2414
  *
@@ -2745,7 +2741,7 @@ declare class Theme extends EventEmitter {
2745
2741
  * @param url 录像 url
2746
2742
  * @returns {"rec" | "cloudRecord" | "cloudRec" | ""} 录像类型, rec: 录像, cloudRec: 云录像, cloudRecord: 云录制
2747
2743
  */
2748
- protected _getRecType(url: string): "" | "rec" | "cloudRec" | "cloudRecord";
2744
+ protected _getRecType(url: string): "" | "cloudRec" | "cloudRecord" | "rec";
2749
2745
  private resetControl;
2750
2746
  /**
2751
2747
  * 窗口全屏后旋转 90度判断, 然后设置控件已经旋转 90度, 为了解决控件交互问题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "3.1.3-beta.1",
3
+ "version": "3.1.3-beta.3",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.cjs",
@@ -38,10 +38,10 @@
38
38
  "@ezuikit/utils-logger": "^2.0.1",
39
39
  "@ezuikit/utils-tools": "^2.0.6",
40
40
  "@ezuikit/control-date-picker": "2.1.2-beta.1",
41
- "@ezuikit/control-segment-progress": "0.0.1",
42
41
  "@ezuikit/control-time-line": "2.1.0",
43
42
  "@ezuikit/control-ptz": "1.0.0",
44
43
  "@ezuikit/control-rec-list-modal": "0.0.1",
44
+ "@ezuikit/control-segment-progress": "0.0.1",
45
45
  "@ezuikit/control-zoom": "1.0.0-beta.4",
46
46
  "@juggle/resize-observer": "^3.4.0",
47
47
  "@skax/delegate": "4.0.2",