Integrating SDK
This document describes how to quickly integrate the Tencent Cloud TEduBoard SDK into your project.
Environment Requirements
WeChat 6.6.6+
Latest version of WeChat Developer Tools
Integrate TEduBoard SDK
Note:
It is recommended to use the web-view solution for integration, which is based on Web SDK integration. Refer to the web documentation to integrate the webpage and use web-view to load it in the mini program. Currently, due to the mini program component rules, the whiteboard (canvas solution) SDK implemented with native mini program components lacks capabilities for PPT, zooming, moving, etc., so the native component solution (canvas solution) is not recommended.
Note:
The native mini program component canvas solution currently does not accept new requirements.
Whiteboard Feature | Canvas Solution | Webview Method | Description |
Brush | ✔ | ✔ | - |
Eraser | ✔ | ✔ | - |
Laser pointer | ✔ | ✔ | - |
Line | ✔ | ✔ | - |
Hollow Ellipse | ✔ | ✔ | - |
Hollow Rectangle | ✔ | ✔ | - |
Solid Ellipse | ✔ | ✔ | - |
Solid Rectangle | ✔ | ✔ | - |
Background color | ✔ | ✔ | - |
Background Image | ✔ | ✔ | - |
H5 Background | ✖ | ✔ | - |
Click Selection | ✔ | ✔ | - |
Box Selection | ✔ | ✔ | - |
Undo | ✔ | ✔ | - |
Redo | ✔ | ✔ | - |
Courseware to static (convert to images) | ✔ | ✔ | Support PPT, PDF to static images |
Courseware to dynamic (convert to H5) | ✖ | ✔ | - |
Zoom in | ✖ | ✔ | - |
Zoom out | ✖ | ✔ | - |
Dragging | ✖ | ✔ | - |
Initializing Whiteboard Ratio | ✔ | ✔ | - |
Text Input/Display | ✖ | ✔ | - |
Graffiti Smoothing Level | ✔ | ✔ | - |
Dynamically Setting Whiteboard Ratio | ✖ | ✔ | - |
Configuring a Business Domain Name
Log in to your mini program account on the WeChat Official Platform with your account and password, and configure the web-view business domain name under Development Management > Development Settings.
Note:
Configuring the web-view business domain name is mainly for loading the transcoded dynamic PPT. Please first refer to Bucket Configuration and configure the bucket in the Interactive Whiteboard Console. The new transcoded files will be stored in this bucket. Then, configure the access domain name of this bucket to the web-view business domain name.