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

Method getGlobalPosition

syncplay/client.py:506–512  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

504 return self._playerPaused
505
506 def getGlobalPosition(self):
507 if not self._lastGlobalUpdate:
508 return 0.0
509 position = self._globalPosition
510 if not self._globalPaused:
511 position += time.time() - self._lastGlobalUpdate
512 return position
513
514 def getGlobalPaused(self):
515 if not self._lastGlobalUpdate:

Callers 15

updatePlayerStatusMethod · 0.95
getLocalStateMethod · 0.95
_serverPausedMethod · 0.95
setUserOffsetMethod · 0.95
getPlayerPositionMethod · 0.95
_onFileUpdateMethod · 0.80
askForStatusMethod · 0.80
getCalculatedPositionMethod · 0.80
lineReceivedMethod · 0.80
openFileMethod · 0.80
getCalculatedPositionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected