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

Method _updatePositionByAge

syncplay/server.py:871–874  ·  view source on GitHub ↗
(self, messageAge, paused, position)

Source from the content-addressed store, hash-verified

869 return self._room.isPaused() and not paused or not self._room.isPaused() and paused
870
871 def _updatePositionByAge(self, messageAge, paused, position):
872 if not paused:
873 position += messageAge
874 return position
875
876 def updateState(self, position, paused, doSeek, messageAge):
877 pauseChanged = self.__hasPauseChanged(paused)

Callers 1

updateStateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected