更新记录
1.0.5(2026-04-29) 下载此版本
Test passed.
1.0.4(2026-04-29) 下载此版本
bug fix
1.0.3(2026-04-29) 下载此版本
bug fix
查看更多平台兼容性
uni-app(5.04)
| Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | - | - | - | - |
| 微信小程序 | 微信小程序插件版本 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 小红书小程序 | 快应用-华为 | 快应用-联盟 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| √ | 1.0.0 | - | - | - | - | - | - | - | - | - | - | - |
uni-app x(5.04)
| Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
|---|---|---|---|---|---|
| - | - | - | - | - | - |
小程序自定义组件的通用使用方式详见:uni-app中使用小程序自定义组件教程
Cai-AgoraRTCMiniApp
SAMPLE App.vue
<script>
const Utils = require("./uni_modules/Cai-AgoraRTCMiniApp/rtc_utils/util.js");
export default {
globalData() {
return {
}
},
onLaunch: function() {
console.log('App Launch')
Utils.checkSystemInfo(this);
if (typeof global.getCurrentPages !== 'function') {
[global.getCurrentPages, global.getApp] = [global.getApp, global.getCurrentPages];
}
wx.authorize({
scope: 'scope.record',
success: function () {
console.log("authorize record success");
},
fail: function () {
console.log("authorize record fail");
}
});
wx.authorize({
scope: 'scope.camera',
success: function () {
console.log("authorize camera success");
},
fail: function () {
console.log("authorize camera fail");
}
});
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
In your demo, index page add a button to navigate to rtc index page
gotoRtc(){
console.log("go to rtc");
uni.navigateTo({
url: `/uni_modules/Cai-AgoraRTCMiniApp/pages/rtc_index/rtc_index`
});
}
Register on www.shengwang.cn and login to console, get the AppID and token and write to config.js
copy following files to your unpackage/dist/dev/mp-weixin/uni_modules/Cai-AgoraRTCMiniApp/ folder when you get an runtime error
- images/
- rtc_lib/
- rtc_utils/
Enjoy!

收藏人数:
下载插件并导入HBuilderX
赞赏(0)
下载 10
赞赏 0
下载 11744048
赞赏 1911
赞赏
京公网安备:11010802035340号