summaryrefslogtreecommitdiffstats
path: root/airplay.py
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-07 15:19:18 +0200
committerGravatar Martin Szulecki2011-04-07 15:19:18 +0200
commit097abf81eb4cf10f26ad5c6aa485b06158eece2a (patch)
tree8eab4eebf90bb89e390c6a0ff236a7a0a6713696 /airplay.py
parenta348356b9d7bc856465431965509cae99231809b (diff)
downloadtotem-plugin-airplay-097abf81eb4cf10f26ad5c6aa485b06158eece2a.tar.gz
totem-plugin-airplay-097abf81eb4cf10f26ad5c6aa485b06158eece2a.tar.bz2
Implement playback-info request to fix playback on iOS 4.3+
Diffstat (limited to 'airplay.py')
-rw-r--r--airplay.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/airplay.py b/airplay.py
index 3e6266b..e2906c0 100644
--- a/airplay.py
+++ b/airplay.py
@@ -54,6 +54,9 @@ class AirPlayTotemPlayer(AirPlayService):
position = float(self.totem.get_property('current-time') / 1000)
return duration, position
+ def is_playing(self):
+ return self.totem.is_playing()
+
# this must seek to a certain time
def set_scrub(self, position):
if self.totem.is_seekable():