Commit 08dec26f authored by liujiangnan's avatar liujiangnan

fix: 音频播放问题修改

parent 5b022765
......@@ -12,6 +12,8 @@ angularjs技术框架下的H5互动模板框架脚手架,基于NG-ZORRO实现
都下载最新版就行,然后默认安装就可以
* 注意 这个模板要使用nodejs v12.14,然后npm install 之后还要再手动安装一个 querystring
## 生成项目
......
......@@ -135,5 +135,8 @@
}
}
},
"defaultProject": "ng-template-generator"
}
"defaultProject": "ng-template-generator",
"cli": {
"analytics": "f15c66ea-8ef1-40c4-9ba6-b310c457c730"
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -128,7 +128,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
playAudio(ev) {
ev.preventDefault();
if (this.data.contentObj && this.data.contentObj.audio_id) {
if (this.isPlaying) {
if (!this.audio.paused) {
this.audio.pause();
this.isPlaying = false;
} else {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment