提交工单
咨询集成、功能及报价等问题
Make sure your development environment meets the following requirements:
localhost
or 127.0.0.1
.Platform | Browser | Supported OS version |
---|---|---|
Windows | Chrome | Windows 7 or later |
macOS | Chrome | macOS 10.10 or later |
iOS | Safari | iOS 10.0 or later |
iOS | WeChat Embedded Browser | iOS 10.0 or later |
Android | Chrome | Android 8.0 or later |
Android | WeChat Embedded Browser | Android 8.0 or later |
If you need the file sharing feature, download the ZegoDocsView SDK.
├── index.html
├── sdk
├── js
│ └── index.js
└── css
└── index.css
Index.html
: the index page of the project.sdk
: the directory where the ZegoWhiteboardView SDK files are located.js/index.js
: the JavaScript code of the ZegoWhiteboardView SDK.css/index.css
: the style sheet of the index page.index.html
file.<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ZegoWhiteboardView</title>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div id="app"></div>
<script src="./js/index.js"></script>
</body>
</html>
Run and test the project.
For testing, you can run the project on your local web server (localhost
or 127.0.0.1
). In production, your web server needs to serve over https.
a. Open Terminal, and run npm i live-server -g
to install live-server
.
b. Run cd
to go to the root directory of the project.
c. Run live-server .
to launch the default browser and automatically open the index.html
page.
Download the latest version of the SDK from the Whiteboard SDK downloads page.
npm i zego-express-whiteboard-web
Import the SDK using the <script> tag.
<script src="ZegoExpressWhiteboardWeb.js"></script>
or
import {ZegoExpressEngine} from'zego-express-whiteboard-web';
// or
const ZegoExpressEngine = require('zego-express-whiteboard-web').ZegoExpressEngine;