aboutsummaryrefslogtreecommitdiffstats
path: root/player_mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'player_mock.py')
-rw-r--r--player_mock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/player_mock.py b/player_mock.py
index 2fcb725..5aad769 100644
--- a/player_mock.py
+++ b/player_mock.py
@@ -19,6 +19,9 @@ class Player():
def pause(self):
self.state = Player.PAUSED
+ def isPlaying(self):
+ return self.state == Player.PLAYING
+
def setPlaybackRate(self, rate):
self.rate = rate