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

Method _extractStatePlaystateArguments

syncplay/protocols.py:255–260  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

253 self.sendMessage({"List": None})
254
255 def _extractStatePlaystateArguments(self, state):
256 position = state["playstate"]["position"] if "position" in state["playstate"] else 0
257 paused = state["playstate"]["paused"] if "paused" in state["playstate"] else None
258 doSeek = state["playstate"]["doSeek"] if "doSeek" in state["playstate"] else None
259 setBy = state["playstate"]["setBy"] if "setBy" in state["playstate"] else None
260 return position, paused, doSeek, setBy
261
262 def _handleStatePing(self, state):
263 if "latencyCalculation" in state["ping"]:

Callers 1

handleStateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected