| | |
| | | |
| | | console.log('对方已挂断'); |
| | | // RtcModule.leaveChannel((res) => {}); |
| | | that.closeAll(); |
| | | uni.navigateBack(); |
| | | // that.closeAll(); |
| | | |
| | | |
| | | |
| | | RtcModule.leaveChannel((res) => { |
| | | console.log('成功退出房间'); |
| | | // uni.navigateBack(); |
| | | }) |
| | | // await RtcModule.destroyRtc((res) => {}); |
| | | that.videoShow = false; //视频展示 |
| | | // this.videoShowBg = true; //背景展示 |
| | | that.promptText = "loading..."; |
| | | |
| | | that.PeerVideoUser = []; //远端用户加入存储 |
| | | // 本地 |
| | | that.audioSwitch = "open"; //音频开关 |
| | | that.vedioSwitch = "open"; //视频开关 |
| | | // 重新创建实例 |
| | | that.init(); |
| | | // 如果需要跳转其它页面请按下边步骤 |
| | | // await uni.redirectTo({ |
| | | // url: '..', |
| | | // uni.showToast({ |
| | | // title: '正在退出视频', |
| | | // duration: 2000, |
| | | // icon: 'none' |
| | | // }); |
| | | // success: () => { |
| | | |
| | | // uni.navigateBack(); |
| | | RtcModule.destroyRtc((res) => { |
| | | console.log("页面销毁", res.code); |
| | | console.log('成功销毁') |
| | | // uni.navigateBack(); |
| | | }); |
| | | uni.navigateBack(); |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | // 如果需要跳转其它页面请按下边步骤 |
| | | // await uni.redirectTo({ |
| | | // url: '..', |
| | | uni.showToast({ |
| | | title: '正在退出视频', |
| | | duration: 2000, |
| | | icon: 'none' |
| | | }); |
| | | // uni.showToast({ |
| | | // title: '正在退出视频', |
| | | // duration: 2000, |
| | | // icon: 'none' |
| | | // }); |
| | | // success: () => { |
| | | |
| | | // uni.navigateBack(); |