A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
其他语言版本:简体中文
Built upon the Agora Miniapp SDK, the Agora Miniapp Sample App is an open-source demo that integrates video chat and live broadcast into your Wechat Mini Application.
With this sample app, you can:
Create a developer account at Agora.io, create a new project and obtain an App ID, and enable the App Certificate.
Download this project.
Fill in the App ID in config.js in the utils folder of this project:
const APPID = 'abcdefg'
Contact sales@agora.io to abtain the Agora Miniapp SDK, and rename the SDK to "mini-app-sdk-production.js".
Save the "mini-app-sdk-production.js" under the lib folder of this project.
Start the WeChat Developer Tool and import this project.
Enter a channel name and join a channel. Invite your friend to join in the same channel and you will be able to see each other.
If you have enabled the App Certificate, you will need to generate the Token/Dynamic Key at the server for authentication purposes. Use it in the following method:
//...
client.join(<your key/access token here>, channel, uid, () => {
//...
See Token or Dynamic Key for generating the Token or Key at the server.
If you have any problems or suggestions regarding the sample projects, feel free to file an issue.
The sample projects are under the MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。