多人视频通话组件,基于agoraRtc(声网)插件进行开发。
import '../../components/multi-person-video-call.stml'
<multi-person-video-call
:channel="channelId"
:user="userId"
onstop="stopVideo"
onrefuse="refuseVideo"
v-if="isVideo"
></multi-person-video-call>
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| channel | 标识通话的频道名,必填 | string | - |
| user | 当前进行通话的用户ID,必填 | string | - |
| 事件名 | 说明 | 回调参数 |
|---|---|---|
| stop | 结束通话 | duration : 通话时长 |
| refuse | 拒绝通话,挂断 |
