MCPcopy Index your code
hub / github.com/Syncplay/syncplay / _fastforwardPlayerDueToTimeDifference

Method _fastforwardPlayerDueToTimeDifference

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

Source from the content-addressed store, hash-verified

352 return madeChangeOnPlayer
353
354 def _fastforwardPlayerDueToTimeDifference(self, position, setBy):
355 madeChangeOnPlayer = False
356 if self.getUsername() == setBy:
357 self.ui.showDebugMessage("Caught attempt to fastforward due to time difference with self")
358 else:
359 hideFromOSD = not constants.SHOW_SAME_ROOM_OSD
360 self.setPosition(position + constants.FASTFORWARD_EXTRA_TIME)
361 self.ui.showMessage(getMessage("fastforward-notification").format(setBy), hideFromOSD)
362 madeChangeOnPlayer = True
363 return madeChangeOnPlayer
364
365 def _serverUnpaused(self, setBy):
366 hideFromOSD = not constants.SHOW_SAME_ROOM_OSD

Calls 5

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

Tested by

no test coverage detected