diff options
| author | 2011-04-07 15:19:18 +0200 | |
|---|---|---|
| committer | 2011-04-07 15:19:18 +0200 | |
| commit | 097abf81eb4cf10f26ad5c6aa485b06158eece2a (patch) | |
| tree | 8eab4eebf90bb89e390c6a0ff236a7a0a6713696 /airplay.py | |
| parent | a348356b9d7bc856465431965509cae99231809b (diff) | |
| download | totem-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.py | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -54,6 +54,9 @@ class AirPlayTotemPlayer(AirPlayService): | |||
| 54 | position = float(self.totem.get_property('current-time') / 1000) | 54 | position = float(self.totem.get_property('current-time') / 1000) |
| 55 | return duration, position | 55 | return duration, position |
| 56 | 56 | ||
| 57 | def is_playing(self): | ||
| 58 | return self.totem.is_playing() | ||
| 59 | |||
| 57 | # this must seek to a certain time | 60 | # this must seek to a certain time |
| 58 | def set_scrub(self, position): | 61 | def set_scrub(self, position): |
| 59 | if self.totem.is_seekable(): | 62 | if self.totem.is_seekable(): |
