@ezuikit/player-theme 3.1.3-beta.3 → 3.1.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constant.js +2 -2
- package/dist/index.cjs +15 -3
- package/dist/index.esm.js +15 -3
- package/dist/index.umd.js +15 -3
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +38 -97
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.1.
|
|
3
|
-
* Copyright (c) 2026-08-19
|
|
2
|
+
* @ezuikit/player-theme v3.1.4-beta.2
|
|
3
|
+
* Copyright (c) 2026-08-27 19:42:35 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -3317,6 +3317,12 @@ var en = {
|
|
|
3317
3317
|
defaultActive: 0,
|
|
3318
3318
|
isrender: 1
|
|
3319
3319
|
},
|
|
3320
|
+
{
|
|
3321
|
+
iconId: 'recordvideo',
|
|
3322
|
+
part: 'left',
|
|
3323
|
+
defaultActive: 0,
|
|
3324
|
+
isrender: 1
|
|
3325
|
+
},
|
|
3320
3326
|
{
|
|
3321
3327
|
iconId: 'zoom',
|
|
3322
3328
|
part: 'left',
|
|
@@ -3364,6 +3370,12 @@ var en = {
|
|
|
3364
3370
|
defaultActive: 0,
|
|
3365
3371
|
isrender: 1
|
|
3366
3372
|
},
|
|
3373
|
+
{
|
|
3374
|
+
iconId: 'recordvideo',
|
|
3375
|
+
part: 'left',
|
|
3376
|
+
defaultActive: 0,
|
|
3377
|
+
isrender: 1
|
|
3378
|
+
},
|
|
3367
3379
|
{
|
|
3368
3380
|
iconId: 'zoom',
|
|
3369
3381
|
part: 'left',
|
|
@@ -11765,7 +11777,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11765
11777
|
zh: zh,
|
|
11766
11778
|
en: en
|
|
11767
11779
|
};
|
|
11768
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11780
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.4-beta.2';
|
|
11769
11781
|
|
|
11770
11782
|
exports.Control = Control;
|
|
11771
11783
|
exports.EVENTS = EVENTS;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.1.
|
|
3
|
-
* Copyright (c) 2026-08-19
|
|
2
|
+
* @ezuikit/player-theme v3.1.4-beta.2
|
|
3
|
+
* Copyright (c) 2026-08-27 19:42:35 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -3315,6 +3315,12 @@ var en = {
|
|
|
3315
3315
|
defaultActive: 0,
|
|
3316
3316
|
isrender: 1
|
|
3317
3317
|
},
|
|
3318
|
+
{
|
|
3319
|
+
iconId: 'recordvideo',
|
|
3320
|
+
part: 'left',
|
|
3321
|
+
defaultActive: 0,
|
|
3322
|
+
isrender: 1
|
|
3323
|
+
},
|
|
3318
3324
|
{
|
|
3319
3325
|
iconId: 'zoom',
|
|
3320
3326
|
part: 'left',
|
|
@@ -3362,6 +3368,12 @@ var en = {
|
|
|
3362
3368
|
defaultActive: 0,
|
|
3363
3369
|
isrender: 1
|
|
3364
3370
|
},
|
|
3371
|
+
{
|
|
3372
|
+
iconId: 'recordvideo',
|
|
3373
|
+
part: 'left',
|
|
3374
|
+
defaultActive: 0,
|
|
3375
|
+
isrender: 1
|
|
3376
|
+
},
|
|
3365
3377
|
{
|
|
3366
3378
|
iconId: 'zoom',
|
|
3367
3379
|
part: 'left',
|
|
@@ -11763,6 +11775,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11763
11775
|
zh: zh,
|
|
11764
11776
|
en: en
|
|
11765
11777
|
};
|
|
11766
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
11778
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.4-beta.2';
|
|
11767
11779
|
|
|
11768
11780
|
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
|
-
* Copyright (c) 2026-08-19
|
|
2
|
+
* @ezuikit/player-theme v3.1.4-beta.2
|
|
3
|
+
* Copyright (c) 2026-08-27 19:42:35 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -4804,6 +4804,12 @@
|
|
|
4804
4804
|
defaultActive: 0,
|
|
4805
4805
|
isrender: 1
|
|
4806
4806
|
},
|
|
4807
|
+
{
|
|
4808
|
+
iconId: 'recordvideo',
|
|
4809
|
+
part: 'left',
|
|
4810
|
+
defaultActive: 0,
|
|
4811
|
+
isrender: 1
|
|
4812
|
+
},
|
|
4807
4813
|
{
|
|
4808
4814
|
iconId: 'zoom',
|
|
4809
4815
|
part: 'left',
|
|
@@ -4851,6 +4857,12 @@
|
|
|
4851
4857
|
defaultActive: 0,
|
|
4852
4858
|
isrender: 1
|
|
4853
4859
|
},
|
|
4860
|
+
{
|
|
4861
|
+
iconId: 'recordvideo',
|
|
4862
|
+
part: 'left',
|
|
4863
|
+
defaultActive: 0,
|
|
4864
|
+
isrender: 1
|
|
4865
|
+
},
|
|
4854
4866
|
{
|
|
4855
4867
|
iconId: 'zoom',
|
|
4856
4868
|
part: 'left',
|
|
@@ -13764,7 +13776,7 @@
|
|
|
13764
13776
|
zh: zh,
|
|
13765
13777
|
en: en
|
|
13766
13778
|
};
|
|
13767
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.
|
|
13779
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.4-beta.2';
|
|
13768
13780
|
|
|
13769
13781
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13770
13782
|
|
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1500,7 +1500,7 @@ declare class Theme extends EventEmitter {
|
|
|
1500
1500
|
readonly zoomingChange: "zoomingChange";
|
|
1501
1501
|
readonly zoomTranslateChange: "zoomTranslateChange";
|
|
1502
1502
|
readonly audioInfo: "audioInfo";
|
|
1503
|
-
readonly videoInfo: "videoInfo";
|
|
1503
|
+
readonly videoInfo: "videoInfo"; /** 语言包 @since 0.0.1 */
|
|
1504
1504
|
readonly firstFrameDisplay: "firstFrameDisplay";
|
|
1505
1505
|
readonly fullscreen: "fullscreen";
|
|
1506
1506
|
readonly exitFullscreen: "exitFullscreen";
|
|
@@ -1512,7 +1512,7 @@ declare class Theme extends EventEmitter {
|
|
|
1512
1512
|
readonly recTypeChange: "recTypeChange";
|
|
1513
1513
|
readonly definitionChange: "definitionChange";
|
|
1514
1514
|
readonly speedChange: "speedChange";
|
|
1515
|
-
readonly recordingChange: "recordingChange";
|
|
1515
|
+
readonly recordingChange: "recordingChange";
|
|
1516
1516
|
readonly talkingChange: "talkingChange";
|
|
1517
1517
|
readonly talkVolumeChange: "talkVolumeChange";
|
|
1518
1518
|
readonly broadcastChange: "broadcastChange";
|
|
@@ -1527,10 +1527,7 @@ declare class Theme extends EventEmitter {
|
|
|
1527
1527
|
readonly setVideoLevelList: "setVideoLevelList";
|
|
1528
1528
|
readonly currentVideoLevel: "currentVideoLevel";
|
|
1529
1529
|
readonly currentVideoLevelAuto: "currentVideoLevelAuto";
|
|
1530
|
-
readonly setAllDayRecTimes: "setAllDayRecTimes";
|
|
1531
|
-
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
1532
|
-
* @private
|
|
1533
|
-
*/
|
|
1530
|
+
readonly setAllDayRecTimes: "setAllDayRecTimes";
|
|
1534
1531
|
readonly getOSDTime: "getOSDTime";
|
|
1535
1532
|
readonly playbackEnd: "playbackEnd";
|
|
1536
1533
|
readonly control: {
|
|
@@ -1539,12 +1536,12 @@ declare class Theme extends EventEmitter {
|
|
|
1539
1536
|
readonly capturePicture: "Control.capturePicture";
|
|
1540
1537
|
readonly capturePictureResult: "Control.capturePictureResult";
|
|
1541
1538
|
readonly capturePictureDestroy: "Control.capturePictureDestroy";
|
|
1542
|
-
readonly volumechange: "Control.volumechange";
|
|
1539
|
+
readonly volumechange: "Control.volumechange"; /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */
|
|
1543
1540
|
readonly volumePanelOpenChange: "Control.volumePanelOpenChange";
|
|
1544
1541
|
readonly volumeDestroy: "Control.volumeDestroy";
|
|
1545
1542
|
readonly controlsBarOpenChange: "Control.controlsBarOpenChange";
|
|
1546
1543
|
readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
|
|
1547
|
-
readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange"; /**
|
|
1544
|
+
readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange"; /** 倍速 @private */
|
|
1548
1545
|
readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
|
|
1549
1546
|
readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
|
|
1550
1547
|
readonly deviceDestroy: "Control.deviceDestroy";
|
|
@@ -1752,7 +1749,7 @@ declare class Theme extends EventEmitter {
|
|
|
1752
1749
|
DEVICE_ENCRYPTED: string;
|
|
1753
1750
|
NO_RECORD: string;
|
|
1754
1751
|
PLAY_FAILED: string;
|
|
1755
|
-
PLAY_SUCCESS: string;
|
|
1752
|
+
PLAY_SUCCESS: string;
|
|
1756
1753
|
STOP_SUCCESS: string;
|
|
1757
1754
|
CHANGE_PLAYURL_SUCCESS: string;
|
|
1758
1755
|
CHANGE_PLAYURL_FAILED: string;
|
|
@@ -1763,18 +1760,17 @@ declare class Theme extends EventEmitter {
|
|
|
1763
1760
|
SPEED: string;
|
|
1764
1761
|
SPEED_RATE: string;
|
|
1765
1762
|
SPEED_CANCEL: string;
|
|
1766
|
-
GET_SPEED: string;
|
|
1763
|
+
GET_SPEED: string; /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */
|
|
1767
1764
|
MAX_SPEED_LIMIT: string;
|
|
1768
1765
|
MIN_SPEED_LIMIT: string;
|
|
1769
1766
|
SEEK_CANNOT_CROSS_DAYS: string;
|
|
1770
|
-
/** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */
|
|
1771
1767
|
SEEK_TIMEFORMAT_ERROR: string;
|
|
1772
1768
|
PAUSE: string;
|
|
1773
1769
|
PAUSE_FAILED: string;
|
|
1774
1770
|
RESUME: string;
|
|
1775
1771
|
RESUME_FAILED: string;
|
|
1776
1772
|
CALL_END: string;
|
|
1777
|
-
USER_DO_NOT_OWN_DEVICE: string; /**
|
|
1773
|
+
USER_DO_NOT_OWN_DEVICE: string; /** 消息提示控件 @since 0.0.1 @private */
|
|
1778
1774
|
NO_CLOUD_RECORD: string;
|
|
1779
1775
|
CHANGE_VIDEO_LEVEL: string;
|
|
1780
1776
|
CHANGE_VIDEO_LEVEL_FAIL: string;
|
|
@@ -1790,11 +1786,6 @@ declare class Theme extends EventEmitter {
|
|
|
1790
1786
|
VIDEO_LEVEL_3K: string;
|
|
1791
1787
|
VIDEO_LEVEL_4k: string;
|
|
1792
1788
|
RESET_THEME: string;
|
|
1793
|
-
/**
|
|
1794
|
-
* 更多控件(header more)
|
|
1795
|
-
* @since 0.0.1
|
|
1796
|
-
* @private
|
|
1797
|
-
*/
|
|
1798
1789
|
BTN_PLAY: string;
|
|
1799
1790
|
BTN_PAUSE: string;
|
|
1800
1791
|
BTN_VOLUME: string;
|
|
@@ -1807,7 +1798,7 @@ declare class Theme extends EventEmitter {
|
|
|
1807
1798
|
BTN_LIVE: string;
|
|
1808
1799
|
BTN_REC_DROPDOWN: string;
|
|
1809
1800
|
BTN_ALARM_MESSAGE: string;
|
|
1810
|
-
REC_DROPDOWN_CLOUD_REC: string;
|
|
1801
|
+
REC_DROPDOWN_CLOUD_REC: string;
|
|
1811
1802
|
REC_DROPDOWN_CLOUD_RECORD: string;
|
|
1812
1803
|
REC_DROPDOWN_LOCAL_REC: string;
|
|
1813
1804
|
BTN_ZOOM: string;
|
|
@@ -1824,7 +1815,7 @@ declare class Theme extends EventEmitter {
|
|
|
1824
1815
|
BTN_REC: string;
|
|
1825
1816
|
BTN_CALENDAR: string;
|
|
1826
1817
|
BTN_TIME: string;
|
|
1827
|
-
BTN_MORE: string;
|
|
1818
|
+
BTN_MORE: string; /** resizeObserver 监听销毁 */
|
|
1828
1819
|
DEVICE_NAME: string;
|
|
1829
1820
|
DEVICE_ID: string;
|
|
1830
1821
|
CAPTURE_SUCCESS: string;
|
|
@@ -1836,7 +1827,7 @@ declare class Theme extends EventEmitter {
|
|
|
1836
1827
|
RECORD_TIPS: string;
|
|
1837
1828
|
RECORDS: string;
|
|
1838
1829
|
OPEN_SOUND: string;
|
|
1839
|
-
CLOSE_SOUND: string; /**
|
|
1830
|
+
CLOSE_SOUND: string; /** 屏幕旋转角度 0 | 90 | 180 | 270 */
|
|
1840
1831
|
SOUND_OPENED: string;
|
|
1841
1832
|
ZOOM: string;
|
|
1842
1833
|
START_ZOOM: string;
|
|
@@ -1863,38 +1854,25 @@ declare class Theme extends EventEmitter {
|
|
|
1863
1854
|
GET_WEB_FULLSCREEN_STATUS: string;
|
|
1864
1855
|
WEB_FULLSCREEN: string;
|
|
1865
1856
|
WEB_FULLSCREEN_EXIT: string;
|
|
1866
|
-
DESTROY: string;
|
|
1857
|
+
DESTROY: string; /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */
|
|
1867
1858
|
GET_CAPACITY: string;
|
|
1868
1859
|
GET_PTZ_STATUS: string;
|
|
1869
1860
|
GET_PTZ_STATUS_FAILED: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* 录像回放的月份列表 @private
|
|
1863
|
+
*/
|
|
1870
1864
|
MOBILE_HIDE_PTZ: string;
|
|
1871
1865
|
OPTION_PTZ_FAILED: string;
|
|
1872
1866
|
MOBILE_PTZ_TIPS: string;
|
|
1873
1867
|
PTZ_FAST: string;
|
|
1874
1868
|
PTZ_MID: string;
|
|
1875
1869
|
PTZ_SLOW: string;
|
|
1876
|
-
PTZ_SPEED: string;
|
|
1877
|
-
// * 记录回放的月份
|
|
1878
|
-
// *
|
|
1879
|
-
// * key: {序列号}_{通道号}_{rec | cloud | cloudRecord} 比如:BC7799091_1_rec BC7799091_1_cloud BC7799091_1_cloudRecord
|
|
1880
|
-
// *
|
|
1881
|
-
// * value: 月份列表 比如 ["2025-12-01", "2025-12-02"]
|
|
1882
|
-
// * @private
|
|
1883
|
-
// */
|
|
1884
|
-
/**
|
|
1885
|
-
* 录像回放的月份列表 @private
|
|
1886
|
-
*/
|
|
1870
|
+
PTZ_SPEED: string;
|
|
1887
1871
|
DEVICE_ZOOM: string;
|
|
1888
|
-
/**
|
|
1889
|
-
* 录像回放的月份列表 @private
|
|
1890
|
-
*/
|
|
1891
1872
|
DEVICE_FOCUS: string;
|
|
1892
1873
|
NOT_SUPPORT_DEVICE_ZOOM: string;
|
|
1893
1874
|
NOT_SUPPORT_FOCUS: string;
|
|
1894
1875
|
MIRROR: string;
|
|
1895
|
-
/**
|
|
1896
|
-
* 录像回放的月份列表 @private
|
|
1897
|
-
*/
|
|
1898
1876
|
MIRROR_TYPE_ERROR: string;
|
|
1899
1877
|
CHANGE_FEC_TYPE: string;
|
|
1900
1878
|
DEVICE_NOT_SUPPORT: string;
|
|
@@ -1948,40 +1926,6 @@ declare class Theme extends EventEmitter {
|
|
|
1948
1926
|
395506: string;
|
|
1949
1927
|
395507: string;
|
|
1950
1928
|
395530: string;
|
|
1951
|
-
/**
|
|
1952
|
-
* 播放器主题
|
|
1953
|
-
* @class Theme
|
|
1954
|
-
* @category Theme
|
|
1955
|
-
* @remarks
|
|
1956
|
-
* 萤石播放器主题,主要用于播放器的 UI 展示和交互,支持 flv, hls, mp4, ezopen 等流类型。
|
|
1957
|
-
* 提供了丰富的控件和配置选项,支持多语言和自定义样式。
|
|
1958
|
-
*
|
|
1959
|
-
* @example
|
|
1960
|
-
* ```ts
|
|
1961
|
-
* // import css file
|
|
1962
|
-
* import "@ezuikit/player-theme/dist/style.js"
|
|
1963
|
-
* import Theme from '@ezuikit/player-theme';
|
|
1964
|
-
*
|
|
1965
|
-
* // class Player extends Theme {}
|
|
1966
|
-
*
|
|
1967
|
-
* const theme = new Theme({
|
|
1968
|
-
* container: () => document.querySelector('.player'),
|
|
1969
|
-
* type: 'flv',
|
|
1970
|
-
* });
|
|
1971
|
-
* ```
|
|
1972
|
-
*
|
|
1973
|
-
* ```html
|
|
1974
|
-
* <!-- html script, static in `@ezuikit/player-theme/dist` -->
|
|
1975
|
-
* <link rel="stylesheet" href="./assets/@ezuikit/player-theme/dist/style.css" />
|
|
1976
|
-
* <script src="./assets/@ezuikit/player-theme/dist/index.umd.js"></script>
|
|
1977
|
-
* <script>
|
|
1978
|
-
* const theme = new Theme({
|
|
1979
|
-
* container: () => document.querySelector('.player'),
|
|
1980
|
-
* type: 'flv',
|
|
1981
|
-
* });
|
|
1982
|
-
* </script>
|
|
1983
|
-
* ```
|
|
1984
|
-
*/
|
|
1985
1929
|
395544: string;
|
|
1986
1930
|
395545: string;
|
|
1987
1931
|
395546: string;
|
|
@@ -1992,14 +1936,14 @@ declare class Theme extends EventEmitter {
|
|
|
1992
1936
|
395560: string;
|
|
1993
1937
|
395561: string;
|
|
1994
1938
|
395562: string;
|
|
1995
|
-
395563: string;
|
|
1939
|
+
395563: string; /** 语言包 @since 0.0.1 */
|
|
1996
1940
|
395564: string;
|
|
1997
1941
|
395566: string;
|
|
1998
1942
|
395567: string;
|
|
1999
1943
|
395568: string;
|
|
2000
1944
|
395569: string;
|
|
2001
1945
|
395600: string;
|
|
2002
|
-
395601: string;
|
|
1946
|
+
395601: string; /** 内容控件 @since 0.0.1 */
|
|
2003
1947
|
395602: string;
|
|
2004
1948
|
395610: string;
|
|
2005
1949
|
395620: string;
|
|
@@ -2019,7 +1963,7 @@ declare class Theme extends EventEmitter {
|
|
|
2019
1963
|
396109: string;
|
|
2020
1964
|
396110: string;
|
|
2021
1965
|
396501: string;
|
|
2022
|
-
396502: string;
|
|
1966
|
+
396502: string; /** 容器的宽 */
|
|
2023
1967
|
396503: string;
|
|
2024
1968
|
396504: string;
|
|
2025
1969
|
396505: string;
|
|
@@ -2032,15 +1976,12 @@ declare class Theme extends EventEmitter {
|
|
|
2032
1976
|
396513: string;
|
|
2033
1977
|
396514: string;
|
|
2034
1978
|
396515: string;
|
|
2035
|
-
396516: string;
|
|
1979
|
+
396516: string; /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */
|
|
2036
1980
|
396517: string;
|
|
2037
1981
|
396518: string;
|
|
2038
1982
|
396519: string;
|
|
2039
1983
|
396520: string;
|
|
2040
1984
|
396700: string;
|
|
2041
|
-
/**
|
|
2042
|
-
* 录像回放的月份列表 @private
|
|
2043
|
-
*/
|
|
2044
1985
|
396701: string;
|
|
2045
1986
|
397001: string;
|
|
2046
1987
|
397002: string;
|
|
@@ -2107,7 +2048,9 @@ declare class Theme extends EventEmitter {
|
|
|
2107
2048
|
SEEK_TIMEFORMAT_ERROR: string;
|
|
2108
2049
|
PAUSE: string;
|
|
2109
2050
|
PAUSE_FAILED: string;
|
|
2110
|
-
RESUME: string;
|
|
2051
|
+
RESUME: string; /**
|
|
2052
|
+
* url 信息 播放地址信息
|
|
2053
|
+
*/
|
|
2111
2054
|
RESUME_FAILED: string;
|
|
2112
2055
|
CALL_END: string;
|
|
2113
2056
|
USER_DO_NOT_OWN_DEVICE: string;
|
|
@@ -2123,23 +2066,28 @@ declare class Theme extends EventEmitter {
|
|
|
2123
2066
|
VIDEO_LEVEL_HEIGH: string;
|
|
2124
2067
|
VIDEO_LEVEL_SUPER: string;
|
|
2125
2068
|
VIDEO_LEVEL_EXTREME: string;
|
|
2126
|
-
/**
|
|
2127
|
-
* 视频信息
|
|
2128
|
-
* @version 3.1.2
|
|
2129
|
-
* ```ts
|
|
2130
|
-
* theme.videoInfo // ThemeVideoInfo
|
|
2131
|
-
* ```
|
|
2132
|
-
*/
|
|
2133
2069
|
VIDEO_LEVEL_3K: string;
|
|
2134
2070
|
VIDEO_LEVEL_4k: string;
|
|
2135
2071
|
RESET_THEME: string;
|
|
2136
2072
|
BTN_PLAY: string;
|
|
2137
2073
|
BTN_PAUSE: string;
|
|
2138
|
-
BTN_VOLUME: string;
|
|
2074
|
+
BTN_VOLUME: string; /**
|
|
2075
|
+
* 当前播放状态
|
|
2076
|
+
* ```ts
|
|
2077
|
+
* theme.playing // boolean
|
|
2078
|
+
* ```
|
|
2079
|
+
*/
|
|
2139
2080
|
BTN_MUTED: string;
|
|
2140
2081
|
BTN_RECORDVIDEO: string;
|
|
2141
2082
|
BTN_CAPTURE: string;
|
|
2142
2083
|
BTN_TALK: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* 播放状态
|
|
2086
|
+
* ```ts
|
|
2087
|
+
* // 事件监听
|
|
2088
|
+
* theme.on(Theme.EVENTS.play, (playing: boolean) => {})
|
|
2089
|
+
* ```
|
|
2090
|
+
*/
|
|
2143
2091
|
BTN_BROADCAST: string;
|
|
2144
2092
|
BTN_AICHAT: string;
|
|
2145
2093
|
BTN_LIVE: string;
|
|
@@ -2204,14 +2152,7 @@ declare class Theme extends EventEmitter {
|
|
|
2204
2152
|
WEB_FULLSCREEN: string;
|
|
2205
2153
|
WEB_FULLSCREEN_EXIT: string;
|
|
2206
2154
|
DESTROY: string;
|
|
2207
|
-
GET_CAPACITY: string;
|
|
2208
|
-
* 静音
|
|
2209
|
-
* @example
|
|
2210
|
-
* ```ts
|
|
2211
|
-
* // 事件监听
|
|
2212
|
-
* theme.on(Theme.EVENTS.volumechange, (volume: number, muted: boolean) => {})
|
|
2213
|
-
* ```
|
|
2214
|
-
*/
|
|
2155
|
+
GET_CAPACITY: string;
|
|
2215
2156
|
GET_PTZ_STATUS: string;
|
|
2216
2157
|
GET_PTZ_STATUS_FAILED: string;
|
|
2217
2158
|
MOBILE_HIDE_PTZ: string;
|
|
@@ -2741,7 +2682,7 @@ declare class Theme extends EventEmitter {
|
|
|
2741
2682
|
* @param url 录像 url
|
|
2742
2683
|
* @returns {"rec" | "cloudRecord" | "cloudRec" | ""} 录像类型, rec: 录像, cloudRec: 云录像, cloudRecord: 云录制
|
|
2743
2684
|
*/
|
|
2744
|
-
protected _getRecType(url: string): "" | "
|
|
2685
|
+
protected _getRecType(url: string): "" | "rec" | "cloudRec" | "cloudRecord";
|
|
2745
2686
|
private resetControl;
|
|
2746
2687
|
/**
|
|
2747
2688
|
* 窗口全屏后旋转 90度判断, 然后设置控件已经旋转 90度, 为了解决控件交互问题
|