Skip to content

Commit cd31945

Browse files
committed
demo: update
1 parent 88a162d commit cd31945

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,14 @@ const init = () => {
110110
player = new EZUIKitPlayer({
111111
id: "video-container", // 视频容器ID
112112
accessToken:
113-
"at.d525oyj8d7bwohb40ssn3266cfq2mwi2-8hgpypehn9-1fafaty-ea2fxbc1",
114-
url: "ezopen://open.ys7.com/BC7799091/1.hd.live",
113+
"at.2s5bel782emtho68ae31snumc1wuuioa-3d531vj77f-0gtnx7g-fddkee44",
114+
url: "ezopen://open.ys7.com/GBSUB:ELRHKIQI7O5C/1.hd.live",
115115
// simple: 极简版; pcLive: pc直播; pcRec: pc回放; mobileLive: 移动端直播; mobileRec: 移动端回放;security: 安防版; voice: 语音版;
116116
template: "pcLive",
117117
plugin: ["talk"], // 加载插件,talk-对讲
118118
width: 600,
119119
height: 400,
120+
// quality: 1, //
120121
// language: "en", // zh | en
121122
handleError: (err: any) => {
122123
console.error("handleError", err);
@@ -153,8 +154,8 @@ const init = () => {
153154
// v8.1.10
154155
// 自定义清晰度 默认 null, 如果有值 sdk 内部不在进行获取, null 默认使用接口获取的清晰度列表, videoLevelList.length === 0 不展示清晰度控件 sdk 内部不在进行获取, videoLevelList.length > 0 展示控件 sdk 内部不在进行获取
155156
// videoLevelList: [
156-
// { level: 0, name: "流畅", streamTypeIn: 2 },
157-
// { level: 1, name: "标清", streamTypeIn: 1 },
157+
// { level: 1, name: "标清", streamTypeIn: 2 }, // 需要保证支持子码流 (streamTypeIn=2)
158+
// { level: 2, name: "高清", streamTypeIn: 1 },
158159
// ],
159160
});
160161

0 commit comments

Comments
 (0)