Commit a8010120 authored by liujiangnan's avatar liujiangnan

fix: 音频不播放的问题

parent 8ebccd0b
...@@ -804,8 +804,11 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -804,8 +804,11 @@ export class PlayComponent implements OnInit, OnDestroy {
bottomRectClick(rect) { bottomRectClick(rect) {
if (rect.item.id == this.curShape.item.id) { if (rect.item.id == this.curShape.item.id) {
if (rect.audio) {
rect.audio.play();
rect.audio.pause();
rect.audio.currentTime = 0;
}
if (!rect.end) { if (!rect.end) {
......
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