aboutsummaryrefslogtreecommitdiffstats
path: root/player_vlc.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-01 10:18:37 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-01 10:18:37 +0100
commit71f6a49110b6696ca6ac7956baa4edaa1aaa9527 (patch)
treee16178d2db8c6a8b7459801aab34d46255d4e8f6 /player_vlc.py
parent9090422b2ba5eab9e4131f9b9281ed83128d977c (diff)
Added partial Launchpad support, refactored existing files
Diffstat (limited to 'player_vlc.py')
-rw-r--r--player_vlc.py4
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)