Changeset - 3842254f101e
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 15 years ago 2010-06-20 21:09:28
drewp@bigasterisk.com
auto-rewind in ascoltami
Ignore-this: d192a9d5e73fd9608ceabcbdf717e1e2
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/player.py
Show inline comments
 
@@ -45,6 +45,12 @@ class Player(object):
 
            if self.lastWatchTime < self.autoStopTime < t:
 
                log.info("autostop")
 
                self.pause()
 
            if self.isPlaying() and t >= self.duration() - .2:
 
                # i don't expect to hit dur exactly with this
 
                # polling. What would be better would be to watch for
 
                # the EOS signal and react to that
 
                self.pause()
 
                self.seek(0)
 
            self.lastWatchTime = t
 
        except:
 
            traceback.print_exc()
0 comments (0 inline, 0 general)