# HG changeset patch # User drewp@bigasterisk.com # Date 1277068168 0 # Node ID 3842254f101e4e4f946785ce855c21e95e62303b # Parent a3b0acd0f83fb03a7dd97ae47e6718bbe01d8c83 auto-rewind in ascoltami Ignore-this: d192a9d5e73fd9608ceabcbdf717e1e2 diff -r a3b0acd0f83f -r 3842254f101e light9/ascoltami/player.py --- a/light9/ascoltami/player.py Sun Jun 20 21:09:22 2010 +0000 +++ b/light9/ascoltami/player.py Sun Jun 20 21:09:28 2010 +0000 @@ -45,6 +45,12 @@ 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()