Commit e92cc153 authored by Li Mingzhe's avatar Li Mingzhe

feat: 自动播放

parent 9e6542b6
...@@ -457,6 +457,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -457,6 +457,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this.refreshAnswerNum(); this.refreshAnswerNum();
this.refreshSpeakerActive();
} }
initTitle() { initTitle() {
...@@ -550,6 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -550,6 +552,9 @@ export class PlayComponent implements OnInit, OnDestroy {
showItem(this.titleLabel, 0.3); showItem(this.titleLabel, 0.3);
this.playAudio('tip', true); this.playAudio('tip', true);
setTimeout(() => {
this.clickedSpeaker();
}, 500);
}); });
} else { } else {
...@@ -755,6 +760,10 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -755,6 +760,10 @@ export class PlayComponent implements OnInit, OnDestroy {
clickedSpeaker() { clickedSpeaker() {
if (!this.speakerIcon.active) {
return;
}
this.speakerIcon.visible = false; this.speakerIcon.visible = false;
this.speakerAnima.visible = true; this.speakerAnima.visible = true;
this.speakerAnima.replay(); this.speakerAnima.replay();
...@@ -933,8 +942,6 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -933,8 +942,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this.refreshSpeakerActive(); this.refreshSpeakerActive();
this.canTouch = true; this.canTouch = true;
}, 2500); }, 2500);
} }
......
src/assets/play/speaker/2.png

8.19 KB | W: | H:

src/assets/play/speaker/2.png

7.41 KB | W: | H:

src/assets/play/speaker/2.png
src/assets/play/speaker/2.png
src/assets/play/speaker/2.png
src/assets/play/speaker/2.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/play/speaker/4.png

7.41 KB | W: | H:

src/assets/play/speaker/4.png

8.19 KB | W: | H:

src/assets/play/speaker/4.png
src/assets/play/speaker/4.png
src/assets/play/speaker/4.png
src/assets/play/speaker/4.png
  • 2-up
  • Swipe
  • Onion skin
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