更新记录
1.0.1(2024-11-22)
- 免费开源!
1.0.0(2024-03-15)
- UxFrame TRTC(腾讯音视频通话直播)SDK 1.0.0版本正式发布!
平台兼容性
uni-app x
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | 5.0 | - | - | - |
UxFrame 实时音视频通话直播SDK 1.0.0
前言介绍
欢迎使用UxFrame TRTCSDK!此插件是基于腾讯实时音视频TRTCSDK开发,轻松实现语音通话、视频通话、多人语音通话、多人视频通话、语音直播、视频直播、录屏直播等功能!
官方文档
import * as uxtrtc from "@/uni_modules/ux-trtc"
// 注册
uxtrtc.register({
appid: '您的appid',
secretkey: '您的secretkey',
success: (res) => {
console.log(res)
}
} as RegisterOptions)
// 进入房间
uxtrtc.enterRoom({
scene: '场景值',
userId: '用户id',
roomId: '房间id',
success: (res) => {
console.log(res);
},
fail: (err) => {
console.log(err);
}
} as LoginOptions)
// 退出房间
uxtrtc.exitRoom()
...