Fix: Suppress spurious end-file event when starting playback and tts.speak (#179)
* bugfix: supress first end of file event and only callback on second one * add some notes on testing * fixed tts.speak * fix unduck after timer end * use custom docker-entrypoint on dev container * change mv to copy in the docs when using .env file
This commit is contained in:
1 parent
85312d3f55
commit
80e0d6254e
7 files changed
+96
-11
No files matched your search
@@ -105,6 +105,12 @@ class MpvMediaPlayer:
|
||||
finally:
|
||||
self._done_callback = None
|
||||
|
||||
@property
|
||||
def is_playing(self) -> bool:
|
||||
"""Check if the player is currently playing or paused."""
|
||||
state = self._player.state()
|
||||
return state in (PlayerState.PLAYING, PlayerState.PAUSED, PlayerState.LOADING)
|
||||
|
||||
def set_volume(self, volume: float) -> None:
|
||||
"""
|
||||
Set playback volume.
|
||||
|
||||
Reference in new issue
Block a user