Commit 23dc2663 authored by Jeff nan's avatar Jeff nan

feat

parent 93aeac50
......@@ -96,7 +96,12 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges {
}
playCount = 0;
playAudio() {
if (this.playCount == 0 && this.data.contentObj && this.data.contentObj.audio_id) {
this.playCount = 1;
this.audio = new Audio(this.data.contentObj.audio_id);
}
if (this.data.contentObj && this.data.contentObj.audio_id) {
if (this.isPlaying) {
this.audio.pause();
......
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