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

Method initPlayer

syncplay/client.py:165–170  ·  view source on GitHub ↗
(self, player)

Source from the content-addressed store, hash-verified

163 self._protocol = None
164
165 def initPlayer(self, player):
166 self._player = player
167 if not self._player.alertOSDSupported:
168 constants.OSD_WARNING_MESSAGE_DURATION = constants.NO_ALERT_OSD_WARNING_DURATION
169 self.scheduleAskPlayer()
170 self.__playerReady.callback(player)
171
172 def addPlayerReadyCallback(self, lambdaToCall):
173 self.__playerReady.addCallback(lambdaToCall)

Callers

nothing calls this directly

Calls 1

scheduleAskPlayerMethod · 0.95

Tested by

no test coverage detected