Skip to content

Commit 0a138a4

Browse files
committedDec 18, 2024·
docs: update
1 parent 5917a99 commit 0a138a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎README.md

+16
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ import EZUIKit from "ezuikit-js";
4747
```html
4848
<!-- umd -->
4949
<script src="./ezuikit.js"></script>
50+
51+
<script>
52+
const player = new EZUIKit.EZUIKitPlayer({
53+
id: "video-container", // 视频容器ID
54+
accessToken:
55+
"at.3bvmj4ycamlgdwgw1ig1jruma0wpohl6-48zifyb39c-13t5am6-yukyi86mz",
56+
url: "ezopen://open.ys7.com/BD3957004/1.live",
57+
width: 600,
58+
height: 400,
59+
handleError: (err) => {
60+
if (err.type === "handleRunTimeInfoError" && err.data.nErrorCode === 5) {
61+
// 加密设备密码错误
62+
}
63+
},
64+
});
65+
<script>
5066
```
5167
5268
### 开始使用 - 初始化

0 commit comments

Comments
 (0)
Please sign in to comment.