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

Method loadNextFileInPlaylist

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

Source from the content-addressed store, hash-verified

2132
2133 @needsSharedPlaylistsEnabled
2134 def loadNextFileInPlaylist(self):
2135 if self._notPlayingCurrentIndex():
2136 return
2137
2138 if len(self._playlist) == 1 and self._client.loopSingleFiles():
2139 self._lastPlaylistIndexChange = time.time()
2140 self._client.rewindFile()
2141 self._client.setPaused(False)
2142 reactor.callLater(0.5, self._client.setPaused, False,)
2143
2144 elif self._thereIsNextPlaylistIndex():
2145 self._client.prepareToAdvancePlaylist()
2146 self.switchToNewPlaylistIndex(self._nextPlaylistIndex(), resetPosition=True)
2147
2148 def _updateUndoPlaylistBuffer(self, newPlaylist, newRoom):
2149 if self._playlistBufferIsFromOldRoom(newRoom):

Callers 2

advancePlaylistCheckMethod · 0.95
executeCommandMethod · 0.80

Calls 8

_nextPlaylistIndexMethod · 0.95
loopSingleFilesMethod · 0.80
rewindFileMethod · 0.80
setPausedMethod · 0.45

Tested by

no test coverage detected