handle pause/resume events in viewer read aloud UI

New backend generates these.
This commit is contained in:
Kovid Goyal 2024-09-03 19:54:48 +05:30
parent 00ec5eb9fb
commit be476c304c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -233,6 +233,10 @@ class ReadAloud:
self.send_message('mark', num=data) self.send_message('mark', num=data)
elif which is 'begin': elif which is 'begin':
self.state = PLAYING self.state = PLAYING
elif which is 'pause':
self.state = PAUSED
elif which is 'resume':
self.state = PLAYING
elif which is 'end': elif which is 'end':
self.state = STOPPED self.state = STOPPED
self.view.show_next_spine_item() self.view.show_next_spine_item()