| | |
| | | `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}` |
| | | ) |
| | | .then((result) => { |
| | | console.log(result) |
| | | console.log(result); |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/rVoid`, |
| | |
| | | response.data.data[0].alarmId == userId |
| | | ) { |
| | | response.data.data[0].waringType = "一键求助"; |
| | | |
| | | |
| | | that.peopleList = [ |
| | | { label: that.form.oneContacts, value: that.form.onePhone }, |
| | | { label: that.form.twoContacts, value: that.form.twoPhone }, |
| | |
| | | that.peopleName = that.form.oneContacts; |
| | | that.peoplePhone = that.form.onePhone; |
| | | that.dialogTableVisible = true; |
| | | Recorder.getPermiRecorderssion().then(() => {}); |
| | | |
| | | console.log(Recorder) |
| | | |
| | | if (Recorder) Recorder.getPermiRecorderssion().then(() => {}); |
| | | |
| | | that.ofX = null; |
| | | that.ofY = null; |
| | |
| | | .then((result) => { |
| | | var formData = new FormData(); |
| | | var blob = that.recorder.getPCMBlob(); //获取pcm格式音频数据 |
| | | |
| | | //此处获取到blob对象后需要设置fileName满足当前项目上传需求,其它项目可直接传把blob作为file塞入formData |
| | | var newbolb = new Blob([blob], { type: "audio/pcm" }); |
| | | var fileOfBlob = new File([newbolb], new Date().getTime() + ".pcm"); |
| | |
| | | //开启心跳传送 |
| | | window.websockPing = setInterval(function () { |
| | | window.socket.send("ping"); |
| | | },10000); |
| | | |
| | | |
| | | }else{ |
| | | }, 10000); |
| | | } else { |
| | | console.log("WebSocket连接没有建立成功!!"); |
| | | //执行重连 |
| | | this.websocketStart(); |
| | | } |
| | | }, 3000); |
| | | |
| | | |
| | | |
| | | }, |
| | | }, |
| | | }; |