Stabilize playback state and cursor feedback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user