Skip to content

Commit 43f2965

Browse files
committed
demo: update ezuikit-js@8.1.10-beta.1
1 parent c3ebf50 commit 43f2965

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

demos/vue3-demo/src/components/Player.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ const stopSave = () => {
7878
});
7979
};
8080
81-
const ezopenStartTalk = () => {
81+
const startTalk = () => {
8282
player.startTalk();
8383
};
8484
85-
const ezopenStopTalk = () => {
85+
const stopTalk = () => {
8686
player.stopTalk();
8787
};
8888
@@ -150,7 +150,14 @@ const init = () => {
150150
* 默认值 1
151151
*/
152152
streamInfoCBType: 1,
153+
// v8.1.10
154+
// 自定义清晰度 默认 null, 如果有值 sdk 内部不在进行获取, null 默认使用接口获取的清晰度列表, videoLevelList.length === 0 不展示清晰度控件 sdk 内部不在进行获取, videoLevelList.length > 0 展示控件 sdk 内部不在进行获取
155+
videoLevelList: [
156+
{ level: 0, name: "流畅", streamTypeIn: 2 },
157+
{ level: 1, name: "标清", streamTypeIn: 1 },
158+
],
153159
});
160+
154161
player.eventEmitter.on(
155162
EZUIKit.EZUIKitPlayer.EVENTS.videoInfo,
156163
(info: any) => {
@@ -201,8 +208,8 @@ onMounted(() => {
201208
<button @click="capturePicture">capturePicture</button>
202209
<button @click="fullScreen">fullScreen</button>
203210
<button @click="getOSDTime">getOSDTime</button>
204-
<button @click="ezopenStartTalk">startTalk</button>
205-
<button @click="ezopenStopTalk">stopTalk</button>
211+
<button @click="startTalk">startTalk</button>
212+
<button @click="stopTalk">stopTalk</button>
206213
<button @click="destroy">destroy</button>
207214
</div>
208215
</div>

0 commit comments

Comments
 (0)