From ab5d7ef72d34cf77101bc288737b99e9f151137e Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 13 Aug 2021 09:05:35 +0800
Subject: [PATCH] 视频20
---
pages/videoCall/videoCall.nvue | 49 ++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 42 insertions(+), 7 deletions(-)
diff --git a/pages/videoCall/videoCall.nvue b/pages/videoCall/videoCall.nvue
index 96aaf43..18b5c50 100644
--- a/pages/videoCall/videoCall.nvue
+++ b/pages/videoCall/videoCall.nvue
@@ -300,8 +300,43 @@
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();
+
}
});
@@ -672,11 +707,11 @@
// 如果需要跳转其它页面请按下边步骤
// await uni.redirectTo({
// url: '..',
- uni.showToast({
- title: '正在退出视频',
- duration: 2000,
- icon: 'none'
- });
+ // uni.showToast({
+ // title: '正在退出视频',
+ // duration: 2000,
+ // icon: 'none'
+ // });
// success: () => {
// uni.navigateBack();
--
Gitblit v1.9.3