| | |
| | | this.audioSynth = window.speechSynthesis |
| | | this.audioMsg = new window.SpeechSynthesisUtterance() |
| | | |
| | | this.audioMsg.onend = function () { |
| | | that.audioSynth.cancel() |
| | | that.audioFlag = false |
| | | that.audioCourse = false |
| | | that.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | this.$nextTick(() => { |
| | | this.audioMsg.onend = function () { |
| | | that.audioSynth.cancel() |
| | | that.audioFlag = false |
| | | that.audioCourse = false |
| | | that.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | }) |
| | | }, |
| | | mounted () { |
| | | global.viewer.scene.globe.depthTestAgainstTerrain = false |
| | |
| | | immediate: true, |
| | | handler (newCode, oldCode) { |
| | | if (newCode == false) { |
| | | this.audioSynth.cancel() |
| | | if (this.audioSynth != null) { |
| | | this.audioSynth.cancel() |
| | | } |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | } else { |
| | | if (this.audioFlag == true) { |
| | | this.audioSynth.cancel() |
| | | if (this.audioSynth != null) { |
| | | this.audioSynth.cancel() |
| | | } |
| | | this.audioFlag = false |
| | | this.audioCourse = false |
| | | this.audioImgUrl = '/img/icon/close-video.png' |