Skip to content

Commit 62ae21e

Browse files
committed
demo: update
1 parent 9aa8c36 commit 62ae21e

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

demos/vue3-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"ezuikit-js": "^8.1.10",
12+
"ezuikit-js": "8.1.10-beta.13",
1313
"vue": "^3.2.41",
1414
"terser": "^5.36.0"
1515
},

demos/vue3-demo/pnpm-lock.yaml

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

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

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,31 +158,22 @@ const init = () => {
158158
// ],
159159
});
160160
161-
player.eventEmitter.on(
162-
EZUIKitPlayer.EVENTS.videoInfo,
163-
(info: any) => {
164-
console.log("videoinfo", info);
165-
}
166-
);
161+
player.eventEmitter.on(EZUIKitPlayer.EVENTS.videoInfo, (info: any) => {
162+
console.log("videoinfo", info);
163+
});
167164
168-
player.eventEmitter.on(
169-
EZUIKitPlayer.EVENTS.audioInfo,
170-
(info: any) => {
171-
console.log("audioInfo", info);
172-
}
173-
);
165+
player.eventEmitter.on(EZUIKitPlayer.EVENTS.audioInfo, (info: any) => {
166+
console.log("audioInfo", info);
167+
});
174168
175169
// 首帧渲染成功
176170
// first frame display
177171
player.eventEmitter.on(EZUIKitPlayer.EVENTS.firstFrameDisplay, () => {
178172
console.log("firstFrameDisplay ");
179173
});
180-
player.eventEmitter.on(
181-
EZUIKitPlayer.EVENTS.streamInfoCB,
182-
(info: any) => {
183-
console.log("streamInfoCB ", info);
184-
}
185-
);
174+
player.eventEmitter.on(EZUIKitPlayer.EVENTS.streamInfoCB, (info: any) => {
175+
console.log("streamInfoCB ", info);
176+
});
186177
window.player = player;
187178
// });
188179
};

0 commit comments

Comments
 (0)