@ezuikit/player-theme 0.0.1-alpha.4 → 0.0.1-alpha.5
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/index.js +21 -16
- package/dist/index.mjs +21 -16
- package/dist/index.umd.js +21 -16
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +4 -7
- package/package.json +1 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.5
|
|
3
|
+
* Copyright (c) 2025-10-09 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -3391,6 +3391,8 @@ function debounce(func, wait) {
|
|
|
3391
3391
|
});
|
|
3392
3392
|
theme == null ? void 0 : theme.on(EVENTS.videoInfo, (info)=>{
|
|
3393
3393
|
});
|
|
3394
|
+
theme == null ? void 0 : theme.on('getDeviceInfo', (info)=>{
|
|
3395
|
+
});
|
|
3394
3396
|
theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, ()=>{
|
|
3395
3397
|
theme._disabled(false);
|
|
3396
3398
|
});
|
|
@@ -3919,8 +3921,8 @@ const ZOOM_DEFAULT_OPTIONS = {
|
|
|
3919
3921
|
};
|
|
3920
3922
|
|
|
3921
3923
|
/*
|
|
3922
|
-
* @ezuikit/control-zoom v0.0.
|
|
3923
|
-
* Copyright (c) 2025-
|
|
3924
|
+
* @ezuikit/control-zoom v0.0.2
|
|
3925
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
3924
3926
|
* Released under the MIT License.
|
|
3925
3927
|
*/
|
|
3926
3928
|
/**
|
|
@@ -4593,7 +4595,7 @@ const ZOOM_DEFAULT_OPTIONS = {
|
|
|
4593
4595
|
this.setZoom = this.setZoom.bind(this);
|
|
4594
4596
|
}
|
|
4595
4597
|
}
|
|
4596
|
-
Zoom.VERSION = '0.0.
|
|
4598
|
+
Zoom.VERSION = '0.0.2';
|
|
4597
4599
|
|
|
4598
4600
|
function _extends$i() {
|
|
4599
4601
|
_extends$i = Object.assign || function(target) {
|
|
@@ -5299,8 +5301,8 @@ function _extends$d() {
|
|
|
5299
5301
|
}
|
|
5300
5302
|
|
|
5301
5303
|
/*
|
|
5302
|
-
* @ezuikit/control-ptz v0.0.1
|
|
5303
|
-
* Copyright (c) 2025-
|
|
5304
|
+
* @ezuikit/control-ptz v0.0.1
|
|
5305
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
5304
5306
|
* Released under the MIT License.
|
|
5305
5307
|
*/
|
|
5306
5308
|
|
|
@@ -5469,11 +5471,11 @@ class MobilePtz extends BasePtz {
|
|
|
5469
5471
|
$icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
|
|
5470
5472
|
}
|
|
5471
5473
|
}
|
|
5472
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5474
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5473
5475
|
if (type === 'stop') {
|
|
5474
5476
|
var _this_options_env1;
|
|
5475
5477
|
url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
|
|
5476
|
-
$warp.style = '';
|
|
5478
|
+
$warp.style.cssText = '';
|
|
5477
5479
|
$icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
5478
5480
|
$icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
5479
5481
|
$icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
@@ -5517,11 +5519,14 @@ class MobilePtz extends BasePtz {
|
|
|
5517
5519
|
60003,
|
|
5518
5520
|
60004
|
|
5519
5521
|
].includes(+rt.code)) {
|
|
5520
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5522
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5521
5523
|
}
|
|
5522
5524
|
}
|
|
5523
5525
|
operationResultCb == null ? void 0 : operationResultCb(rt);
|
|
5524
5526
|
}).catch((err)=>{
|
|
5527
|
+
}).finally(()=>{
|
|
5528
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5529
|
+
operationResultCb = null;
|
|
5525
5530
|
});
|
|
5526
5531
|
}
|
|
5527
5532
|
constructor(container, options){
|
|
@@ -6910,8 +6915,8 @@ const SPEED_DEFAULT_OPTIONS = {
|
|
|
6910
6915
|
}
|
|
6911
6916
|
|
|
6912
6917
|
/*
|
|
6913
|
-
* @ezuikit/control-date-picker v0.0.1
|
|
6914
|
-
* Copyright (c) 2025-
|
|
6918
|
+
* @ezuikit/control-date-picker v0.0.1
|
|
6919
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
6915
6920
|
* Released under the MIT License.
|
|
6916
6921
|
*/
|
|
6917
6922
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -7385,8 +7390,8 @@ function _extends$6() {
|
|
|
7385
7390
|
}
|
|
7386
7391
|
|
|
7387
7392
|
/*
|
|
7388
|
-
* @ezuikit/control-time-line v0.0.1
|
|
7389
|
-
* Copyright (c) 2025-
|
|
7393
|
+
* @ezuikit/control-time-line v0.0.1
|
|
7394
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
7390
7395
|
* Released under the MIT License.
|
|
7391
7396
|
*/
|
|
7392
7397
|
|
|
@@ -10540,7 +10545,7 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10540
10545
|
*/ this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ this._header = null, /** 低部控件 @since 0.0.1 @private */ this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ this._recFooter = null, /**
|
|
10541
10546
|
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
10542
10547
|
* @private
|
|
10543
|
-
*/ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /**
|
|
10548
|
+
*/ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 自定清晰度 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
|
|
10544
10549
|
this._initOptions(options);
|
|
10545
10550
|
if (this.options.type === 'ezopen') {
|
|
10546
10551
|
var _this_urlInfo_searchParams, _this_urlInfo;
|
|
@@ -10600,7 +10605,7 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10600
10605
|
zh,
|
|
10601
10606
|
en
|
|
10602
10607
|
};
|
|
10603
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
10608
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.5';
|
|
10604
10609
|
|
|
10605
10610
|
exports.Control = Control;
|
|
10606
10611
|
exports.Fullscreen = Fullscreen;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.5
|
|
3
|
+
* Copyright (c) 2025-10-09 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -3387,6 +3387,8 @@ function debounce(func, wait) {
|
|
|
3387
3387
|
});
|
|
3388
3388
|
theme == null ? void 0 : theme.on(EVENTS.videoInfo, (info)=>{
|
|
3389
3389
|
});
|
|
3390
|
+
theme == null ? void 0 : theme.on('getDeviceInfo', (info)=>{
|
|
3391
|
+
});
|
|
3390
3392
|
theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, ()=>{
|
|
3391
3393
|
theme._disabled(false);
|
|
3392
3394
|
});
|
|
@@ -3915,8 +3917,8 @@ const ZOOM_DEFAULT_OPTIONS = {
|
|
|
3915
3917
|
};
|
|
3916
3918
|
|
|
3917
3919
|
/*
|
|
3918
|
-
* @ezuikit/control-zoom v0.0.
|
|
3919
|
-
* Copyright (c) 2025-
|
|
3920
|
+
* @ezuikit/control-zoom v0.0.2
|
|
3921
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
3920
3922
|
* Released under the MIT License.
|
|
3921
3923
|
*/
|
|
3922
3924
|
/**
|
|
@@ -4589,7 +4591,7 @@ const ZOOM_DEFAULT_OPTIONS = {
|
|
|
4589
4591
|
this.setZoom = this.setZoom.bind(this);
|
|
4590
4592
|
}
|
|
4591
4593
|
}
|
|
4592
|
-
Zoom.VERSION = '0.0.
|
|
4594
|
+
Zoom.VERSION = '0.0.2';
|
|
4593
4595
|
|
|
4594
4596
|
function _extends$i() {
|
|
4595
4597
|
_extends$i = Object.assign || function(target) {
|
|
@@ -5295,8 +5297,8 @@ function _extends$d() {
|
|
|
5295
5297
|
}
|
|
5296
5298
|
|
|
5297
5299
|
/*
|
|
5298
|
-
* @ezuikit/control-ptz v0.0.1
|
|
5299
|
-
* Copyright (c) 2025-
|
|
5300
|
+
* @ezuikit/control-ptz v0.0.1
|
|
5301
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
5300
5302
|
* Released under the MIT License.
|
|
5301
5303
|
*/
|
|
5302
5304
|
|
|
@@ -5465,11 +5467,11 @@ class MobilePtz extends BasePtz {
|
|
|
5465
5467
|
$icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
|
|
5466
5468
|
}
|
|
5467
5469
|
}
|
|
5468
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5470
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5469
5471
|
if (type === 'stop') {
|
|
5470
5472
|
var _this_options_env1;
|
|
5471
5473
|
url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
|
|
5472
|
-
$warp.style = '';
|
|
5474
|
+
$warp.style.cssText = '';
|
|
5473
5475
|
$icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
5474
5476
|
$icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
5475
5477
|
$icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
@@ -5513,11 +5515,14 @@ class MobilePtz extends BasePtz {
|
|
|
5513
5515
|
60003,
|
|
5514
5516
|
60004
|
|
5515
5517
|
].includes(+rt.code)) {
|
|
5516
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5518
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
5517
5519
|
}
|
|
5518
5520
|
}
|
|
5519
5521
|
operationResultCb == null ? void 0 : operationResultCb(rt);
|
|
5520
5522
|
}).catch((err)=>{
|
|
5523
|
+
}).finally(()=>{
|
|
5524
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5525
|
+
operationResultCb = null;
|
|
5521
5526
|
});
|
|
5522
5527
|
}
|
|
5523
5528
|
constructor(container, options){
|
|
@@ -6906,8 +6911,8 @@ const SPEED_DEFAULT_OPTIONS = {
|
|
|
6906
6911
|
}
|
|
6907
6912
|
|
|
6908
6913
|
/*
|
|
6909
|
-
* @ezuikit/control-date-picker v0.0.1
|
|
6910
|
-
* Copyright (c) 2025-
|
|
6914
|
+
* @ezuikit/control-date-picker v0.0.1
|
|
6915
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
6911
6916
|
* Released under the MIT License.
|
|
6912
6917
|
*/
|
|
6913
6918
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -7381,8 +7386,8 @@ function _extends$6() {
|
|
|
7381
7386
|
}
|
|
7382
7387
|
|
|
7383
7388
|
/*
|
|
7384
|
-
* @ezuikit/control-time-line v0.0.1
|
|
7385
|
-
* Copyright (c) 2025-
|
|
7389
|
+
* @ezuikit/control-time-line v0.0.1
|
|
7390
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
7386
7391
|
* Released under the MIT License.
|
|
7387
7392
|
*/
|
|
7388
7393
|
|
|
@@ -10536,7 +10541,7 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10536
10541
|
*/ this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ this._header = null, /** 低部控件 @since 0.0.1 @private */ this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ this._recFooter = null, /**
|
|
10537
10542
|
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
10538
10543
|
* @private
|
|
10539
|
-
*/ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /**
|
|
10544
|
+
*/ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 自定清晰度 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
|
|
10540
10545
|
this._initOptions(options);
|
|
10541
10546
|
if (this.options.type === 'ezopen') {
|
|
10542
10547
|
var _this_urlInfo_searchParams, _this_urlInfo;
|
|
@@ -10596,6 +10601,6 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10596
10601
|
zh,
|
|
10597
10602
|
en
|
|
10598
10603
|
};
|
|
10599
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
10604
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.5';
|
|
10600
10605
|
|
|
10601
10606
|
export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume, Theme as default };
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.5
|
|
3
|
+
* Copyright (c) 2025-10-09 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -5258,6 +5258,8 @@
|
|
|
5258
5258
|
});
|
|
5259
5259
|
theme == null ? void 0 : theme.on(EVENTS.videoInfo, function(info) {
|
|
5260
5260
|
});
|
|
5261
|
+
theme == null ? void 0 : theme.on('getDeviceInfo', function(info) {
|
|
5262
|
+
});
|
|
5261
5263
|
theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, function() {
|
|
5262
5264
|
theme._disabled(false);
|
|
5263
5265
|
});
|
|
@@ -5843,8 +5845,8 @@
|
|
|
5843
5845
|
}(Control);
|
|
5844
5846
|
|
|
5845
5847
|
/*
|
|
5846
|
-
* @ezuikit/control-zoom v0.0.
|
|
5847
|
-
* Copyright (c) 2025-
|
|
5848
|
+
* @ezuikit/control-zoom v0.0.2
|
|
5849
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
5848
5850
|
* Released under the MIT License.
|
|
5849
5851
|
*/
|
|
5850
5852
|
/**
|
|
@@ -6517,7 +6519,7 @@
|
|
|
6517
6519
|
this.setZoom = this.setZoom.bind(this);
|
|
6518
6520
|
}
|
|
6519
6521
|
}
|
|
6520
|
-
Zoom.VERSION = '0.0.
|
|
6522
|
+
Zoom.VERSION = '0.0.2';
|
|
6521
6523
|
|
|
6522
6524
|
function _extends$i() {
|
|
6523
6525
|
_extends$i = Object.assign || function(target) {
|
|
@@ -7601,8 +7603,8 @@
|
|
|
7601
7603
|
function isMobile(agent){var _navigator,_navigator1,_navigator2;return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null==(_navigator=navigator)?void 0:_navigator.userAgent)||/Macintosh/i.test(null==(_navigator1=navigator)?void 0:_navigator1.userAgent)&&(null==(_navigator2=navigator)?void 0:_navigator2.maxTouchPoints)>1}
|
|
7602
7604
|
|
|
7603
7605
|
/*
|
|
7604
|
-
* @ezuikit/control-ptz v0.0.1
|
|
7605
|
-
* Copyright (c) 2025-
|
|
7606
|
+
* @ezuikit/control-ptz v0.0.1
|
|
7607
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
7606
7608
|
* Released under the MIT License.
|
|
7607
7609
|
*/
|
|
7608
7610
|
|
|
@@ -7771,11 +7773,11 @@
|
|
|
7771
7773
|
$icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
|
|
7772
7774
|
}
|
|
7773
7775
|
}
|
|
7774
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
7776
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
|
|
7775
7777
|
if (type === 'stop') {
|
|
7776
7778
|
var _this_options_env1;
|
|
7777
7779
|
url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
|
|
7778
|
-
$warp.style = '';
|
|
7780
|
+
$warp.style.cssText = '';
|
|
7779
7781
|
$icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
7780
7782
|
$icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
7781
7783
|
$icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
|
|
@@ -7819,11 +7821,14 @@
|
|
|
7819
7821
|
60003,
|
|
7820
7822
|
60004
|
|
7821
7823
|
].includes(+rt.code)) {
|
|
7822
|
-
$warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
7824
|
+
$warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
|
|
7823
7825
|
}
|
|
7824
7826
|
}
|
|
7825
7827
|
operationResultCb == null ? void 0 : operationResultCb(rt);
|
|
7826
7828
|
}).catch((err)=>{
|
|
7829
|
+
}).finally(()=>{
|
|
7830
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7831
|
+
operationResultCb = null;
|
|
7827
7832
|
});
|
|
7828
7833
|
}
|
|
7829
7834
|
constructor(container, options){
|
|
@@ -9571,8 +9576,8 @@
|
|
|
9571
9576
|
}(Select);
|
|
9572
9577
|
|
|
9573
9578
|
/*
|
|
9574
|
-
* @ezuikit/control-date-picker v0.0.1
|
|
9575
|
-
* Copyright (c) 2025-
|
|
9579
|
+
* @ezuikit/control-date-picker v0.0.1
|
|
9580
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
9576
9581
|
* Released under the MIT License.
|
|
9577
9582
|
*/
|
|
9578
9583
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -10072,8 +10077,8 @@
|
|
|
10072
10077
|
}(Control);
|
|
10073
10078
|
|
|
10074
10079
|
/*
|
|
10075
|
-
* @ezuikit/control-time-line v0.0.1
|
|
10076
|
-
* Copyright (c) 2025-
|
|
10080
|
+
* @ezuikit/control-time-line v0.0.1
|
|
10081
|
+
* Copyright (c) 2025-09-21 Ezviz-OpenBiz
|
|
10077
10082
|
* Released under the MIT License.
|
|
10078
10083
|
*/
|
|
10079
10084
|
|
|
@@ -12679,7 +12684,7 @@
|
|
|
12679
12684
|
*/ _this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ _this._header = null, /** 低部控件 @since 0.0.1 @private */ _this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ _this._recFooter = null, /**
|
|
12680
12685
|
* 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
|
|
12681
12686
|
* @private
|
|
12682
|
-
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /**
|
|
12687
|
+
*/ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, /** 播放地址信息 */ _this.urlInfo = null;
|
|
12683
12688
|
_this._initOptions(options);
|
|
12684
12689
|
if (_this.options.type === 'ezopen') {
|
|
12685
12690
|
var _this_urlInfo_searchParams, _this_urlInfo;
|
|
@@ -13845,7 +13850,7 @@
|
|
|
13845
13850
|
zh: zh,
|
|
13846
13851
|
en: en
|
|
13847
13852
|
};
|
|
13848
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
13853
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.5';
|
|
13849
13854
|
|
|
13850
13855
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13851
13856
|
|
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1216,7 +1216,7 @@ declare class Theme extends EventEmitter {
|
|
|
1216
1216
|
readonly speedChange: "Control.speedChange";
|
|
1217
1217
|
readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
|
|
1218
1218
|
readonly speedDestroy: "Control.speedDestroy";
|
|
1219
|
-
readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange";
|
|
1219
|
+
readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange"; /** 播放地址信息 */
|
|
1220
1220
|
readonly ptzSpeedChange: "Control.ptzSpeedChange";
|
|
1221
1221
|
readonly ptzError: "Control.ptzError";
|
|
1222
1222
|
readonly ptzDestroy: "Control.ptzDestroy";
|
|
@@ -1490,7 +1490,7 @@ declare class Theme extends EventEmitter {
|
|
|
1490
1490
|
DEVICE_NOT_SUPPORT_3D_ZOOM: string;
|
|
1491
1491
|
'3D_ZOOM_ACTIVED': string;
|
|
1492
1492
|
'3D_ZOOM_NOT_ACTIVED': string; /** 倍速 @private */
|
|
1493
|
-
'3D_ZOOM_CLOSED': string; /**
|
|
1493
|
+
'3D_ZOOM_CLOSED': string; /** 自定清晰度 @private */
|
|
1494
1494
|
CHANGE_ZOOM_TYPE: string;
|
|
1495
1495
|
FULLSCREEN: string;
|
|
1496
1496
|
FULLSCREEN_EXIT: string;
|
|
@@ -1643,7 +1643,7 @@ declare class Theme extends EventEmitter {
|
|
|
1643
1643
|
396505: string;
|
|
1644
1644
|
396506: string;
|
|
1645
1645
|
396508: string;
|
|
1646
|
-
/**
|
|
1646
|
+
/** 自定清晰度 @private */
|
|
1647
1647
|
396509: string;
|
|
1648
1648
|
396510: string;
|
|
1649
1649
|
396511: string;
|
|
@@ -1803,9 +1803,6 @@ declare class Theme extends EventEmitter {
|
|
|
1803
1803
|
CHANGE_ZOOM_TYPE: string;
|
|
1804
1804
|
FULLSCREEN: string;
|
|
1805
1805
|
FULLSCREEN_EXIT: string;
|
|
1806
|
-
/**
|
|
1807
|
-
* 倍速
|
|
1808
|
-
*/
|
|
1809
1806
|
GET_WEB_FULLSCREEN_STATUS: string;
|
|
1810
1807
|
WEB_FULLSCREEN: string;
|
|
1811
1808
|
WEB_FULLSCREEN_EXIT: string;
|
|
@@ -1940,7 +1937,7 @@ declare class Theme extends EventEmitter {
|
|
|
1940
1937
|
_talking: boolean;
|
|
1941
1938
|
/** 倍速 @private */
|
|
1942
1939
|
_speed: number;
|
|
1943
|
-
/**
|
|
1940
|
+
/** 自定清晰度 @private */
|
|
1944
1941
|
_videoLevelAuto: boolean;
|
|
1945
1942
|
/** 清晰度列表 */
|
|
1946
1943
|
videoLevelList: DefinitionItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezuikit/player-theme",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.5",
|
|
4
4
|
"description": "player theme",
|
|
5
5
|
"title": "theme",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,9 +40,5 @@
|
|
|
40
40
|
"@ezuikit/control-ptz": "workspace:*",
|
|
41
41
|
"@ezuikit/control-zoom": "workspace:*",
|
|
42
42
|
"@ezuikit/control-time-line": "workspace:*"
|
|
43
|
-
},
|
|
44
|
-
"publishConfig": {
|
|
45
|
-
"registry": "https://registry.npmjs.org/",
|
|
46
|
-
"access": "public"
|
|
47
43
|
}
|
|
48
44
|
}
|