{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { getUsersig, reserveConferenceList } from '@/api/home';\nimport { secretaryRoleByUserId, htmlToPDF } from '@/api/room';\nimport { getWidth, getHeight, getWidthPhone, getModile } from \"@/utils/utils\";\nimport roomFooter from './components/roomFooter.vue';\nimport roomFooterPhone from \"./components/footerPhone.vue\";\nimport ASR from '../utils/asr.esm.js';\nimport TRTC from 'trtc-sdk-v5';\nlet trtc = null;\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\nimport { quillEditor } from 'vue-quill-editor';\nexport default {\n name: 'App',\n components: {\n roomFooter,\n roomFooterPhone,\n quillEditor\n },\n data() {\n return {\n userClass: \"userVideo5\",\n userClassPhone: \"userVideoPhone\",\n userList: [],\n userHeight: '100%',\n userPhoneHeight: '92%',\n userSign: \"\",\n roomId: \"\",\n userId: null,\n id: null,\n showFlag: false,\n modileFlag: false,\n localStreamAsr: null,\n contentValue: '',\n textVisible: false,\n editorOption: {\n // Some Quill options...\n },\n asrList: {},\n updataFlag: true\n };\n },\n methods: {\n // 点击提交修改后的内容\n updataClick() {\n reserveConferenceList({\n caseId: this.caseId,\n htmlContent: this.contentValue\n }).then(res => {\n this.$message({\n message: \"提交修改成功\",\n type: 'success'\n });\n });\n },\n onEditorBlur(quill) {\n console.log('editor blur!', this.content, quill);\n },\n onEditorFocus(quill) {\n if (!this.updataFlag) {\n quill.enable(false);\n } else {\n quill.enable(true);\n }\n console.log('editor focus!', quill);\n },\n onEditorReady(quill) {\n console.log('editor ready!', quill);\n },\n onEditorChange({\n quill,\n html,\n text\n }) {\n console.log('editor change!', quill, html, text);\n this.content = html;\n },\n // 点击显示修改的文本框\n txtContent() {\n this.textVisible = true;\n },\n // 鼠标滑过显示操作栏\n mouseHover() {\n this.showFlag = true;\n setTimeout(() => {\n this.showFlag = false;\n }, 4000);\n },\n async exitRoom() {\n // // 关闭识别\n // Object.keys(this.asrList).forEach(key => {\n // this.asrList[key].stop();\n // })\n // this.localStreamAsr.stop();\n await trtc.exitRoom();\n await trtc.updateLocalVideo({\n publish: false\n });\n await trtc.updateLocalAudio({\n publish: false\n });\n await trtc.destroy();\n this.$router.push({\n name: \"Home\"\n });\n },\n // 获取拉流信息\n getPushVideo() {\n trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, event => {\n const userId = event.userId;\n const streamType = event.streamType;\n this.userList.push(userId);\n // setTimeout(() => {\n // let aoido = trtc.getAudioTrack(userId)\n // this.asrList[this.userList[this.userList.length - 1]] = new ASR({\n // secretKey: 'INDrIXcT8YmomZBcsy0oNirnU0LTN4X7',\n // secretId: 'AKID3xfHgroY4MQHvLXUXMwIQL1UjmbBX1Tv',\n // appId: 1304001529,\n // engine_model_type: '16k_zh',\n // voice_format: 1,\n // needvad: 1,\n // audioTrack: aoido,\n // })\n // this.asrList[this.userList[this.userList.length - 1]].start();\n // // 开始识别\n // this.asrList[this.userList[this.userList.length - 1]].OnRecognitionStart = (res) => {\n // console.log('远端流:开始识别', res);\n // };\n // this.asrList[this.userList[this.userList.length - 1]].OnError = (res) => {\n // console.log('远端流:识别失败', res);\n // };\n // // 一句话结束\n // this.asrList[this.userList[this.userList.length - 1]].OnSentenceEnd = (res) => {\n // console.log('远端流:一句话结束', res);\n // this.contentValue = this.contentValue + `