智慧保安互联网APP
liuyg
2021-08-13 ab5d7ef72d34cf77101bc288737b99e9f151137e
视频20
1 files modified
49 ■■■■ changed files
pages/videoCall/videoCall.nvue 49 ●●●● patch | view | raw | blame | history
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();