MCPcopy Create free account
hub / github.com/Syncplay/syncplay / recentlyRewound

Method recentlyRewound

syncplay/client.py:284–288  ·  view source on GitHub ↗
(self, recentRewindThreshold = 5.0)

Source from the content-addressed store, hash-verified

282 return True
283
284 def recentlyRewound(self, recentRewindThreshold = 5.0):
285 lastRewindTime = self.lastRewindTime
286 if lastRewindTime and self.lastUpdatedFileTime and self.lastUpdatedFileTime > lastRewindTime:
287 lastRewindTime = self.lastRewindTime - 4.5
288 return lastRewindTime is not None and abs(time.time() - lastRewindTime) < recentRewindThreshold
289
290 def _toggleReady(self, pauseChange, paused):
291 if not self.userlist.currentUser.canControl():

Callers 2

updatePlayerStatusMethod · 0.95
_toggleReadyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected