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

Method getLocalState

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

Source from the content-addressed store, hash-verified

322 return pauseChange
323
324 def getLocalState(self):
325 paused = self.getPlayerPaused()
326 if self._config['dontSlowDownWithMe']:
327 position = self.getGlobalPosition()
328 else:
329 position = self.getPlayerPosition()
330 pauseChange, _ = self._determinePlayerStateChange(paused, position)
331 if self._lastGlobalUpdate:
332 return position, paused, _, pauseChange
333 else:
334 return None, None, None, None
335
336 def _initPlayerState(self, position, paused):
337 if self.userlist.currentUser.file:

Callers 1

handleStateMethod · 0.80

Calls 4

getPlayerPausedMethod · 0.95
getGlobalPositionMethod · 0.95
getPlayerPositionMethod · 0.95

Tested by

no test coverage detected