| | |
| | | /> |
| | | </div> |
| | | <div class="content"> |
| | | <video :src="monitorUrl" controls autoplay></video> |
| | | <play-video |
| | | :sourceUrl="monitorUrl" |
| | | @playStatus="changePlayStatus" |
| | | ></play-video> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | 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' |
| | | } |
| | | }, |
| | | mounted () { |
| | | global.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | this.$nextTick(() => { |
| | | this.audioMsg.onend = function () { |
| | | that.audioSynth.cancel() |
| | | that.audioFlag = false |
| | | that.audioCourse = false |
| | | that.audioImgUrl = '/img/icon/close-video.png' |
| | | } |
| | | }) |
| | | }, |
| | | watch: { |
| | | addIconsLayerIconPopup () { |
| | |
| | | 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' |
| | |
| | | this.$store.commit('SET_MONITORPOPUP', false) |
| | | }, |
| | | |
| | | changePlayStatus (status) { // 获取子组件的播放状态 |
| | | console.log(status) |
| | | }, |
| | | |
| | | audioPlay () { |
| | | if (this.audioFlag == false) { |
| | | this.audioMsg.text = this.audioSource |
| | |
| | | padding: 0 10px; |
| | | } |
| | | } |
| | | .introduce p { |
| | | padding: 0px; |
| | | height: 300px; |
| | | overflow-y: scroll; |
| | | } |
| | | </style> |