Skip to content

Commit caa4515

Browse files
committed
docs: update ezuikit-js@8.1.10-beta.1
1 parent ac63163 commit caa4515

File tree

4 files changed

+40
-31
lines changed

4 files changed

+40
-31
lines changed

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/index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>视频模式使用示例:</h2>
2424
<div id="video-container" style="width: 600px"></div>
2525
</div>
2626
<div>
27-
<button onClick="init()">init</button>
27+
<button onClick="init()">出初始化(init)</button>
2828
<button onClick="play()">play</button>
2929
<button onClick="stop()">stop</button>
3030
<button onClick="getOSDTime()">getOSDTime</button>
@@ -33,8 +33,8 @@ <h2>视频模式使用示例:</h2>
3333
<button onClick="closeSound()">closeSound</button>
3434
<button onClick="startSave()">startSave</button>
3535
<button onClick="stopSave()">stopSave</button>
36-
<button onClick="ezopenStartTalk()">开始对讲</button>
37-
<button onClick="ezopenStopTalk()">结束对讲</button>
36+
<button onClick="startTalk()">开始对讲</button>
37+
<button onClick="stopTalk()">结束对讲</button>
3838
<button onClick="fullScreen()">全屏</button>
3939
<button onClick="destroy()">销毁</button>
4040
</div>
@@ -57,7 +57,7 @@ <h2>视频模式使用示例:</h2>
5757
player = new EZUIKit.EZUIKitPlayer({
5858
id: "video-container", // 视频容器ID
5959
accessToken:
60-
"ra.2zhsfvhv5n36uqiu5skq9a458d9g28o0-361rtyke9p-1r80x45-iteypfxmq",
60+
"at.d525oyj8d7bwohb40ssn3266cfq2mwi2-8hgpypehn9-1fafaty-ea2fxbc1k",
6161
url: "ezopen://open.ys7.com/BC7799091/1.hd.live",
6262
template: "pcLive", // simple: 极简版; pcLive: 预览; pcRec: 回放; security: 安防版; voice: 语音版;
6363
plugin: ["talk"], // 加载插件,talk-对讲
@@ -91,6 +91,12 @@ <h2>视频模式使用示例:</h2>
9191
*/
9292
streamInfoCBType: 1,
9393
staticPath: "/ezuikit_static", // 如果想使用本地静态资源,请复制根目录下ezuikit_static 到当前目录下, 然后设置该值
94+
// v8.1.10
95+
// 自定义清晰度 默认 null, 如果有值 sdk 内部不在进行获取, null 默认使用接口获取的清晰度列表, videoLevelList.length === 0 不展示清晰度控件 sdk 内部不在进行获取, videoLevelList.length > 0 展示控件 sdk 内部不在进行获取
96+
// videoLevelList: [
97+
// { level: 0, name: "流畅", streamTypeIn: 1 },
98+
// { level: 1, name: "标清", streamTypeIn: 1 },
99+
// ],
94100
});
95101

96102
player.eventEmitter.on(
@@ -180,10 +186,10 @@ <h2>视频模式使用示例:</h2>
180186
console.log("promise 获取 数据", data);
181187
});
182188
}
183-
function ezopenStartTalk() {
189+
function startTalk() {
184190
player.startTalk();
185191
}
186-
function ezopenStopTalk() {
192+
function stopTalk() {
187193
player.stopTalk();
188194
}
189195

0 commit comments

Comments
 (0)