智慧保安互联网APP
zengh
2021-08-12 9ad39d2684217d16d18c8c4aec783a032338af96
初版集成
2 files modified
18 ■■■■ changed files
pages/videoCall/videoCall.nvue 14 ●●●● patch | view | raw | blame | history
store/mutations.js 4 ●●●● patch | view | raw | blame | history
pages/videoCall/videoCall.nvue
@@ -15,8 +15,8 @@
            </view>
            <view class="Receiver" v-if="!isMain">
                <view class="Mains-t">
                    <text class="activetext">是否接收来自{{callname}}的{{Otype == 'video'? '视频': '音频'}}请求</text>
                    <text class="activetext">接受进入{{channel}}</text>
                    <text class="activetext">是否接收来自{{callname}}的{{Otype == 'video'? '视频': '音频'}}邀请</text>
                    <!-- <text class="activetext">接受进入{{channel}}</text> -->
                    <u-loading size="36" mode="flower"></u-loading>
                </view>
                <view class="i-control">
@@ -209,7 +209,7 @@
                formName: '',
callname: '',
                callname: '',
@@ -297,7 +297,7 @@
                    // }
                    // console.log(that,1111111111111)
                    if (data.type == 'close') {
                        console.log('对方已挂断');
                        // RtcModule.leaveChannel((res) => {});
                        that.closeAll();
@@ -677,7 +677,7 @@
                    icon: 'none'
                });
                // success: () => {
                // uni.navigateBack();
                RtcModule.destroyRtc((res) => {
                    console.log("页面销毁", res.code);
@@ -714,10 +714,10 @@
                console.log(res.data);
                var data = JSON.parse(res.data)
                // if (call && ) {
                // }
                if (data.type == 'close') {
                    console.log('对方已挂断');
                    // RtcModule.leaveChannel((res) => {});
                    that.closeAll();
store/mutations.js
@@ -49,8 +49,8 @@
        console.log('登入数据传输成功  开始进入连接')
        
        uni.connectSocket({
            // url: 'ws://223.82.109.183:2086/websocket'
            url: 'ws://192.168.0.111:2086/websocket'
            url: 'ws://223.82.109.183:2086/websocket'
            // url: 'ws://192.168.0.111:2086/websocket'
        });
        var socketOpen = false;
        uni.onSocketOpen(function(res) {