From 71f6a49110b6696ca6ac7956baa4edaa1aaa9527 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 1 Jan 2022 10:18:37 +0100 Subject: Added partial Launchpad support, refactored existing files --- player_vlc.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player_vlc.py') 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) -- cgit v1.2.3