Skip to content

Commit b49c741

Browse files
authored
Merge pull request #319 from Ezviz-OpenBiz/develop
version: 8.1.10
2 parents 9986222 + 15ba39e commit b49c741

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+41866
-681
lines changed

.github/workflows/build-demos.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [16.x, 18.x, 20.x, 21.x, 22.x]
15+
node-version: [16.x, 18.x, 20.x, 21.x, 22.x, 23.x, 24.x]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -47,3 +47,9 @@ jobs:
4747
run: |
4848
pnpm install --no-frozen-lockfile
4949
pnpm run build
50+
51+
- name: Build with-vue2.6
52+
working-directory: ./demos/with-vue2.6
53+
run: |
54+
pnpm install --no-frozen-lockfile
55+
pnpm run build

.github/workflows/build-nextjs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build-nextjs
2+
3+
on:
4+
push:
5+
branches: ["main", "develop"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 21.x, 22.x, 23.x, 24.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 8
26+
27+
- name: Build with-next
28+
working-directory: ./demos/with-next
29+
run: |
30+
pnpm install --no-frozen-lockfile
31+
pnpm run build
32+
33+

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### v8.1.10 (2025-04-27)
2+
3+
#### Feat
4+
5+
- 优化取流逻辑,
6+
7+
- 启用 `host`, `host` 默认从播放地址中获取
8+
9+
#### Fixed
10+
11+
- 修复 `autoplay` 为 false 时, 不能播放问题
12+
13+
- 修复多窗口下对讲回调只会触发最后初始化的播放器
114

215
### v8.1.9 (2025-04-16)
316

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ themeData将主题数据本地化,设置本地数据,需要删除template参
384384
<tr><td>quality</td><td>0 | 1 | 2 | 3 | 4 | 5 | 6 | pp | qp</td><td>预览初始化支持指定清晰度进行播放, 默认 undefined (v8.1.5版本及以上支持), 0: 流畅; 1: 标清; 2: 高清; 3: 超清; 4: 极清; 5: 3K; 6: 4K ; "pp": "性能优先 (Performance Priority)"; "qp": "画质优先(Quality Priority)"。</td><td>N</td></tr>
385385
<tr><td>loggerOptions</td><td> {name: string, level: "INFO" | "LOG" | "WARN" | "ERROR" , showTime: boolean}</td><td>本地日志设置, 默认值 {name: "ezuikit", level: "INFO", showTime: true}, 支持动态设置请参考 <a href="#日志设置">setLoggerOptions(options)</a> (v8.1.9版本及以上支持)</td><td>N</td></tr>
386386
<tr><td>streamInfoCBType</td><td> 0 | 1 </td><td> 流信息回调类型,监听 streamInfoCB 事件, 0 : 每次都回调(会影响性能), 1 : 只回调一次, 默认值 1 (v8.1.9版本及以上支持)</td><td>N</td></tr>
387+
388+
<tr><td>videoLevelList</td><td> <span>Array<{ </br>/** 清晰度 */</br>level: number, </br>/** 名称 */ </br>name: string, </br> /**1: 主码流,2: 子码流*/</br>streamTypeIn: 1 | 2 }> <span>| null </td><td> 自定义清晰度列表,默认null, 如果有值 sdk 内部不在进行获取, 为 null 使用接口获取的清晰度列表, videoLevelList.length === 0 不展示清晰度控件 sdk 内部不在进行获取, videoLevelList.length > 0 展示控件 sdk 内部不在进行获取 (v8.1.10版本及以上支持)</td><td>N</td></tr>
387389
</table>
388390

389391
### 方法调用

demos/base-demo/cloudRecord/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88

99
## 备注
1010

11-
如果使用[npm](https://www.npmjs.com/package/ezuikit-js) 包, 请安装 `8.0.6` 版本,
11+
如果使用[npm](https://www.npmjs.com/package/ezuikit-js) 包,
1212

13-
8.0.6 之后的版本有点小问题, 后续会尽快恢复

demos/base-demo/ezuikit.js

Lines changed: 11 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/base-demo/ezuikit_static/speed/speed.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
user-select: none;
1515
}
1616

17+
18+
.speed-select > li {
19+
text-overflow: ellipsis;
20+
overflow: hidden;
21+
word-break: break-all;
22+
white-space: nowrap;
23+
padding: 0 10px;
24+
box-sizing: border-box;
25+
}
26+
1727
.speed-select li:hover {
1828
background: #1890ff1a;
1929
}

demos/base-demo/ezuikit_static/talk/tts-v4.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var spinner = null;
103103
Janus.log("Plugin attached! (" + tts.getPlugin() + ", id=" + tts.getId() + ")");
104104
// Negotiate WebRTC
105105
//var url = "tts://61.130.6.23:8664/talk://D13781761:0:1:cas.ys7.com:6500?97fbd2a75fa94b7682c994d3d1fac8ca:ut.5porslgu79e9r7ca48z32k8abgl3rp58-77bhb6i7xr-1kmumtg-jkhy7pvfr:0:3"
106-
106+
107107

108108
//var url = "tts://10.86.15.209:8664/talk://D13781761:0:1:cas.ys7.com:6500?32db2578ba7c4a84be22ecc0bcd0f8db:ut.5lqpkhim5m7cdk2y5w60g7hm9vd7i3v0-3d2pwhxe2t-11wx2ge-sh4yazbll:0:3"
109109
//var url = "tts://10.86.15.209:8664/talk://D13781761:0:1:cas.ys7.com:6500"
@@ -136,8 +136,8 @@ var spinner = null;
136136
error: function(error) {
137137
Janus.error("WebRTC error:", error);
138138
// bootbox.alert("WebRTC error... " + JSON.stringify(error));
139-
if(typeof window.EZUIKit.handleTalkError !== 'undefined'){
140-
window.EZUIKit.handleTalkError(error);
139+
if(typeof window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID] !== 'undefined'){
140+
window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID](error);
141141
}
142142
}
143143
});
@@ -150,8 +150,8 @@ var spinner = null;
150150
error: function(error) {
151151
console.error(" -- Error attaching plugin...", error);
152152
bootbox.alert("Error attaching plugin... " + error);
153-
if(window.EZUIKit.handleTalkError !== 'undefined'){
154-
window.EZUIKit.handleTalkError(error);
153+
if(window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID] !== 'undefined'){
154+
window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID](error);
155155
}
156156
},
157157
consentDialog: function(on) {
@@ -311,8 +311,8 @@ var spinner = null;
311311
},
312312
error: function(error) {
313313
Janus.error(error);
314-
if(window.EZUIKit.handleTalkError !== 'undefined'){
315-
window.EZUIKit.handleTalkError(error);
314+
if(window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID] !== 'undefined'){
315+
window.EZUIKit['handleTalkError']?.[window.__CURRENT_PLAYER_TALK_ID](error);
316316
}
317317
},
318318
destroyed: function() {

demos/base-demo/hls.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)