diff options
Diffstat (limited to 'player_vlc.py')
-rw-r--r-- | player_vlc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/player_vlc.py b/player_vlc.py index 1418dd0..c0eadf9 100644 --- a/player_vlc.py +++ b/player_vlc.py @@ -13,6 +13,10 @@ class Player: def pause(self): self._player.pause() + def isPlaying(self): + playing = self._player.is_playing() == 1 + return playing + def setPlaybackRate(self, rate): self._player.set_rate(rate) |