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

Method autoplayConditionsMet

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

Source from the content-addressed store, hash-verified

1031 return False
1032
1033 def autoplayConditionsMet(self):
1034 if self.seamlessMusicOveride():
1035 self.setPaused(False)
1036 recentlyAdvanced = self._recentlyAdvanced()
1037 return (
1038 self._playerPaused and (self.autoPlay or recentlyAdvanced) and
1039 self.userlist.currentUser.canControl() and self.userlist.isReadinessSupported()
1040 and self.userlist.areAllUsersInRoomReady(requireSameFilenames=self._config["autoplayRequireSameFilenames"])
1041 and ((self.autoPlayThreshold and self.userlist.usersInRoomCount() >= self.autoPlayThreshold) or recentlyAdvanced)
1042 )
1043
1044 def autoplayTimerIsRunning(self):
1045 return self.autoplayTimer.running

Callers 7

autoplayCheckMethod · 0.95
autoplayCountdownMethod · 0.95
checkWarningsMethod · 0.80
showOSDMessageMethod · 0.80

Calls 7

seamlessMusicOverideMethod · 0.95
setPausedMethod · 0.95
_recentlyAdvancedMethod · 0.95
isReadinessSupportedMethod · 0.80
usersInRoomCountMethod · 0.80
canControlMethod · 0.45

Tested by

no test coverage detected