@ezuikit/player-theme 3.1.5-beta.2 → 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/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.5-beta.2
3
- * Copyright (c) 2026-09-04 02:44:28 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
  require("./style.css");
@@ -1505,7 +1505,7 @@ declare class Theme extends EventEmitter {
1505
1505
  readonly fullscreen: "fullscreen";
1506
1506
  readonly exitFullscreen: "exitFullscreen";
1507
1507
  readonly fullscreenChange: "fullscreenChange";
1508
- readonly resize: "resize";
1508
+ readonly resize: "resize"; /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */
1509
1509
  readonly orientationChange: "orientationChange";
1510
1510
  readonly audioCodecUnsupported: "audioCodecUnsupported";
1511
1511
  readonly changeTheme: "changeTheme";
@@ -1514,12 +1514,6 @@ declare class Theme extends EventEmitter {
1514
1514
  readonly speedChange: "speedChange";
1515
1515
  readonly recordingChange: "recordingChange";
1516
1516
  readonly talkingChange: "talkingChange";
1517
- /**
1518
- * @type { "rec" | "cloudRec" | "cloudRecord" } recType 回放类型
1519
- * ```ts
1520
- * theme.recType // 回放类型
1521
- * ```
1522
- */
1523
1517
  readonly talkVolumeChange: "talkVolumeChange";
1524
1518
  readonly broadcastChange: "broadcastChange";
1525
1519
  readonly aichatChange: "aichatChange";
@@ -1530,11 +1524,12 @@ declare class Theme extends EventEmitter {
1530
1524
  readonly setLoggerOptions: "setLoggerOptions";
1531
1525
  readonly records: "records";
1532
1526
  readonly ptzSpeedChange: "ptzSpeedChange";
1527
+ /** 回放底部时间轴 @since 0.0.1 @private */
1533
1528
  readonly setVideoLevelList: "setVideoLevelList";
1534
1529
  readonly currentVideoLevel: "currentVideoLevel";
1535
1530
  readonly currentVideoLevelAuto: "currentVideoLevelAuto";
1536
1531
  readonly setAllDayRecTimes: "setAllDayRecTimes";
1537
- readonly getOSDTime: "getOSDTime";
1532
+ readonly getOSDTime: "getOSDTime"; /** @since 0.0.1 @private */
1538
1533
  readonly playbackEnd: "playbackEnd";
1539
1534
  readonly control: {
1540
1535
  readonly play: "Control.play";
@@ -1548,7 +1543,7 @@ declare class Theme extends EventEmitter {
1548
1543
  readonly controlsBarOpenChange: "Control.controlsBarOpenChange";
1549
1544
  readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
1550
1545
  readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
1551
- readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange"; /** 清晰度列表 */
1546
+ readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
1552
1547
  readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
1553
1548
  readonly deviceDestroy: "Control.deviceDestroy";
1554
1549
  readonly recTypeChange: "Control.recTypeChange";
@@ -1749,7 +1744,7 @@ declare class Theme extends EventEmitter {
1749
1744
  OPEN_INSTRUCTIONS: string;
1750
1745
  INIT_FINSHED: string;
1751
1746
  INIT_SUCCESS: string;
1752
- GET_PLAYURL_FAILED: string; /** 所有私有流的模板 @since 0.0.1 */
1747
+ GET_PLAYURL_FAILED: string;
1753
1748
  VIDEO_LOADING: string;
1754
1749
  DISCONNECT: string;
1755
1750
  DEVICE_ENCRYPTED: string;
@@ -1769,6 +1764,8 @@ declare class Theme extends EventEmitter {
1769
1764
  GET_SPEED: string;
1770
1765
  MAX_SPEED_LIMIT: string;
1771
1766
  MIN_SPEED_LIMIT: string;
1767
+ SPEED_SWITCH_ERRROR: string;
1768
+ SPEED_SWITCH_NOT_SUPPORT: string;
1772
1769
  SEEK_CANNOT_CROSS_DAYS: string;
1773
1770
  SEEK_TIMEFORMAT_ERROR: string;
1774
1771
  PAUSE: string;
@@ -1780,7 +1777,7 @@ declare class Theme extends EventEmitter {
1780
1777
  NO_CLOUD_RECORD: string;
1781
1778
  CHANGE_VIDEO_LEVEL: string;
1782
1779
  CHANGE_VIDEO_LEVEL_FAIL: string;
1783
- GET_VIDEO_LEVEL_LIST: string;
1780
+ GET_VIDEO_LEVEL_LIST: string; /** 消息提示控件 @since 0.0.1 @private */
1784
1781
  PLEASE_INPUT_RIGHT_VIDEO_LEVEL: string;
1785
1782
  VIDEO_LEVEL_NOT_SUPPORT: string;
1786
1783
  VIDEO_LEVEL_AUTO: string;
@@ -1810,7 +1807,10 @@ declare class Theme extends EventEmitter {
1810
1807
  BTN_ZOOM: string;
1811
1808
  BTN_3D_ZOOM: string;
1812
1809
  BTN_PTZ: string;
1813
- BTN_GLOBAL_FULLSCREEN: string;
1810
+ BTN_GLOBAL_FULLSCREEN: string; /**
1811
+ * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
1812
+ * @private
1813
+ */
1814
1814
  BTN_EXIT_GLOBAL_FULLSCREEN: string;
1815
1815
  BTN_FULLSCREEN: string;
1816
1816
  BTN_EXIR_FULLSCREEN: string;
@@ -1823,7 +1823,7 @@ declare class Theme extends EventEmitter {
1823
1823
  BTN_TIME: string;
1824
1824
  BTN_MORE: string;
1825
1825
  DEVICE_NAME: string;
1826
- DEVICE_ID: string; /** resizeObserver 监听销毁 */
1826
+ DEVICE_ID: string;
1827
1827
  CAPTURE_SUCCESS: string;
1828
1828
  CAPTURE_FAILED: string;
1829
1829
  START_RECORD_SUCCESS: string;
@@ -1834,9 +1834,10 @@ declare class Theme extends EventEmitter {
1834
1834
  RECORDS: string;
1835
1835
  OPEN_SOUND: string;
1836
1836
  CLOSE_SOUND: string;
1837
- SOUND_OPENED: string;
1837
+ SOUND_OPENED: string; /** 容器的宽 */
1838
1838
  ZOOM: string;
1839
1839
  START_ZOOM: string;
1840
+ /** 容器的高 */
1840
1841
  CLOSE_ZOOM: string;
1841
1842
  ZOOM_ADD: string;
1842
1843
  ZOOM_SUB: string;
@@ -1849,11 +1850,10 @@ declare class Theme extends EventEmitter {
1849
1850
  '3D_ZOOM_DISABLE': string;
1850
1851
  '3D_ZOOM_FAILED': string;
1851
1852
  START_3D_ZOOM: string;
1852
- CLOSE_3D_ZOOM: string; /** 对讲中 @private */
1853
+ CLOSE_3D_ZOOM: string;
1853
1854
  DEVICE_NOT_SUPPORT_3D_ZOOM: string;
1854
1855
  '3D_ZOOM_ACTIVED': string;
1855
1856
  '3D_ZOOM_NOT_ACTIVED': string;
1856
- /** 清晰度列表 */
1857
1857
  '3D_ZOOM_CLOSED': string;
1858
1858
  CHANGE_ZOOM_TYPE: string;
1859
1859
  FULLSCREEN: string;
@@ -1862,20 +1862,21 @@ declare class Theme extends EventEmitter {
1862
1862
  WEB_FULLSCREEN: string;
1863
1863
  WEB_FULLSCREEN_EXIT: string;
1864
1864
  DESTROY: string;
1865
+ /** 回放片段列表 */
1865
1866
  GET_CAPACITY: string;
1866
1867
  GET_PTZ_STATUS: string;
1867
1868
  GET_PTZ_STATUS_FAILED: string;
1868
1869
  MOBILE_HIDE_PTZ: string;
1869
1870
  OPTION_PTZ_FAILED: string;
1870
1871
  MOBILE_PTZ_TIPS: string;
1871
- PTZ_FAST: string;
1872
+ PTZ_FAST: string; /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */
1872
1873
  PTZ_MID: string;
1873
1874
  PTZ_SLOW: string;
1875
+ PTZ_SPEED: string;
1876
+ DEVICE_ZOOM: string;
1874
1877
  /**
1875
1878
  * 录像回放的月份列表 @private
1876
1879
  */
1877
- PTZ_SPEED: string;
1878
- DEVICE_ZOOM: string;
1879
1880
  DEVICE_FOCUS: string;
1880
1881
  /**
1881
1882
  * 录像回放的月份列表 @private
@@ -1965,11 +1966,8 @@ declare class Theme extends EventEmitter {
1965
1966
  396101: string;
1966
1967
  396102: string;
1967
1968
  396103: string;
1968
- 396104: string; /** 回放底部时间轴 @since 0.0.1 @private */
1969
- 396105: string; /**
1970
- * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
1971
- * @private
1972
- */
1969
+ 396104: string;
1970
+ 396105: string;
1973
1971
  396106: string;
1974
1972
  396107: string;
1975
1973
  396108: string;
@@ -1983,7 +1981,7 @@ declare class Theme extends EventEmitter {
1983
1981
  396506: string;
1984
1982
  396508: string;
1985
1983
  396509: string;
1986
- 396510: string;
1984
+ 396510: string; /** 静音 */
1987
1985
  396511: string;
1988
1986
  396512: string;
1989
1987
  396513: string;
@@ -1992,12 +1990,18 @@ declare class Theme extends EventEmitter {
1992
1990
  396516: string;
1993
1991
  396517: string;
1994
1992
  396518: string;
1993
+ 396519: string;
1995
1994
  /**
1996
1995
  * 录像回放的月份列表 @private
1997
1996
  */
1998
- 396519: string;
1999
1997
  396520: string;
1998
+ /**
1999
+ * 录像回放的月份列表 @private
2000
+ */
2000
2001
  396700: string;
2002
+ /**
2003
+ * 录像回放的月份列表 @private
2004
+ */
2001
2005
  396701: string;
2002
2006
  397001: string;
2003
2007
  397002: string;
@@ -2060,6 +2064,8 @@ declare class Theme extends EventEmitter {
2060
2064
  GET_SPEED: string;
2061
2065
  MAX_SPEED_LIMIT: string;
2062
2066
  MIN_SPEED_LIMIT: string;
2067
+ SPEED_SWITCH_ERRROR: string;
2068
+ SPEED_SWITCH_NOT_SUPPORT: string;
2063
2069
  SEEK_CANNOT_CROSS_DAYS: string;
2064
2070
  SEEK_TIMEFORMAT_ERROR: string;
2065
2071
  PAUSE: string;
@@ -2080,25 +2086,13 @@ declare class Theme extends EventEmitter {
2080
2086
  VIDEO_LEVEL_HEIGH: string;
2081
2087
  VIDEO_LEVEL_SUPER: string;
2082
2088
  VIDEO_LEVEL_EXTREME: string;
2083
- /**
2084
- * 视频分辨率 宽
2085
- *
2086
- * @version 3.1.2
2087
- *
2088
- * ```ts
2089
- * theme.videoWidth // number
2090
- * ```
2091
- */
2092
2089
  VIDEO_LEVEL_3K: string;
2093
2090
  VIDEO_LEVEL_4k: string;
2094
2091
  RESET_THEME: string;
2095
2092
  BTN_PLAY: string;
2096
2093
  BTN_PAUSE: string;
2097
2094
  BTN_VOLUME: string;
2098
- BTN_MUTED: string; /**
2099
- * 视频分辨率 高
2100
- * @version 3.1.2
2101
- */
2095
+ BTN_MUTED: string;
2102
2096
  BTN_RECORDVIDEO: string;
2103
2097
  BTN_CAPTURE: string;
2104
2098
  BTN_TALK: string;
@@ -2170,14 +2164,11 @@ declare class Theme extends EventEmitter {
2170
2164
  GET_PTZ_STATUS: string;
2171
2165
  GET_PTZ_STATUS_FAILED: string;
2172
2166
  MOBILE_HIDE_PTZ: string;
2173
- /**
2174
- * 是否在缩放中
2175
- */
2176
- OPTION_PTZ_FAILED: string; /**
2167
+ OPTION_PTZ_FAILED: string;
2168
+ MOBILE_PTZ_TIPS: string;
2169
+ PTZ_FAST: string; /**
2177
2170
  * 是否在缩放中
2178
2171
  */
2179
- MOBILE_PTZ_TIPS: string;
2180
- PTZ_FAST: string;
2181
2172
  PTZ_MID: string;
2182
2173
  PTZ_SLOW: string;
2183
2174
  PTZ_SPEED: string;
@@ -2879,6 +2870,8 @@ interface ThemeOptions {
2879
2870
  * 9.x 开始弃用 请使用 timeLineOptions: null来关闭时间轴
2880
2871
  */
2881
2872
  disabledTimeLine?: boolean;
2873
+ /** 是萤石的播放地址,默认 true, 仅对标准流很有效 */
2874
+ isEzviz?: boolean;
2882
2875
  [kye: string]: any;
2883
2876
  }
2884
2877
  interface ThemeVideoInfo {
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "@ezuikit/player-theme",
3
- "version": "3.1.5-beta.2",
4
- "description": "player theme",
5
- "title": "theme",
6
- "main": "dist/index.cjs",
7
- "module": "dist/index.esm.js",
8
- "types": "dist/types/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/types/index.d.ts",
12
- "import": "./dist/index.esm.js",
13
- "require": "./dist/index.cjs",
14
- "default": "./dist/index.cjs"
15
- },
16
- "./dist/style.js": "./dist/style.js",
17
- "./dist/style": "./dist/style.js",
18
- "./dist/style.css": "./dist/style.css",
19
- "./dist/constant.js": "./dist/constant.js",
20
- "./dist/constant": "./dist/constant.js"
21
- },
22
- "files": [
23
- "dist",
24
- "!dist/*.map"
25
- ],
26
- "keywords": [
27
- "player",
28
- "theme",
29
- "ezuikit",
30
- "ezviz",
31
- "ezopen",
32
- "ui"
33
- ],
34
- "author": "Ezviz-OpenBiz",
35
- "license": "MIT",
36
- "dependencies": {
37
- "@ezuikit/utils-i18n": "^2.0.1",
38
- "@ezuikit/utils-logger": "^2.0.1",
39
- "@ezuikit/utils-tools": "^2.0.7",
40
- "@ezuikit/control-date-picker": "2.1.2-beta.1",
41
- "@ezuikit/control-time-line": "2.1.0",
42
- "@ezuikit/control-ptz": "1.0.0",
43
- "@ezuikit/control-rec-list-modal": "0.0.1",
44
- "@ezuikit/control-segment-progress": "0.0.1",
45
- "@ezuikit/control-zoom": "1.0.0-beta.4",
46
- "@juggle/resize-observer": "^3.4.0",
47
- "@skax/delegate": "4.0.2",
48
- "@skax/picker": "1.1.8",
49
- "deepmerge": "^4.3.1",
50
- "eventemitter3": "^5.0.1",
51
- "screenfull": "5.2.0"
52
- },
53
- "publishConfig": {
54
- "access": "public",
55
- "registry": "https://registry.npmjs.org/"
56
- },
57
- "repository": {
58
- "type": "git",
59
- "url": "git+https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme.git"
60
- },
61
- "bugs": {
62
- "url": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme/issues"
63
- },
64
- "homepage": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme#readme"
65
- }
1
+ {
2
+ "name": "@ezuikit/player-theme",
3
+ "version": "3.1.5-beta.4",
4
+ "description": "player theme",
5
+ "title": "theme",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/types/index.d.ts",
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs",
14
+ "default": "./dist/index.cjs"
15
+ },
16
+ "./dist/style.js": "./dist/style.js",
17
+ "./dist/style": "./dist/style.js",
18
+ "./dist/style.css": "./dist/style.css",
19
+ "./dist/constant.js": "./dist/constant.js",
20
+ "./dist/constant": "./dist/constant.js"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "!dist/*.map"
25
+ ],
26
+ "keywords": [
27
+ "player",
28
+ "theme",
29
+ "ezuikit",
30
+ "ezviz",
31
+ "ezopen",
32
+ "ui"
33
+ ],
34
+ "author": "Ezviz-OpenBiz",
35
+ "license": "MIT",
36
+ "dependencies": {
37
+ "@ezuikit/utils-i18n": "^2.0.1",
38
+ "@ezuikit/utils-logger": "^2.0.1",
39
+ "@ezuikit/utils-tools": "^2.0.7",
40
+ "@ezuikit/control-date-picker": "2.1.2-beta.1",
41
+ "@ezuikit/control-time-line": "2.1.0",
42
+ "@ezuikit/control-ptz": "1.0.0",
43
+ "@ezuikit/control-rec-list-modal": "0.0.2",
44
+ "@ezuikit/control-segment-progress": "0.0.1",
45
+ "@ezuikit/control-zoom": "1.0.0-beta.4",
46
+ "@juggle/resize-observer": "^3.4.0",
47
+ "@skax/delegate": "4.0.2",
48
+ "@skax/picker": "1.1.8",
49
+ "deepmerge": "^4.3.1",
50
+ "eventemitter3": "^5.0.1",
51
+ "screenfull": "5.2.0"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public",
55
+ "registry": "https://registry.npmjs.org/"
56
+ },
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme.git"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme/issues"
63
+ },
64
+ "homepage": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme#readme"
65
+ }