@ezuikit/player-theme 2.1.1-beta.1 → 2.1.2-beta.3
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.js +16 -12
- package/dist/index.mjs +16 -12
- package/dist/index.umd.js +16 -12
- package/dist/style.css +1 -1
- package/dist/style.js +2 -2
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.
|
|
3
|
-
* Copyright (c) 2026-
|
|
2
|
+
* @ezuikit/player-theme v2.1.2-beta.3
|
|
3
|
+
* Copyright (c) 2026-03-10 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -8519,13 +8519,15 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8519
8519
|
classNameSuffix: 'aichat'
|
|
8520
8520
|
})) || this;
|
|
8521
8521
|
_this._options = options;
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
_this.active
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8522
|
+
if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
|
|
8523
|
+
_this._render();
|
|
8524
|
+
_this.on(EVENTS.aichatChange, function(active) {
|
|
8525
|
+
if (_this.active !== active) {
|
|
8526
|
+
_this.active = active;
|
|
8527
|
+
_this._render();
|
|
8528
|
+
}
|
|
8529
|
+
});
|
|
8530
|
+
}
|
|
8529
8531
|
return _this;
|
|
8530
8532
|
}
|
|
8531
8533
|
var _proto = AIChat.prototype;
|
|
@@ -10098,7 +10100,8 @@ function _ts_generator$1(thisArg, body) {
|
|
|
10098
10100
|
}
|
|
10099
10101
|
// 需要权限的控件
|
|
10100
10102
|
var AUTH_KEY = [
|
|
10101
|
-
'ptz'
|
|
10103
|
+
'ptz',
|
|
10104
|
+
'aiChat'
|
|
10102
10105
|
];
|
|
10103
10106
|
/**
|
|
10104
10107
|
* 渲染控件
|
|
@@ -10161,7 +10164,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
10161
10164
|
accessToken: theme.options.accessToken,
|
|
10162
10165
|
token: theme.options.token,
|
|
10163
10166
|
deviceSerial: theme.urlInfo.deviceSerial,
|
|
10164
|
-
channelNo: theme.urlInfo.channelNo
|
|
10167
|
+
channelNo: theme.urlInfo.channelNo,
|
|
10168
|
+
urlInfo: theme.urlInfo
|
|
10165
10169
|
} : {}, {
|
|
10166
10170
|
PLAY_TYPE: theme.options.type
|
|
10167
10171
|
}, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
|
|
@@ -11948,7 +11952,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11948
11952
|
zh: zh,
|
|
11949
11953
|
en: en
|
|
11950
11954
|
};
|
|
11951
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.
|
|
11955
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
|
|
11952
11956
|
|
|
11953
11957
|
exports.Control = Control;
|
|
11954
11958
|
exports.EVENTS = EVENTS;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.
|
|
3
|
-
* Copyright (c) 2026-
|
|
2
|
+
* @ezuikit/player-theme v2.1.2-beta.3
|
|
3
|
+
* Copyright (c) 2026-03-10 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -8517,13 +8517,15 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8517
8517
|
classNameSuffix: 'aichat'
|
|
8518
8518
|
})) || this;
|
|
8519
8519
|
_this._options = options;
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
_this.active
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8520
|
+
if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
|
|
8521
|
+
_this._render();
|
|
8522
|
+
_this.on(EVENTS.aichatChange, function(active) {
|
|
8523
|
+
if (_this.active !== active) {
|
|
8524
|
+
_this.active = active;
|
|
8525
|
+
_this._render();
|
|
8526
|
+
}
|
|
8527
|
+
});
|
|
8528
|
+
}
|
|
8527
8529
|
return _this;
|
|
8528
8530
|
}
|
|
8529
8531
|
var _proto = AIChat.prototype;
|
|
@@ -10096,7 +10098,8 @@ function _ts_generator$1(thisArg, body) {
|
|
|
10096
10098
|
}
|
|
10097
10099
|
// 需要权限的控件
|
|
10098
10100
|
var AUTH_KEY = [
|
|
10099
|
-
'ptz'
|
|
10101
|
+
'ptz',
|
|
10102
|
+
'aiChat'
|
|
10100
10103
|
];
|
|
10101
10104
|
/**
|
|
10102
10105
|
* 渲染控件
|
|
@@ -10159,7 +10162,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
10159
10162
|
accessToken: theme.options.accessToken,
|
|
10160
10163
|
token: theme.options.token,
|
|
10161
10164
|
deviceSerial: theme.urlInfo.deviceSerial,
|
|
10162
|
-
channelNo: theme.urlInfo.channelNo
|
|
10165
|
+
channelNo: theme.urlInfo.channelNo,
|
|
10166
|
+
urlInfo: theme.urlInfo
|
|
10163
10167
|
} : {}, {
|
|
10164
10168
|
PLAY_TYPE: theme.options.type
|
|
10165
10169
|
}, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
|
|
@@ -11946,6 +11950,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11946
11950
|
zh: zh,
|
|
11947
11951
|
en: en
|
|
11948
11952
|
};
|
|
11949
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.
|
|
11953
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
|
|
11950
11954
|
|
|
11951
11955
|
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 v2.1.
|
|
3
|
-
* Copyright (c) 2026-
|
|
2
|
+
* @ezuikit/player-theme v2.1.2-beta.3
|
|
3
|
+
* Copyright (c) 2026-03-10 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -10161,13 +10161,15 @@
|
|
|
10161
10161
|
classNameSuffix: 'aichat'
|
|
10162
10162
|
})) || this;
|
|
10163
10163
|
_this._options = options;
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
_this.active
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10164
|
+
if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
|
|
10165
|
+
_this._render();
|
|
10166
|
+
_this.on(EVENTS.aichatChange, function(active) {
|
|
10167
|
+
if (_this.active !== active) {
|
|
10168
|
+
_this.active = active;
|
|
10169
|
+
_this._render();
|
|
10170
|
+
}
|
|
10171
|
+
});
|
|
10172
|
+
}
|
|
10171
10173
|
return _this;
|
|
10172
10174
|
}
|
|
10173
10175
|
var _proto = AIChat.prototype;
|
|
@@ -12250,7 +12252,8 @@
|
|
|
12250
12252
|
}
|
|
12251
12253
|
// 需要权限的控件
|
|
12252
12254
|
var AUTH_KEY = [
|
|
12253
|
-
'ptz'
|
|
12255
|
+
'ptz',
|
|
12256
|
+
'aiChat'
|
|
12254
12257
|
];
|
|
12255
12258
|
/**
|
|
12256
12259
|
* 渲染控件
|
|
@@ -12313,7 +12316,8 @@
|
|
|
12313
12316
|
accessToken: theme.options.accessToken,
|
|
12314
12317
|
token: theme.options.token,
|
|
12315
12318
|
deviceSerial: theme.urlInfo.deviceSerial,
|
|
12316
|
-
channelNo: theme.urlInfo.channelNo
|
|
12319
|
+
channelNo: theme.urlInfo.channelNo,
|
|
12320
|
+
urlInfo: theme.urlInfo
|
|
12317
12321
|
} : {}, {
|
|
12318
12322
|
PLAY_TYPE: theme.options.type
|
|
12319
12323
|
}, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
|
|
@@ -14100,7 +14104,7 @@
|
|
|
14100
14104
|
zh: zh,
|
|
14101
14105
|
en: en
|
|
14102
14106
|
};
|
|
14103
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.
|
|
14107
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.3';
|
|
14104
14108
|
|
|
14105
14109
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
14106
14110
|
|
package/dist/style.css
CHANGED
|
@@ -16,7 +16,7 @@ body.ezplayer-body-mobile-noscroll{background-color:#000!important;height:100vh;
|
|
|
16
16
|
.ezplayer-icon-volume{position:relative}.ezplayer-icon-volume svg .ezplayer-icon-volume-high,.ezplayer-icon-volume svg .ezplayer-icon-volume-low,.ezplayer-icon-volume svg .ezplayer-icon-volume-muted{display:none}.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-high,.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-low svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-muted svg .ezplayer-icon-volume-muted,.ezplayer-icon-volume.ezplayer-icon-volume-zero svg .ezplayer-icon-volume-muted{display:inline}.ezplayer-volume-progress{height:126px}
|
|
17
17
|
.ezplayer-control-rec{box-sizing:border-box;display:inline-flex;flex-direction:row}.ezplayer-control-rec .ezplayer-icon-cloud-rec,.ezplayer-control-rec .ezplayer-icon-cloud-record,.ezplayer-control-rec .ezplayer-icon-sdk{color:#d4d7dd;cursor:pointer;margin-left:5px}.ezplayer-mobile-extend .ezplayer-control-rec{background-color:#f4f6fc;border:1px solid #ededed;border-radius:18px;height:30px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec,.ezplayer-mobile-extend .ezplayer-icon-cloud-record,.ezplayer-mobile-extend .ezplayer-icon-sdk{cursor:pointer;font-size:20px;margin-left:1px;padding:2px 7px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-cloud-record.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-sdk.ezplayer-active{background-color:#fff;border-radius:12px;box-shadow:0 1px 4px 0 hsla(0,0%,68%,.2)}.ezplayer-mobile .ezplayer-icon-cloud-rec,.ezplayer-mobile .ezplayer-icon-cloud-record,.ezplayer-mobile .ezplayer-icon-sdk{margin-left:10px}
|
|
18
18
|
.ezplayer-more-panel{align-items:center;background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);cursor:default;display:flex;flex-direction:row;padding:8px 10px}.ezplayer-more .ezplayer-control{margin-left:10px}.ezplayer-more .ezplayer-control:first-child{margin-right:0}
|
|
19
|
-
.ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-
|
|
19
|
+
.ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-plus{padding-bottom:0}.ezplayer-mini-height .ezplayer-progress-minus{padding-top:0}.ezplayer-zoom-panel{bottom:0;display:inline-flex;flex-direction:column;height:100%;justify-content:flex-end;left:20px;padding-bottom:calc(var(--ezplayer-footer-height, 80px) + 20px);padding-top:10%;pointer-events:none;position:absolute;top:0;z-index:23}.ezplayer-zoom-panel .ezplayer-progress{height:200px;max-height:95%;pointer-events:auto}.ezplayer-mobile .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-mobile-footer-height, 54px) + 10px);padding-top:5%}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-zoom-panel{padding-bottom:var(--ezplayer-mobile-fullscreen-footer-height,110px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}
|
|
20
20
|
.ezplayer-icon-talk-growth-dot1,.ezplayer-icon-talk-growth-dot2,.ezplayer-icon-talk-growth-dot3,.ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-default-color,#fff)}.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot1,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-low .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-active-color,#407aff)}
|
|
21
21
|
.ezplayer-control-broadcast.ezplayer-active .ezplayer-icon-record-circle{color:var(--ezplayer-active-color,#407aff)}
|
|
22
22
|
.ezplayer-control-aichat.ezplayer-active .ezplayer-icon-aichat{color:var(--ezplayer-active-color,#407aff)}
|
package/dist/style.js
CHANGED