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

Method _rewindPlayerDueToTimeDifference

syncplay/client.py:343–352  ·  view source on GitHub ↗
(self, position, setBy)

Source from the content-addressed store, hash-verified

341 return madeChangeOnPlayer
342
343 def _rewindPlayerDueToTimeDifference(self, position, setBy):
344 madeChangeOnPlayer = False
345 if self.getUsername() == setBy:
346 self.ui.showDebugMessage("Caught attempt to rewind due to time difference with self")
347 else:
348 hideFromOSD = not constants.SHOW_SAME_ROOM_OSD
349 self.setPosition(position)
350 self.ui.showMessage(getMessage("rewind-notification").format(setBy), hideFromOSD)
351 madeChangeOnPlayer = True
352 return madeChangeOnPlayer
353
354 def _fastforwardPlayerDueToTimeDifference(self, position, setBy):
355 madeChangeOnPlayer = False

Calls 5

getUsernameMethod · 0.95
setPositionMethod · 0.95
getMessageFunction · 0.90
showDebugMessageMethod · 0.45
showMessageMethod · 0.45

Tested by

no test coverage detected