Skip to content

Commit 69604f1

Browse files
committed
demo: update 8.2.0-beta.6
1 parent ed72189 commit 69604f1

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

demos/react-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"ezuikit-js": "8.2.0-beta.2",
6+
"ezuikit-js": "8.2.0-beta.6",
77
"react": "^17",
88
"react-dom": "^17",
99
"react-scripts": "5.0.1",

demos/react-demo/pnpm-lock.yaml

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

demos/react-demo/src/Player.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,16 @@ const Player = () => {
118118
/** 全屏 */
119119
const handleFullscreen = useCallback(() => {
120120
if (player.current) {
121-
player.current.fullscreen(); // 8.2.0 取代 fullScreen, 退出使用 exitFullscreen
121+
player.current.fullscreen(); // 8.2.0 完全取代 fullScreen, 退出使用 exitFullscreen
122122
}
123123
}, []);
124124

125125
/** 获取OSD时间 */
126126
const handleGetOSDTime = useCallback(() => {
127127
if (player.current) {
128-
console.log("OSDTime", player.current.getOSDTime());
128+
player.current.getOSDTime().then((data) => {
129+
console.log("getOSDTime 获取 数据", data);
130+
});
129131
}
130132
}, []);
131133

@@ -176,7 +178,7 @@ const Player = () => {
176178
type="text"
177179
ref={accessTokenRef}
178180
style={{ width: 500 }}
179-
defaultValue="at.d525oyj8d7bwohb40ssn3266cfq2mwi2-8hgpypehn9-1fafaty-ea2fxbc1"
181+
defaultValue="at.9uoaxo0k3e5dinq8bretm18e5l37k1l6-26lx1qcvcc-1neesaz-kh9hqvqc3"
180182
/>
181183
</div>
182184
<div>

0 commit comments

Comments
 (0)