mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-25 07:47:56 -07:00
Reset the 'played' state
This commit is contained in:
parent
6c370f15c8
commit
5f864599f0
1 changed files with 2 additions and 0 deletions
|
@ -43,12 +43,14 @@ export default defineComponent({
|
||||||
this.utterance = new SpeechSynthesisUtterance(this.step.text);
|
this.utterance = new SpeechSynthesisUtterance(this.step.text);
|
||||||
this.utterance.onstart = (event) => {
|
this.utterance.onstart = (event) => {
|
||||||
self.playing = true;
|
self.playing = true;
|
||||||
|
self.played = false;
|
||||||
// self.$emit("playing", true); // TODO: Consider if this event should bubble or a proxy of it should.
|
// self.$emit("playing", true); // TODO: Consider if this event should bubble or a proxy of it should.
|
||||||
|
|
||||||
console.debug("Now playing: " + this.step.text);
|
console.debug("Now playing: " + this.step.text);
|
||||||
};
|
};
|
||||||
this.utterance.onend = () => {
|
this.utterance.onend = () => {
|
||||||
self.playing = false;
|
self.playing = false;
|
||||||
|
self.played = true;
|
||||||
// self.$emit("playing", false);
|
// self.$emit("playing", false);
|
||||||
|
|
||||||
console.debug("Playback complete");
|
console.debug("Playback complete");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue