@ezuikit/player-theme 3.1.5-beta.1 → 3.1.5-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 +78 -4
- package/dist/index.esm.js +78 -4
- package/dist/index.umd.js +78 -4
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +43 -83
- package/package.json +2 -2
package/dist/constant.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.1.5-beta.
|
|
3
|
-
* Copyright (c) 2026-09-
|
|
2
|
+
* @ezuikit/player-theme v3.1.5-beta.2
|
|
3
|
+
* Copyright (c) 2026-09-04 02:44:28 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -3262,6 +3262,12 @@ var en = {
|
|
|
3262
3262
|
part: 'left',
|
|
3263
3263
|
isrender: 1
|
|
3264
3264
|
},
|
|
3265
|
+
{
|
|
3266
|
+
iconId: 'capturePicture',
|
|
3267
|
+
part: 'left',
|
|
3268
|
+
defaultActive: 0,
|
|
3269
|
+
isrender: 1
|
|
3270
|
+
},
|
|
3265
3271
|
{
|
|
3266
3272
|
iconId: 'volume',
|
|
3267
3273
|
part: 'left',
|
|
@@ -3275,6 +3281,72 @@ var en = {
|
|
|
3275
3281
|
defaultActive: 0,
|
|
3276
3282
|
isrender: 1
|
|
3277
3283
|
},
|
|
3284
|
+
{
|
|
3285
|
+
// flv 录制 2.1.2 新增
|
|
3286
|
+
iconId: 'zoom',
|
|
3287
|
+
part: 'left',
|
|
3288
|
+
defaultActive: 0,
|
|
3289
|
+
isrender: 1
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
iconId: 'fullscreen',
|
|
3293
|
+
part: 'right',
|
|
3294
|
+
defaultActive: 0,
|
|
3295
|
+
isrender: 1
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
iconId: 'globalFullscreen',
|
|
3299
|
+
part: 'right',
|
|
3300
|
+
defaultActive: 0,
|
|
3301
|
+
isrender: 1
|
|
3302
|
+
}
|
|
3303
|
+
]
|
|
3304
|
+
}
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* flv 预览
|
|
3309
|
+
*/ var RecTemplate = {
|
|
3310
|
+
autoFocus: 3,
|
|
3311
|
+
// poster:
|
|
3312
|
+
// "https://img2.baidu.com/it/u=3209353042,356122753&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
|
|
3313
|
+
footer: {
|
|
3314
|
+
btnList: [
|
|
3315
|
+
{
|
|
3316
|
+
iconId: 'play',
|
|
3317
|
+
part: 'left',
|
|
3318
|
+
isrender: 1
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
iconId: 'capturePicture',
|
|
3322
|
+
part: 'left',
|
|
3323
|
+
defaultActive: 0,
|
|
3324
|
+
isrender: 1
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
iconId: 'volume',
|
|
3328
|
+
part: 'left',
|
|
3329
|
+
defaultActive: 0,
|
|
3330
|
+
isrender: 1
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
iconId: 'recordvideo',
|
|
3334
|
+
part: 'left',
|
|
3335
|
+
defaultActive: 0,
|
|
3336
|
+
isrender: 1
|
|
3337
|
+
},
|
|
3338
|
+
{
|
|
3339
|
+
iconId: 'zoom',
|
|
3340
|
+
part: 'left',
|
|
3341
|
+
defaultActive: 0,
|
|
3342
|
+
isrender: 1
|
|
3343
|
+
},
|
|
3344
|
+
{
|
|
3345
|
+
iconId: 'speed',
|
|
3346
|
+
part: 'right',
|
|
3347
|
+
defaultActive: 0,
|
|
3348
|
+
isrender: 1
|
|
3349
|
+
},
|
|
3278
3350
|
{
|
|
3279
3351
|
iconId: 'fullscreen',
|
|
3280
3352
|
part: 'right',
|
|
@@ -10468,6 +10540,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10468
10540
|
var themeData = (_this_options = _this.options) == null ? void 0 : _this_options.themeData; // IThemeData | null | undefined
|
|
10469
10541
|
var template = (_this_options1 = _this.options) == null ? void 0 : _this_options1.template; // ThemeTemplateType | string | undefined
|
|
10470
10542
|
var initialThemeData;
|
|
10543
|
+
// hls ezhls flv mp4 不支持 template
|
|
10471
10544
|
if (options.type === 'hls' || options.type === 'ezhls') {
|
|
10472
10545
|
var _options_url;
|
|
10473
10546
|
// hls / ezhls:@3.1.1 起支持自定义 themeData,但不支持标准提供的模板;未传时回退 hlsLiveTemplate
|
|
@@ -10477,8 +10550,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10477
10550
|
'flv',
|
|
10478
10551
|
'mp4'
|
|
10479
10552
|
].includes(options.type)) {
|
|
10553
|
+
var _options_url1;
|
|
10480
10554
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10481
|
-
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10555
|
+
initialThemeData = themeData !== undefined ? themeData : ((_options_url1 = options.url) == null ? void 0 : _options_url1.includes('/openpb/')) ? RecTemplate : LiveTemplate;
|
|
10482
10556
|
} else {
|
|
10483
10557
|
var _ref6;
|
|
10484
10558
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
@@ -11780,7 +11854,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11780
11854
|
zh: zh,
|
|
11781
11855
|
en: en
|
|
11782
11856
|
};
|
|
11783
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.
|
|
11857
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.2';
|
|
11784
11858
|
|
|
11785
11859
|
exports.Control = Control;
|
|
11786
11860
|
exports.EVENTS = EVENTS;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v3.1.5-beta.
|
|
3
|
-
* Copyright (c) 2026-09-
|
|
2
|
+
* @ezuikit/player-theme v3.1.5-beta.2
|
|
3
|
+
* Copyright (c) 2026-09-04 02:44:28 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -3260,6 +3260,12 @@ var en = {
|
|
|
3260
3260
|
part: 'left',
|
|
3261
3261
|
isrender: 1
|
|
3262
3262
|
},
|
|
3263
|
+
{
|
|
3264
|
+
iconId: 'capturePicture',
|
|
3265
|
+
part: 'left',
|
|
3266
|
+
defaultActive: 0,
|
|
3267
|
+
isrender: 1
|
|
3268
|
+
},
|
|
3263
3269
|
{
|
|
3264
3270
|
iconId: 'volume',
|
|
3265
3271
|
part: 'left',
|
|
@@ -3273,6 +3279,72 @@ var en = {
|
|
|
3273
3279
|
defaultActive: 0,
|
|
3274
3280
|
isrender: 1
|
|
3275
3281
|
},
|
|
3282
|
+
{
|
|
3283
|
+
// flv 录制 2.1.2 新增
|
|
3284
|
+
iconId: 'zoom',
|
|
3285
|
+
part: 'left',
|
|
3286
|
+
defaultActive: 0,
|
|
3287
|
+
isrender: 1
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
iconId: 'fullscreen',
|
|
3291
|
+
part: 'right',
|
|
3292
|
+
defaultActive: 0,
|
|
3293
|
+
isrender: 1
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
iconId: 'globalFullscreen',
|
|
3297
|
+
part: 'right',
|
|
3298
|
+
defaultActive: 0,
|
|
3299
|
+
isrender: 1
|
|
3300
|
+
}
|
|
3301
|
+
]
|
|
3302
|
+
}
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
/**
|
|
3306
|
+
* flv 预览
|
|
3307
|
+
*/ var RecTemplate = {
|
|
3308
|
+
autoFocus: 3,
|
|
3309
|
+
// poster:
|
|
3310
|
+
// "https://img2.baidu.com/it/u=3209353042,356122753&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
|
|
3311
|
+
footer: {
|
|
3312
|
+
btnList: [
|
|
3313
|
+
{
|
|
3314
|
+
iconId: 'play',
|
|
3315
|
+
part: 'left',
|
|
3316
|
+
isrender: 1
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
iconId: 'capturePicture',
|
|
3320
|
+
part: 'left',
|
|
3321
|
+
defaultActive: 0,
|
|
3322
|
+
isrender: 1
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
iconId: 'volume',
|
|
3326
|
+
part: 'left',
|
|
3327
|
+
defaultActive: 0,
|
|
3328
|
+
isrender: 1
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
iconId: 'recordvideo',
|
|
3332
|
+
part: 'left',
|
|
3333
|
+
defaultActive: 0,
|
|
3334
|
+
isrender: 1
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
iconId: 'zoom',
|
|
3338
|
+
part: 'left',
|
|
3339
|
+
defaultActive: 0,
|
|
3340
|
+
isrender: 1
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
iconId: 'speed',
|
|
3344
|
+
part: 'right',
|
|
3345
|
+
defaultActive: 0,
|
|
3346
|
+
isrender: 1
|
|
3347
|
+
},
|
|
3276
3348
|
{
|
|
3277
3349
|
iconId: 'fullscreen',
|
|
3278
3350
|
part: 'right',
|
|
@@ -10466,6 +10538,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10466
10538
|
var themeData = (_this_options = _this.options) == null ? void 0 : _this_options.themeData; // IThemeData | null | undefined
|
|
10467
10539
|
var template = (_this_options1 = _this.options) == null ? void 0 : _this_options1.template; // ThemeTemplateType | string | undefined
|
|
10468
10540
|
var initialThemeData;
|
|
10541
|
+
// hls ezhls flv mp4 不支持 template
|
|
10469
10542
|
if (options.type === 'hls' || options.type === 'ezhls') {
|
|
10470
10543
|
var _options_url;
|
|
10471
10544
|
// hls / ezhls:@3.1.1 起支持自定义 themeData,但不支持标准提供的模板;未传时回退 hlsLiveTemplate
|
|
@@ -10475,8 +10548,9 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10475
10548
|
'flv',
|
|
10476
10549
|
'mp4'
|
|
10477
10550
|
].includes(options.type)) {
|
|
10551
|
+
var _options_url1;
|
|
10478
10552
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
10479
|
-
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
10553
|
+
initialThemeData = themeData !== undefined ? themeData : ((_options_url1 = options.url) == null ? void 0 : _options_url1.includes('/openpb/')) ? RecTemplate : LiveTemplate;
|
|
10480
10554
|
} else {
|
|
10481
10555
|
var _ref6;
|
|
10482
10556
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
@@ -11778,6 +11852,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11778
11852
|
zh: zh,
|
|
11779
11853
|
en: en
|
|
11780
11854
|
};
|
|
11781
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.
|
|
11855
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.2';
|
|
11782
11856
|
|
|
11783
11857
|
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.5-beta.
|
|
3
|
-
* Copyright (c) 2026-09-
|
|
2
|
+
* @ezuikit/player-theme v3.1.5-beta.2
|
|
3
|
+
* Copyright (c) 2026-09-04 02:44:28 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -4749,6 +4749,12 @@
|
|
|
4749
4749
|
part: 'left',
|
|
4750
4750
|
isrender: 1
|
|
4751
4751
|
},
|
|
4752
|
+
{
|
|
4753
|
+
iconId: 'capturePicture',
|
|
4754
|
+
part: 'left',
|
|
4755
|
+
defaultActive: 0,
|
|
4756
|
+
isrender: 1
|
|
4757
|
+
},
|
|
4752
4758
|
{
|
|
4753
4759
|
iconId: 'volume',
|
|
4754
4760
|
part: 'left',
|
|
@@ -4762,6 +4768,72 @@
|
|
|
4762
4768
|
defaultActive: 0,
|
|
4763
4769
|
isrender: 1
|
|
4764
4770
|
},
|
|
4771
|
+
{
|
|
4772
|
+
// flv 录制 2.1.2 新增
|
|
4773
|
+
iconId: 'zoom',
|
|
4774
|
+
part: 'left',
|
|
4775
|
+
defaultActive: 0,
|
|
4776
|
+
isrender: 1
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
iconId: 'fullscreen',
|
|
4780
|
+
part: 'right',
|
|
4781
|
+
defaultActive: 0,
|
|
4782
|
+
isrender: 1
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
iconId: 'globalFullscreen',
|
|
4786
|
+
part: 'right',
|
|
4787
|
+
defaultActive: 0,
|
|
4788
|
+
isrender: 1
|
|
4789
|
+
}
|
|
4790
|
+
]
|
|
4791
|
+
}
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
/**
|
|
4795
|
+
* flv 预览
|
|
4796
|
+
*/ var RecTemplate = {
|
|
4797
|
+
autoFocus: 3,
|
|
4798
|
+
// poster:
|
|
4799
|
+
// "https://img2.baidu.com/it/u=3209353042,356122753&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
|
|
4800
|
+
footer: {
|
|
4801
|
+
btnList: [
|
|
4802
|
+
{
|
|
4803
|
+
iconId: 'play',
|
|
4804
|
+
part: 'left',
|
|
4805
|
+
isrender: 1
|
|
4806
|
+
},
|
|
4807
|
+
{
|
|
4808
|
+
iconId: 'capturePicture',
|
|
4809
|
+
part: 'left',
|
|
4810
|
+
defaultActive: 0,
|
|
4811
|
+
isrender: 1
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
iconId: 'volume',
|
|
4815
|
+
part: 'left',
|
|
4816
|
+
defaultActive: 0,
|
|
4817
|
+
isrender: 1
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
iconId: 'recordvideo',
|
|
4821
|
+
part: 'left',
|
|
4822
|
+
defaultActive: 0,
|
|
4823
|
+
isrender: 1
|
|
4824
|
+
},
|
|
4825
|
+
{
|
|
4826
|
+
iconId: 'zoom',
|
|
4827
|
+
part: 'left',
|
|
4828
|
+
defaultActive: 0,
|
|
4829
|
+
isrender: 1
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
iconId: 'speed',
|
|
4833
|
+
part: 'right',
|
|
4834
|
+
defaultActive: 0,
|
|
4835
|
+
isrender: 1
|
|
4836
|
+
},
|
|
4765
4837
|
{
|
|
4766
4838
|
iconId: 'fullscreen',
|
|
4767
4839
|
part: 'right',
|
|
@@ -12467,6 +12539,7 @@
|
|
|
12467
12539
|
var themeData = (_this_options = _this.options) == null ? void 0 : _this_options.themeData; // IThemeData | null | undefined
|
|
12468
12540
|
var template = (_this_options1 = _this.options) == null ? void 0 : _this_options1.template; // ThemeTemplateType | string | undefined
|
|
12469
12541
|
var initialThemeData;
|
|
12542
|
+
// hls ezhls flv mp4 不支持 template
|
|
12470
12543
|
if (options.type === 'hls' || options.type === 'ezhls') {
|
|
12471
12544
|
var _options_url;
|
|
12472
12545
|
// hls / ezhls:@3.1.1 起支持自定义 themeData,但不支持标准提供的模板;未传时回退 hlsLiveTemplate
|
|
@@ -12476,8 +12549,9 @@
|
|
|
12476
12549
|
'flv',
|
|
12477
12550
|
'mp4'
|
|
12478
12551
|
].includes(options.type)) {
|
|
12552
|
+
var _options_url1;
|
|
12479
12553
|
// flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
|
|
12480
|
-
initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
|
|
12554
|
+
initialThemeData = themeData !== undefined ? themeData : ((_options_url1 = options.url) == null ? void 0 : _options_url1.includes('/openpb/')) ? RecTemplate : LiveTemplate;
|
|
12481
12555
|
} else {
|
|
12482
12556
|
var _ref6;
|
|
12483
12557
|
// 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
|
|
@@ -13779,7 +13853,7 @@
|
|
|
13779
13853
|
zh: zh,
|
|
13780
13854
|
en: en
|
|
13781
13855
|
};
|
|
13782
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.
|
|
13856
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.5-beta.2';
|
|
13783
13857
|
|
|
13784
13858
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13785
13859
|
|
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1512,8 +1512,14 @@ 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
|
+
/**
|
|
1518
|
+
* @type { "rec" | "cloudRec" | "cloudRecord" } recType 回放类型
|
|
1519
|
+
* ```ts
|
|
1520
|
+
* theme.recType // 回放类型
|
|
1521
|
+
* ```
|
|
1522
|
+
*/
|
|
1517
1523
|
readonly talkVolumeChange: "talkVolumeChange";
|
|
1518
1524
|
readonly broadcastChange: "broadcastChange";
|
|
1519
1525
|
readonly aichatChange: "aichatChange";
|
|
@@ -1527,10 +1533,7 @@ declare class Theme extends EventEmitter {
|
|
|
1527
1533
|
readonly setVideoLevelList: "setVideoLevelList";
|
|
1528
1534
|
readonly currentVideoLevel: "currentVideoLevel";
|
|
1529
1535
|
readonly currentVideoLevelAuto: "currentVideoLevelAuto";
|
|
1530
|
-
readonly setAllDayRecTimes: "setAllDayRecTimes";
|
|
1531
|
-
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
1532
|
-
* @private
|
|
1533
|
-
*/
|
|
1536
|
+
readonly setAllDayRecTimes: "setAllDayRecTimes";
|
|
1534
1537
|
readonly getOSDTime: "getOSDTime";
|
|
1535
1538
|
readonly playbackEnd: "playbackEnd";
|
|
1536
1539
|
readonly control: {
|
|
@@ -1544,8 +1547,8 @@ declare class Theme extends EventEmitter {
|
|
|
1544
1547
|
readonly volumeDestroy: "Control.volumeDestroy";
|
|
1545
1548
|
readonly controlsBarOpenChange: "Control.controlsBarOpenChange";
|
|
1546
1549
|
readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
|
|
1547
|
-
readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
|
|
1548
|
-
readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
|
|
1550
|
+
readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
|
|
1551
|
+
readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange"; /** 清晰度列表 */
|
|
1549
1552
|
readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
|
|
1550
1553
|
readonly deviceDestroy: "Control.deviceDestroy";
|
|
1551
1554
|
readonly recTypeChange: "Control.recTypeChange";
|
|
@@ -1746,13 +1749,13 @@ declare class Theme extends EventEmitter {
|
|
|
1746
1749
|
OPEN_INSTRUCTIONS: string;
|
|
1747
1750
|
INIT_FINSHED: string;
|
|
1748
1751
|
INIT_SUCCESS: string;
|
|
1749
|
-
GET_PLAYURL_FAILED: string;
|
|
1752
|
+
GET_PLAYURL_FAILED: string; /** 所有私有流的模板 @since 0.0.1 */
|
|
1750
1753
|
VIDEO_LOADING: string;
|
|
1751
1754
|
DISCONNECT: string;
|
|
1752
1755
|
DEVICE_ENCRYPTED: string;
|
|
1753
1756
|
NO_RECORD: string;
|
|
1754
1757
|
PLAY_FAILED: string;
|
|
1755
|
-
PLAY_SUCCESS: string;
|
|
1758
|
+
PLAY_SUCCESS: string;
|
|
1756
1759
|
STOP_SUCCESS: string;
|
|
1757
1760
|
CHANGE_PLAYURL_SUCCESS: string;
|
|
1758
1761
|
CHANGE_PLAYURL_FAILED: string;
|
|
@@ -1767,14 +1770,13 @@ declare class Theme extends EventEmitter {
|
|
|
1767
1770
|
MAX_SPEED_LIMIT: string;
|
|
1768
1771
|
MIN_SPEED_LIMIT: string;
|
|
1769
1772
|
SEEK_CANNOT_CROSS_DAYS: string;
|
|
1770
|
-
/** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */
|
|
1771
1773
|
SEEK_TIMEFORMAT_ERROR: string;
|
|
1772
1774
|
PAUSE: string;
|
|
1773
1775
|
PAUSE_FAILED: string;
|
|
1774
1776
|
RESUME: string;
|
|
1775
1777
|
RESUME_FAILED: string;
|
|
1776
1778
|
CALL_END: string;
|
|
1777
|
-
USER_DO_NOT_OWN_DEVICE: string;
|
|
1779
|
+
USER_DO_NOT_OWN_DEVICE: string;
|
|
1778
1780
|
NO_CLOUD_RECORD: string;
|
|
1779
1781
|
CHANGE_VIDEO_LEVEL: string;
|
|
1780
1782
|
CHANGE_VIDEO_LEVEL_FAIL: string;
|
|
@@ -1790,11 +1792,6 @@ declare class Theme extends EventEmitter {
|
|
|
1790
1792
|
VIDEO_LEVEL_3K: string;
|
|
1791
1793
|
VIDEO_LEVEL_4k: string;
|
|
1792
1794
|
RESET_THEME: string;
|
|
1793
|
-
/**
|
|
1794
|
-
* 更多控件(header more)
|
|
1795
|
-
* @since 0.0.1
|
|
1796
|
-
* @private
|
|
1797
|
-
*/
|
|
1798
1795
|
BTN_PLAY: string;
|
|
1799
1796
|
BTN_PAUSE: string;
|
|
1800
1797
|
BTN_VOLUME: string;
|
|
@@ -1807,7 +1804,7 @@ declare class Theme extends EventEmitter {
|
|
|
1807
1804
|
BTN_LIVE: string;
|
|
1808
1805
|
BTN_REC_DROPDOWN: string;
|
|
1809
1806
|
BTN_ALARM_MESSAGE: string;
|
|
1810
|
-
REC_DROPDOWN_CLOUD_REC: string;
|
|
1807
|
+
REC_DROPDOWN_CLOUD_REC: string;
|
|
1811
1808
|
REC_DROPDOWN_CLOUD_RECORD: string;
|
|
1812
1809
|
REC_DROPDOWN_LOCAL_REC: string;
|
|
1813
1810
|
BTN_ZOOM: string;
|
|
@@ -1826,7 +1823,7 @@ declare class Theme extends EventEmitter {
|
|
|
1826
1823
|
BTN_TIME: string;
|
|
1827
1824
|
BTN_MORE: string;
|
|
1828
1825
|
DEVICE_NAME: string;
|
|
1829
|
-
DEVICE_ID: string;
|
|
1826
|
+
DEVICE_ID: string; /** resizeObserver 监听销毁 */
|
|
1830
1827
|
CAPTURE_SUCCESS: string;
|
|
1831
1828
|
CAPTURE_FAILED: string;
|
|
1832
1829
|
START_RECORD_SUCCESS: string;
|
|
@@ -1836,7 +1833,7 @@ declare class Theme extends EventEmitter {
|
|
|
1836
1833
|
RECORD_TIPS: string;
|
|
1837
1834
|
RECORDS: string;
|
|
1838
1835
|
OPEN_SOUND: string;
|
|
1839
|
-
CLOSE_SOUND: string;
|
|
1836
|
+
CLOSE_SOUND: string;
|
|
1840
1837
|
SOUND_OPENED: string;
|
|
1841
1838
|
ZOOM: string;
|
|
1842
1839
|
START_ZOOM: string;
|
|
@@ -1852,10 +1849,11 @@ declare class Theme extends EventEmitter {
|
|
|
1852
1849
|
'3D_ZOOM_DISABLE': string;
|
|
1853
1850
|
'3D_ZOOM_FAILED': string;
|
|
1854
1851
|
START_3D_ZOOM: string;
|
|
1855
|
-
CLOSE_3D_ZOOM: string;
|
|
1852
|
+
CLOSE_3D_ZOOM: string; /** 对讲中 @private */
|
|
1856
1853
|
DEVICE_NOT_SUPPORT_3D_ZOOM: string;
|
|
1857
1854
|
'3D_ZOOM_ACTIVED': string;
|
|
1858
1855
|
'3D_ZOOM_NOT_ACTIVED': string;
|
|
1856
|
+
/** 清晰度列表 */
|
|
1859
1857
|
'3D_ZOOM_CLOSED': string;
|
|
1860
1858
|
CHANGE_ZOOM_TYPE: string;
|
|
1861
1859
|
FULLSCREEN: string;
|
|
@@ -1873,28 +1871,18 @@ declare class Theme extends EventEmitter {
|
|
|
1873
1871
|
PTZ_FAST: string;
|
|
1874
1872
|
PTZ_MID: string;
|
|
1875
1873
|
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
1874
|
/**
|
|
1885
1875
|
* 录像回放的月份列表 @private
|
|
1886
1876
|
*/
|
|
1877
|
+
PTZ_SPEED: string;
|
|
1887
1878
|
DEVICE_ZOOM: string;
|
|
1879
|
+
DEVICE_FOCUS: string;
|
|
1888
1880
|
/**
|
|
1889
1881
|
* 录像回放的月份列表 @private
|
|
1890
1882
|
*/
|
|
1891
|
-
DEVICE_FOCUS: string;
|
|
1892
1883
|
NOT_SUPPORT_DEVICE_ZOOM: string;
|
|
1893
1884
|
NOT_SUPPORT_FOCUS: string;
|
|
1894
1885
|
MIRROR: string;
|
|
1895
|
-
/**
|
|
1896
|
-
* 录像回放的月份列表 @private
|
|
1897
|
-
*/
|
|
1898
1886
|
MIRROR_TYPE_ERROR: string;
|
|
1899
1887
|
CHANGE_FEC_TYPE: string;
|
|
1900
1888
|
DEVICE_NOT_SUPPORT: string;
|
|
@@ -1948,40 +1936,6 @@ declare class Theme extends EventEmitter {
|
|
|
1948
1936
|
395506: string;
|
|
1949
1937
|
395507: string;
|
|
1950
1938
|
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
1939
|
395544: string;
|
|
1986
1940
|
395545: string;
|
|
1987
1941
|
395546: string;
|
|
@@ -2011,8 +1965,11 @@ declare class Theme extends EventEmitter {
|
|
|
2011
1965
|
396101: string;
|
|
2012
1966
|
396102: string;
|
|
2013
1967
|
396103: string;
|
|
2014
|
-
396104: string;
|
|
2015
|
-
396105: string;
|
|
1968
|
+
396104: string; /** 回放底部时间轴 @since 0.0.1 @private */
|
|
1969
|
+
396105: string; /**
|
|
1970
|
+
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
1971
|
+
* @private
|
|
1972
|
+
*/
|
|
2016
1973
|
396106: string;
|
|
2017
1974
|
396107: string;
|
|
2018
1975
|
396108: string;
|
|
@@ -2035,12 +1992,12 @@ declare class Theme extends EventEmitter {
|
|
|
2035
1992
|
396516: string;
|
|
2036
1993
|
396517: string;
|
|
2037
1994
|
396518: string;
|
|
2038
|
-
396519: string;
|
|
2039
|
-
396520: string;
|
|
2040
|
-
396700: string;
|
|
2041
1995
|
/**
|
|
2042
1996
|
* 录像回放的月份列表 @private
|
|
2043
1997
|
*/
|
|
1998
|
+
396519: string;
|
|
1999
|
+
396520: string;
|
|
2000
|
+
396700: string;
|
|
2044
2001
|
396701: string;
|
|
2045
2002
|
397001: string;
|
|
2046
2003
|
397002: string;
|
|
@@ -2124,10 +2081,12 @@ declare class Theme extends EventEmitter {
|
|
|
2124
2081
|
VIDEO_LEVEL_SUPER: string;
|
|
2125
2082
|
VIDEO_LEVEL_EXTREME: string;
|
|
2126
2083
|
/**
|
|
2127
|
-
*
|
|
2084
|
+
* 视频分辨率 宽
|
|
2085
|
+
*
|
|
2128
2086
|
* @version 3.1.2
|
|
2087
|
+
*
|
|
2129
2088
|
* ```ts
|
|
2130
|
-
* theme.
|
|
2089
|
+
* theme.videoWidth // number
|
|
2131
2090
|
* ```
|
|
2132
2091
|
*/
|
|
2133
2092
|
VIDEO_LEVEL_3K: string;
|
|
@@ -2136,7 +2095,10 @@ declare class Theme extends EventEmitter {
|
|
|
2136
2095
|
BTN_PLAY: string;
|
|
2137
2096
|
BTN_PAUSE: string;
|
|
2138
2097
|
BTN_VOLUME: string;
|
|
2139
|
-
BTN_MUTED: string;
|
|
2098
|
+
BTN_MUTED: string; /**
|
|
2099
|
+
* 视频分辨率 高
|
|
2100
|
+
* @version 3.1.2
|
|
2101
|
+
*/
|
|
2140
2102
|
BTN_RECORDVIDEO: string;
|
|
2141
2103
|
BTN_CAPTURE: string;
|
|
2142
2104
|
BTN_TALK: string;
|
|
@@ -2204,18 +2166,16 @@ declare class Theme extends EventEmitter {
|
|
|
2204
2166
|
WEB_FULLSCREEN: string;
|
|
2205
2167
|
WEB_FULLSCREEN_EXIT: string;
|
|
2206
2168
|
DESTROY: string;
|
|
2207
|
-
GET_CAPACITY: string;
|
|
2208
|
-
* 静音
|
|
2209
|
-
* @example
|
|
2210
|
-
* ```ts
|
|
2211
|
-
* // 事件监听
|
|
2212
|
-
* theme.on(Theme.EVENTS.volumechange, (volume: number, muted: boolean) => {})
|
|
2213
|
-
* ```
|
|
2214
|
-
*/
|
|
2169
|
+
GET_CAPACITY: string;
|
|
2215
2170
|
GET_PTZ_STATUS: string;
|
|
2216
2171
|
GET_PTZ_STATUS_FAILED: string;
|
|
2217
2172
|
MOBILE_HIDE_PTZ: string;
|
|
2218
|
-
|
|
2173
|
+
/**
|
|
2174
|
+
* 是否在缩放中
|
|
2175
|
+
*/
|
|
2176
|
+
OPTION_PTZ_FAILED: string; /**
|
|
2177
|
+
* 是否在缩放中
|
|
2178
|
+
*/
|
|
2219
2179
|
MOBILE_PTZ_TIPS: string;
|
|
2220
2180
|
PTZ_FAST: string;
|
|
2221
2181
|
PTZ_MID: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezuikit/player-theme",
|
|
3
|
-
"version": "3.1.5-beta.
|
|
3
|
+
"version": "3.1.5-beta.2",
|
|
4
4
|
"description": "player theme",
|
|
5
5
|
"title": "theme",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ezuikit/utils-i18n": "^2.0.1",
|
|
38
38
|
"@ezuikit/utils-logger": "^2.0.1",
|
|
39
|
-
"@ezuikit/utils-tools": "^2.0.
|
|
39
|
+
"@ezuikit/utils-tools": "^2.0.7",
|
|
40
40
|
"@ezuikit/control-date-picker": "2.1.2-beta.1",
|
|
41
41
|
"@ezuikit/control-time-line": "2.1.0",
|
|
42
42
|
"@ezuikit/control-ptz": "1.0.0",
|