Stabilize playback state and cursor feedback

This commit is contained in:
2026-05-18 20:57:20 +02:00
parent 6e908037fb
commit 751ac5f62b
13 changed files with 580 additions and 82 deletions
+7
View File
@@ -66,6 +66,13 @@ class PlaybackCoordinatorModule extends BaseModule {
this.isPlaying = true;
this.currentSentence = sentence;
document.dispatchEvent(new CustomEvent('story:process-state', {
detail: {
state: 'playing-ready',
reason: 'playback-start',
sentenceId: sentence?.id ?? null
}
}));
try {
// Start TTS first, then begin text animation when the audio element