@ezuikit/player-theme 3.1.1-beta.2 → 3.1.2-beta.1
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 +4 -3
- package/dist/index.cjs +106 -20
- package/dist/index.esm.js +107 -21
- package/dist/index.umd.js +170 -104
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +43 -54
- package/package.json +8 -7
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import I18n, { I18nTranslation } from '@ezuikit/utils-i18n';
|
|
|
4
4
|
import { LoggerCls, LoggerOptions } from '@ezuikit/utils-logger';
|
|
5
5
|
import { BasePtzOptions } from '@ezuikit/control-ptz';
|
|
6
6
|
import { RecListModalOptions } from '@ezuikit/control-rec-list-modal';
|
|
7
|
+
import * as _ezuikit_utils_tools from '@ezuikit/utils-tools';
|
|
7
8
|
import Zoom from '@ezuikit/control-zoom';
|
|
8
9
|
import { TimeLineTimeSection } from '@ezuikit/control-time-line';
|
|
9
10
|
import { TimePickerOptions } from '@ezuikit/control-date-picker';
|
|
@@ -17,7 +18,7 @@ declare const THEME_SCALE_MODE_TYPE: {
|
|
|
17
18
|
/** 视频画面做等比缩放后,完全填充canvas区域,画面不被拉伸,没有黑边,但画面显示不全 */
|
|
18
19
|
readonly fullAuto: 2;
|
|
19
20
|
};
|
|
20
|
-
declare const THEME_PROPS: readonly ["width", "height", "playing", "volume", "muted", "loading", "recType", "isCurrentFullscreen", "orientationAngle", "zooming", "zoom", "recording", "recordList", "speed", "urlInfo", "videoLevelList", "videoLevel", "recMonth"];
|
|
21
|
+
declare const THEME_PROPS: readonly ["width", "height", "playing", "volume", "muted", "loading", "recType", "isCurrentFullscreen", "orientationAngle", "zooming", "zoom", "recording", "recordList", "speed", "urlInfo", "videoLevelList", "videoLevel", "recMonth", "url"];
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* 事件名
|
|
@@ -1491,9 +1492,10 @@ declare class Theme extends EventEmitter {
|
|
|
1491
1492
|
readonly audioInfo: "audioInfo";
|
|
1492
1493
|
readonly videoInfo: "videoInfo";
|
|
1493
1494
|
readonly firstFrameDisplay: "firstFrameDisplay";
|
|
1494
|
-
readonly fullscreen: "fullscreen";
|
|
1495
|
+
readonly fullscreen: "fullscreen"; /** 所有私有流的模板 @since 0.0.1 */
|
|
1495
1496
|
readonly exitFullscreen: "exitFullscreen";
|
|
1496
1497
|
readonly fullscreenChange: "fullscreenChange";
|
|
1498
|
+
/** 播放器配置项 */
|
|
1497
1499
|
readonly resize: "resize";
|
|
1498
1500
|
readonly orientationChange: "orientationChange";
|
|
1499
1501
|
readonly audioCodecUnsupported: "audioCodecUnsupported";
|
|
@@ -1503,8 +1505,7 @@ declare class Theme extends EventEmitter {
|
|
|
1503
1505
|
readonly speedChange: "speedChange";
|
|
1504
1506
|
readonly recordingChange: "recordingChange";
|
|
1505
1507
|
readonly talkingChange: "talkingChange";
|
|
1506
|
-
/** 封面控件 @since 0.0.1 @private */
|
|
1507
|
-
readonly talkVolumeChange: "talkVolumeChange";
|
|
1508
|
+
readonly talkVolumeChange: "talkVolumeChange"; /** 封面控件 @since 0.0.1 @private */
|
|
1508
1509
|
readonly broadcastChange: "broadcastChange";
|
|
1509
1510
|
readonly aichatChange: "aichatChange";
|
|
1510
1511
|
readonly liveChange: "liveChange";
|
|
@@ -1523,7 +1524,7 @@ declare class Theme extends EventEmitter {
|
|
|
1523
1524
|
readonly play: "Control.play";
|
|
1524
1525
|
readonly playDestroy: "Control.playDestroy";
|
|
1525
1526
|
readonly capturePicture: "Control.capturePicture";
|
|
1526
|
-
readonly capturePictureResult: "Control.capturePictureResult";
|
|
1527
|
+
readonly capturePictureResult: "Control.capturePictureResult"; /** @since 0.0.1 @private */
|
|
1527
1528
|
readonly capturePictureDestroy: "Control.capturePictureDestroy";
|
|
1528
1529
|
readonly volumechange: "Control.volumechange";
|
|
1529
1530
|
readonly volumePanelOpenChange: "Control.volumePanelOpenChange";
|
|
@@ -1538,12 +1539,12 @@ declare class Theme extends EventEmitter {
|
|
|
1538
1539
|
readonly recDestroy: "Control.recDestroy";
|
|
1539
1540
|
readonly definitionChange: "Control.definitionChange";
|
|
1540
1541
|
readonly definitionList: "Control.definitionList";
|
|
1541
|
-
/**
|
|
1542
|
-
* 录像回放的月份列表 @private
|
|
1543
|
-
*/
|
|
1544
1542
|
readonly definitionPanelOpenChange: "Control.definitionPanelOpenChange";
|
|
1545
1543
|
readonly definitionDestroy: "Control.definitionDestroy";
|
|
1546
1544
|
readonly speedChange: "Control.speedChange";
|
|
1545
|
+
/**
|
|
1546
|
+
* 录像回放的月份列表 @private
|
|
1547
|
+
*/
|
|
1547
1548
|
readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
|
|
1548
1549
|
readonly speedDestroy: "Control.speedDestroy";
|
|
1549
1550
|
readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange";
|
|
@@ -1598,7 +1599,9 @@ declare class Theme extends EventEmitter {
|
|
|
1598
1599
|
readonly mobileExtendDestroy: "Theme.mobileExtendDestroy";
|
|
1599
1600
|
readonly recFooterDestroy: "Theme.recFooterDestroy";
|
|
1600
1601
|
};
|
|
1601
|
-
readonly message: "message";
|
|
1602
|
+
readonly message: "message"; /**
|
|
1603
|
+
* url 信息 播放地址信息
|
|
1604
|
+
*/
|
|
1602
1605
|
};
|
|
1603
1606
|
/** 语言包 @since 0.0.1 */
|
|
1604
1607
|
static LOCALES: {
|
|
@@ -1703,6 +1706,7 @@ declare class Theme extends EventEmitter {
|
|
|
1703
1706
|
397007: string;
|
|
1704
1707
|
399000: string;
|
|
1705
1708
|
399001: string;
|
|
1709
|
+
/** 移动端竖屏, 全屏情况下不展示扩张,放置在 footer 中 */
|
|
1706
1710
|
399002: string;
|
|
1707
1711
|
399016: string;
|
|
1708
1712
|
399048: string;
|
|
@@ -1750,7 +1754,7 @@ declare class Theme extends EventEmitter {
|
|
|
1750
1754
|
SET_POSTER: string;
|
|
1751
1755
|
RESIZE: string;
|
|
1752
1756
|
SPEED: string;
|
|
1753
|
-
SPEED_RATE: string;
|
|
1757
|
+
SPEED_RATE: string;
|
|
1754
1758
|
SPEED_CANCEL: string;
|
|
1755
1759
|
GET_SPEED: string;
|
|
1756
1760
|
MAX_SPEED_LIMIT: string;
|
|
@@ -1767,16 +1771,11 @@ declare class Theme extends EventEmitter {
|
|
|
1767
1771
|
CHANGE_VIDEO_LEVEL: string;
|
|
1768
1772
|
CHANGE_VIDEO_LEVEL_FAIL: string;
|
|
1769
1773
|
GET_VIDEO_LEVEL_LIST: string;
|
|
1774
|
+
/** 消息提示控件 @since 0.0.1 @private */
|
|
1770
1775
|
PLEASE_INPUT_RIGHT_VIDEO_LEVEL: string;
|
|
1771
1776
|
VIDEO_LEVEL_NOT_SUPPORT: string;
|
|
1772
1777
|
VIDEO_LEVEL_AUTO: string;
|
|
1773
1778
|
VIDEO_LEVEL_FLUENT: string;
|
|
1774
|
-
/**
|
|
1775
|
-
* @type { "rec" | "cloudRec" | "cloudRecord" } recType 回放类型
|
|
1776
|
-
* ```ts
|
|
1777
|
-
* theme.recType // 回放类型
|
|
1778
|
-
* ```
|
|
1779
|
-
*/
|
|
1780
1779
|
VIDEO_LEVEL_STANDARD: string;
|
|
1781
1780
|
VIDEO_LEVEL_HEIGH: string;
|
|
1782
1781
|
VIDEO_LEVEL_SUPER: string;
|
|
@@ -1799,10 +1798,14 @@ declare class Theme extends EventEmitter {
|
|
|
1799
1798
|
REC_DROPDOWN_CLOUD_REC: string;
|
|
1800
1799
|
REC_DROPDOWN_CLOUD_RECORD: string;
|
|
1801
1800
|
REC_DROPDOWN_LOCAL_REC: string;
|
|
1802
|
-
BTN_ZOOM: string;
|
|
1801
|
+
BTN_ZOOM: string; /** 回放底部时间轴 @since 0.0.1 @private */
|
|
1803
1802
|
BTN_3D_ZOOM: string;
|
|
1804
1803
|
BTN_PTZ: string;
|
|
1805
1804
|
BTN_GLOBAL_FULLSCREEN: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
1807
|
+
* @private
|
|
1808
|
+
*/
|
|
1806
1809
|
BTN_EXIT_GLOBAL_FULLSCREEN: string;
|
|
1807
1810
|
BTN_FULLSCREEN: string;
|
|
1808
1811
|
BTN_EXIR_FULLSCREEN: string;
|
|
@@ -1815,19 +1818,19 @@ declare class Theme extends EventEmitter {
|
|
|
1815
1818
|
BTN_TIME: string;
|
|
1816
1819
|
BTN_MORE: string;
|
|
1817
1820
|
DEVICE_NAME: string;
|
|
1818
|
-
DEVICE_ID: string;
|
|
1821
|
+
DEVICE_ID: string;
|
|
1819
1822
|
CAPTURE_SUCCESS: string;
|
|
1820
1823
|
CAPTURE_FAILED: string;
|
|
1821
1824
|
START_RECORD_SUCCESS: string;
|
|
1822
|
-
/** resizeObserver 监听销毁 */
|
|
1823
1825
|
START_RECORD_FAILED: string;
|
|
1824
|
-
STOP_RECORD_SUCCESS: string;
|
|
1826
|
+
STOP_RECORD_SUCCESS: string; /** resizeObserver 监听销毁 */
|
|
1825
1827
|
STOP_RECORD_FAILED: string;
|
|
1826
1828
|
RECORD_TIPS: string;
|
|
1827
1829
|
RECORDS: string;
|
|
1828
1830
|
OPEN_SOUND: string;
|
|
1829
1831
|
CLOSE_SOUND: string;
|
|
1830
1832
|
SOUND_OPENED: string;
|
|
1833
|
+
/** 容器的宽 */
|
|
1831
1834
|
ZOOM: string;
|
|
1832
1835
|
START_ZOOM: string;
|
|
1833
1836
|
CLOSE_ZOOM: string;
|
|
@@ -1839,6 +1842,7 @@ declare class Theme extends EventEmitter {
|
|
|
1839
1842
|
ZOOM_LIMIT_MIN: string;
|
|
1840
1843
|
ZOOM_NOT_ENABLED: string;
|
|
1841
1844
|
'3D_ZOOM': string;
|
|
1845
|
+
/** @private 加载中 */
|
|
1842
1846
|
'3D_ZOOM_DISABLE': string;
|
|
1843
1847
|
'3D_ZOOM_FAILED': string;
|
|
1844
1848
|
START_3D_ZOOM: string;
|
|
@@ -1849,10 +1853,11 @@ declare class Theme extends EventEmitter {
|
|
|
1849
1853
|
'3D_ZOOM_CLOSED': string;
|
|
1850
1854
|
CHANGE_ZOOM_TYPE: string;
|
|
1851
1855
|
FULLSCREEN: string;
|
|
1852
|
-
FULLSCREEN_EXIT: string;
|
|
1856
|
+
FULLSCREEN_EXIT: string; /** 自定清晰度 @private */
|
|
1853
1857
|
GET_WEB_FULLSCREEN_STATUS: string;
|
|
1854
1858
|
WEB_FULLSCREEN: string;
|
|
1855
|
-
WEB_FULLSCREEN_EXIT: string;
|
|
1859
|
+
WEB_FULLSCREEN_EXIT: string;
|
|
1860
|
+
/** 回放片段列表 */
|
|
1856
1861
|
DESTROY: string;
|
|
1857
1862
|
GET_CAPACITY: string;
|
|
1858
1863
|
GET_PTZ_STATUS: string;
|
|
@@ -1860,15 +1865,13 @@ declare class Theme extends EventEmitter {
|
|
|
1860
1865
|
MOBILE_HIDE_PTZ: string;
|
|
1861
1866
|
OPTION_PTZ_FAILED: string;
|
|
1862
1867
|
MOBILE_PTZ_TIPS: string;
|
|
1863
|
-
/**
|
|
1864
|
-
* 录像回放的月份列表 @private
|
|
1865
|
-
*/
|
|
1866
1868
|
PTZ_FAST: string;
|
|
1867
1869
|
PTZ_MID: string;
|
|
1868
1870
|
PTZ_SLOW: string;
|
|
1869
1871
|
PTZ_SPEED: string;
|
|
1870
1872
|
DEVICE_ZOOM: string;
|
|
1871
|
-
DEVICE_FOCUS: string;
|
|
1873
|
+
DEVICE_FOCUS: string;
|
|
1874
|
+
/**
|
|
1872
1875
|
* 录像回放的月份列表 @private
|
|
1873
1876
|
*/
|
|
1874
1877
|
NOT_SUPPORT_DEVICE_ZOOM: string;
|
|
@@ -1877,7 +1880,7 @@ declare class Theme extends EventEmitter {
|
|
|
1877
1880
|
MIRROR_TYPE_ERROR: string;
|
|
1878
1881
|
CHANGE_FEC_TYPE: string;
|
|
1879
1882
|
DEVICE_NOT_SUPPORT: string;
|
|
1880
|
-
TYPE_NOT_SUPPORT: string;
|
|
1883
|
+
TYPE_NOT_SUPPORT: string; /** 销毁标识 @readonly */
|
|
1881
1884
|
FEC_SUPPORT_VERSION: string;
|
|
1882
1885
|
NO_CANVAS_ID: string;
|
|
1883
1886
|
SET_FEC_PARAMS: string;
|
|
@@ -1947,16 +1950,13 @@ declare class Theme extends EventEmitter {
|
|
|
1947
1950
|
395601: string;
|
|
1948
1951
|
395602: string;
|
|
1949
1952
|
395610: string;
|
|
1953
|
+
/** 暂停控件 @since 0.0.1 @private */
|
|
1950
1954
|
395620: string;
|
|
1951
1955
|
395701: string;
|
|
1952
1956
|
395702: string;
|
|
1953
1957
|
395703: string;
|
|
1954
1958
|
396001: string;
|
|
1955
|
-
396099: string;
|
|
1956
|
-
* 更多控件(footer more)
|
|
1957
|
-
* @since 0.0.1
|
|
1958
|
-
* @private
|
|
1959
|
-
*/
|
|
1959
|
+
396099: string;
|
|
1960
1960
|
396101: string;
|
|
1961
1961
|
396102: string;
|
|
1962
1962
|
396103: string;
|
|
@@ -1972,7 +1972,8 @@ declare class Theme extends EventEmitter {
|
|
|
1972
1972
|
396503: string;
|
|
1973
1973
|
396504: string;
|
|
1974
1974
|
396505: string;
|
|
1975
|
-
|
|
1975
|
+
/** 屏幕旋转角度 0 | 90 | 180 | 270 */
|
|
1976
|
+
396506: string; /** 是否播放中 @private */
|
|
1976
1977
|
396508: string;
|
|
1977
1978
|
396509: string;
|
|
1978
1979
|
396510: string;
|
|
@@ -1981,9 +1982,6 @@ declare class Theme extends EventEmitter {
|
|
|
1981
1982
|
396513: string;
|
|
1982
1983
|
396514: string;
|
|
1983
1984
|
396515: string;
|
|
1984
|
-
/**
|
|
1985
|
-
* 录像回放的月份列表 @private
|
|
1986
|
-
*/
|
|
1987
1985
|
396516: string;
|
|
1988
1986
|
396517: string;
|
|
1989
1987
|
396518: string;
|
|
@@ -2042,7 +2040,9 @@ declare class Theme extends EventEmitter {
|
|
|
2042
2040
|
STOP_SUCCESS: string;
|
|
2043
2041
|
CHANGE_PLAYURL_SUCCESS: string;
|
|
2044
2042
|
CHANGE_PLAYURL_FAILED: string;
|
|
2045
|
-
GET_OSD_TIME: string;
|
|
2043
|
+
GET_OSD_TIME: string; /**
|
|
2044
|
+
* url 信息 播放地址信息
|
|
2045
|
+
*/
|
|
2046
2046
|
GET_OSD_TIME_FAILED: string;
|
|
2047
2047
|
SET_POSTER: string;
|
|
2048
2048
|
RESIZE: string;
|
|
@@ -2170,19 +2170,6 @@ declare class Theme extends EventEmitter {
|
|
|
2170
2170
|
SET_FEC_PARAMS: string;
|
|
2171
2171
|
GET_FEC_PARAMS: string;
|
|
2172
2172
|
SET_FEC_PARAMS_FAILED: string;
|
|
2173
|
-
/**
|
|
2174
|
-
* 对讲增益(音量), 仅 ezopen 支持
|
|
2175
|
-
*
|
|
2176
|
-
* {@link https://mdn.org.cn/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API}
|
|
2177
|
-
*
|
|
2178
|
-
* @since 0.0.1
|
|
2179
|
-
* @example
|
|
2180
|
-
* ```ts
|
|
2181
|
-
* theme.talkGain // 对讲音量
|
|
2182
|
-
* // 事件监听 event
|
|
2183
|
-
* theme.on(Theme.EVENTS.talk, (gain: number) => {})
|
|
2184
|
-
* ```
|
|
2185
|
-
*/
|
|
2186
2173
|
GET_FEC_PARAMS_FAILED: string;
|
|
2187
2174
|
GET_FEC_PARAMS_SUPPORT_VERSION: string;
|
|
2188
2175
|
SET_WATERMARK: string;
|
|
@@ -2303,10 +2290,12 @@ declare class Theme extends EventEmitter {
|
|
|
2303
2290
|
_onPauseTimingFunc: ((open: boolean) => void) | null;
|
|
2304
2291
|
/** 销毁标识 @readonly */
|
|
2305
2292
|
destroyed: boolean;
|
|
2306
|
-
/** 播放地址信息 */
|
|
2307
|
-
urlInfo: any | null;
|
|
2308
2293
|
scaleMode: ThemeOptions['scaleMode'];
|
|
2309
2294
|
constructor(options: ThemeOptions);
|
|
2295
|
+
/**
|
|
2296
|
+
* url 信息 播放地址信息
|
|
2297
|
+
*/
|
|
2298
|
+
get urlInfo(): Partial<_ezuikit_utils_tools.EzopenURL>;
|
|
2310
2299
|
/**
|
|
2311
2300
|
* 容器的宽(单位 px)
|
|
2312
2301
|
* ```ts
|
|
@@ -2638,7 +2627,7 @@ declare class Theme extends EventEmitter {
|
|
|
2638
2627
|
* @param url 录像 url
|
|
2639
2628
|
* @returns {"rec" | "cloudRecord" | "cloudRec" | ""} 录像类型, rec: 录像, cloudRec: 云录像, cloudRecord: 云录制
|
|
2640
2629
|
*/
|
|
2641
|
-
protected _getRecType(url: string): "" | "
|
|
2630
|
+
protected _getRecType(url: string): "" | "cloudRec" | "cloudRecord" | "rec";
|
|
2642
2631
|
private resetControl;
|
|
2643
2632
|
/**
|
|
2644
2633
|
* 窗口全屏后旋转 90度判断, 然后设置控件已经旋转 90度, 为了解决控件交互问题
|
|
@@ -2764,7 +2753,7 @@ interface ThemeOptions {
|
|
|
2764
2753
|
ptzOptions?: OmitControlOptions<PtzOptions> | null;
|
|
2765
2754
|
/** 回放类型控件配置, 设置 null 不渲染控件 @since 0.0.1 */
|
|
2766
2755
|
recOptions?: OmitControlOptions<RecOptions> | null;
|
|
2767
|
-
/** 录像列表控件配置, 设置 null 不渲染控件 @since
|
|
2756
|
+
/** 录像列表控件配置, 设置 null 不渲染控件 @since 3.1.1 */
|
|
2768
2757
|
recListOptions?: OmitControlOptions<RecListOptions> | null;
|
|
2769
2758
|
/** 录制控件配置 ,设置 null 不渲染控件 @since 0.0.1 */
|
|
2770
2759
|
recordOptions?: OmitControlOptions<RecordOptions> | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezuikit/player-theme",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2-beta.1",
|
|
4
4
|
"description": "player theme",
|
|
5
5
|
"title": "theme",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"theme",
|
|
28
28
|
"ezuikit",
|
|
29
29
|
"ezviz",
|
|
30
|
+
"ezopen",
|
|
30
31
|
"ui"
|
|
31
32
|
],
|
|
32
33
|
"author": "Ezviz-OpenBiz",
|
|
@@ -34,12 +35,12 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@ezuikit/utils-i18n": "^2.0.1",
|
|
36
37
|
"@ezuikit/utils-logger": "^2.0.1",
|
|
37
|
-
"@ezuikit/utils-tools": "^2.0.
|
|
38
|
-
"@ezuikit/control-date-picker": "2.1.
|
|
39
|
-
"@ezuikit/control-time-line": "2.1.0
|
|
40
|
-
"@ezuikit/control-ptz": "
|
|
41
|
-
"@ezuikit/control-rec-list-modal": "0.0.1
|
|
42
|
-
"@ezuikit/control-zoom": "
|
|
38
|
+
"@ezuikit/utils-tools": "^2.0.6",
|
|
39
|
+
"@ezuikit/control-date-picker": "2.1.1",
|
|
40
|
+
"@ezuikit/control-time-line": "2.1.0",
|
|
41
|
+
"@ezuikit/control-ptz": "1.0.0",
|
|
42
|
+
"@ezuikit/control-rec-list-modal": "0.0.1",
|
|
43
|
+
"@ezuikit/control-zoom": "1.0.0-beta.4",
|
|
43
44
|
"@juggle/resize-observer": "^3.4.0",
|
|
44
45
|
"@skax/delegate": "4.0.2",
|
|
45
46
|
"@skax/picker": "1.1.8",
|