Skip to content

Commit a3cc9dd

Browse files
authoredNov 19, 2024··
Merge pull request #277 from Ezviz-OpenBiz/develop
version: 8.1.2-alpha.1
2 parents bca9b78 + 8e28fe4 commit a3cc9dd

File tree

5 files changed

+63
-47
lines changed

5 files changed

+63
-47
lines changed
 

‎.github/workflows/relese.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Release
44
on:
55
push:
66
tags:
7-
- 'v*'
7+
- "v*"
88
# 任务,定义个changelog 的任务
99
jobs:
1010
changelog:
@@ -27,13 +27,25 @@ jobs:
2727
# 安装依赖
2828
- name: Install dependencies
2929
run: npm install
30+
31+
# 获取 tag 的版本类型(alpha 或 beta)
32+
- name: Determine release tag
33+
id: determine_tag
34+
run: |
35+
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\/\(.*\)/\1/')
36+
PRERELEASE=$(echo $TAG | sed -n 's/.*-\(alpha\|beta\|rc\).*/\1/p')
37+
if [ -n "$PRERELEASE" ]; then
38+
echo "::set-output name=tag::$PRERELEASE"
39+
else
40+
echo "::set-output name=tag::latest"
41+
fi
3042
# # 打包
3143
# - name: Build Packages
3244
# run: pnpm run build
3345
# 发布npm 发布前执行了prepublishOnly
3446
- name: Publish npm
35-
run: npm publish
47+
run: npm publish --tag ${{ steps.determine_tag.outputs.tag }}
3648
env:
3749
# 这里需要几个 Token 变量
3850
# NPM_TOKEN 需要在 npm 网站生成
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

‎CHANGELOG.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@
33
#### Feat
44

55
- 支持多实例
6+
- 新增入参 debugDownloadData, 下载原始码流, 调试码流使用
7+
- 新增入参 disableRenderPrivateData, 禁止渲染私有数据 (如智能分析, 移动侦测, 火点信息等)
68

79
### Fixed
810

9-
- 优化全屏的逻辑, 修复已知的bug, [issues #240](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/240)
10-
- 优化resize的逻辑, 修复已知的bug [issues #120](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/120)
11-
- 修复初始化窗口抖动的bug
12-
- 修复一些已知bug [issues #269](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/269)
11+
- 优化全屏的逻辑, 修复已知的 bug, [issues #240](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/240)
12+
- 优化 resize 的逻辑, 修复已知的 bug [issues #120](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/120)
13+
- 修复初始化窗口抖动的 bug
14+
- 修复一些已知 bug [issues #269](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/269)
1315

1416
## v8.1.0 (2024-11-04)
17+
1518
#### Feat
19+
1620
- 完善取流埋点上报内容,错误上报
1721

1822
#### Fixed
19-
- 修复偶现初始化成功后无法播放的问题
2023

24+
- 修复偶现初始化成功后无法播放的问题
2125

2226
## v8.0.13-alpha.1 (2024-10-17)
2327

‎README.md

+30-30
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var player = new EZUIKit.EZUIKitPlayer({
8989

9090
alpha(功能测试)、beta(集成测试)为我们的非正式版本,可能存在功能或使用上的问题,若您遇到了任何问题,欢迎向我们反馈。
9191

92-
非正式版本没有CDN资源,使用时需要配置 `staticPath`,引用本地的解码库资源。
92+
非正式版本没有 CDN 资源,使用时需要配置 `staticPath`,引用本地的解码库资源。
9393

9494
### 使用示例
9595

@@ -120,29 +120,27 @@ alpha(功能测试)、beta(集成测试)为我们的非正式版本,
120120
121121
```js
122122
EZOPENDemo = new EZUIKit.EZUIKitPlayer({
123-
id: 'playWind',
123+
id: "playWind",
124124
width: 600,
125125
height: 400,
126-
template:"pcLive",
127-
url: '',
128-
accessToken: '',
129-
env:{
130-
domain: "https://iusopen.ezvizlife.com" // 北美地区
131-
}
126+
template: "pcLive",
127+
url: "",
128+
accessToken: "",
129+
env: {
130+
domain: "https://iusopen.ezvizlife.com", // 北美地区
131+
},
132132
});
133133
```
134134

135135
各地区的域名分别为:
136136

137-
| 区域 | 域名 |
138-
| --- | -------------------------------- |
139-
| 北美 | https://iusopen.ezvizlife.com |
140-
| 南美 | https://isaopen.ezvizlife.com |
141-
| 欧洲 | https://ieuopen.ezvizlife.com |
137+
| 区域 | 域名 |
138+
| ------ | -------------------------------- |
139+
| 北美 | https://iusopen.ezvizlife.com |
140+
| 南美 | https://isaopen.ezvizlife.com |
141+
| 欧洲 | https://ieuopen.ezvizlife.com |
142142
| 新加坡 | https://isgpopen.ezvizlife.com |
143-
| 印度 | https://iindiaopen.ezvizlife.com |
144-
145-
143+
| 印度 | https://iindiaopen.ezvizlife.com |
146144

147145
#### 最佳实践 tips
148146

@@ -375,6 +373,8 @@ themeData将主题数据本地化,设置本地数据,需要删除template参
375373
<tr><td>handleError</td><td>function</td><td>错误回调</td><td>N</td></tr>
376374
<tr><td>seekFrequency </td><td>function</td><td>为避免频繁拖动播放异常,可设置模板回放时间轴拖动防抖间隔,默认值为2000(2秒),可取2000(2秒),3000(3秒),4000(4秒),5000(5秒)</td><td>N</td></tr>
377375
<tr><td>language</td><td>String</td><td>多语言 (zh | en), 默认zh (v8.0.8版本及以上支持)</td><td>N</td></tr>
376+
<tr><td>debugDownloadData</td><td>boolean</td><td>下载原始码流, 调试码流使用, 默认 false (v8.1.1版本及以上支持)</td><td>N</td></tr>
377+
<tr><td>disableRenderPrivateData</td><td>boolean</td><td>禁止渲染私有数据(如智能分析, 移动侦测, 火点信息等), 默认 false (v8.1.1版本及以上支持)</td><td>N</td></tr>
378378
</table>
379379

380380
### 方法调用
@@ -547,17 +547,17 @@ player.changePlayUrl(options).then(() => {
547547

548548
options 参数说明
549549

550-
| 参数名 | 类型 | 是否必选 | 默认值 | 描述 |
551-
|:------------ |:------- |:---- |:------ |:------------------------------------------- |
552-
| type | String | Y || 播放地址类型,"live":预览,"rec":回放;“cloud.rec”:云存储回放 |
553-
| deviceSerial | String | Y || 设备序列号,存在英文字母的设备序列号,字母需为大写 |
554-
| channelNo | int | Y || 通道号 |
555-
| accessToken | String | N | 初始化时获取 | 授权过程获取的 access_token |
556-
| hd | boolean | N | 初始化时获取 | 是否为高清 true-主码流(高清) false-子码流(标清) |
557-
| validCode | String | N | 初始化时获取 | 设备验证码(加密设备播放需要输入验证码) |
558-
| validCode | String | N | 初始化时获取 | 设备验证码(加密设备播放需要输入验证码) |
559-
| begin | String | N | 初始化时获取 | type 类型为回放有效,开始时间 格式为“YYYYMMDDHHmmss” |
560-
| end | String | N | 初始化时获取 | type 类型为回放有效,结束时间 格式为 “YYYYMMDDHHmmss” |
550+
| 参数名 | 类型 | 是否必选 | 默认值 | 描述 |
551+
| :----------- | :------ | :------- | :----------- | :-------------------------------------------------------------- |
552+
| type | String | Y | | 播放地址类型,"live":预览,"rec":回放;“cloud.rec”:云存储回放 |
553+
| deviceSerial | String | Y | | 设备序列号,存在英文字母的设备序列号,字母需为大写 |
554+
| channelNo | int | Y | | 通道号 |
555+
| accessToken | String | N | 初始化时获取 | 授权过程获取的 access_token |
556+
| hd | boolean | N | 初始化时获取 | 是否为高清 true-主码流(高清) false-子码流(标清) |
557+
| validCode | String | N | 初始化时获取 | 设备验证码(加密设备播放需要输入验证码) |
558+
| validCode | String | N | 初始化时获取 | 设备验证码(加密设备播放需要输入验证码) |
559+
| begin | String | N | 初始化时获取 | type 类型为回放有效,开始时间 格式为“YYYYMMDDHHmmss” |
560+
| end | String | N | 初始化时获取 | type 类型为回放有效,结束时间 格式为 “YYYYMMDDHHmmss” |
561561

562562
#### 切换模板主题
563563

@@ -576,9 +576,9 @@ options 参数说明
576576

577577
template 参数说明
578578

579-
| 参数名 | 类型 | 描述 | 是否必选 |
580-
|:---- |:------ |:--------------------- |:---- |
581-
| type | String | 模板名称,详见初始化参数 template | Y |
579+
| 参数名 | 类型 | 描述 | 是否必选 |
580+
| :----- | :----- | :-------------------------------- | :------- |
581+
| type | String | 模板名称,详见初始化参数 template | Y |
582582

583583
#### 开启电子放大
584584

‎ezuikit.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "ezuikit-js",
3-
"version": "8.1.1",
3+
"version": "8.1.2-alpha.1",
44
"description": "ezuikit javascript for npm",
55
"main": "ezuikit.js",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/Hikvision-Ezviz/EZUIKit-JavaScript-npm.git"
8+
"url": "git+https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm.git"
99
},
1010
"author": "Ezviz-OpenBiz",
1111
"files": [
@@ -23,7 +23,7 @@
2323
},
2424
"license": "ISC",
2525
"bugs": {
26-
"url": "https://github.com/Hikvision-Ezviz/EZUIKit-JavaScript-npm/issues"
26+
"url": "https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues"
2727
},
28-
"homepage": "https://github.com/Hikvision-Ezviz/EZUIKit-JavaScript-npm#readme"
29-
}
28+
"homepage": "https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm#readme"
29+
}

0 commit comments

Comments
 (0)
Please sign in to comment.