其他语言版本: 简体中文
This repository will help you learn how to use Agora Miniapp SDK to implement a simple video conference Wechat miniapp.
With this sample app, you can:
-
Integrate Agora Miniapp SDK
-
Join a channel
-
Push your local stream to the channel
-
Subscribe remote streams in the same channel
-
Leave a channel
-
A Wechat OpenPlatform account supporting live-pusher and live-player (only certified corporate account in certain industry can use these two compoennts, for details check here)
-
In the account, grant access to following domain:
-
wss://miniapp.agoraio.cn
First, create a developer account at Agora.io, and obtain an App ID. Update "config.js" in the util folder with your App ID.
const APPID = 'abcdefg'
The Agora Miniapp SDK can be downloaded from our official website or requested by contacting us. Name your SDK to "mini-app-sdk-production.js" and put it under lib folder.
Start Wechat Develoer tools and import this project.
Join a channel and invite your friend to join the same one, you shall be able to see each other.
If APP certificate is on, you will need to provide a service to calculate your dynamic key/access token and use it in following code
//...
client.join(<Your dynamic key/access token here>, channel, uid, () => {
//...
-
You can find full API document at Document Center
-
You can file bugs about this demo at issue
MIT