mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-16 11:55:11 +00:00
Reset client lastPlayerUpdate on seek and unpause
This commit is contained in:
parent
2b550be017
commit
2f7874856d
@ -451,6 +451,8 @@ class SyncplayClient(object):
|
||||
return self._serverPassword
|
||||
|
||||
def setPosition(self, position):
|
||||
if self._lastPlayerUpdate:
|
||||
self._lastPlayerUpdate = time.time()
|
||||
position += self.getUserOffset()
|
||||
if self._player and self.userlist.currentUser.file:
|
||||
if position < 0:
|
||||
@ -460,6 +462,8 @@ class SyncplayClient(object):
|
||||
|
||||
def setPaused(self, paused):
|
||||
if self._player and self.userlist.currentUser.file:
|
||||
if self._lastPlayerUpdate and not paused:
|
||||
self._lastPlayerUpdate = time.time()
|
||||
self._player.setPaused(paused)
|
||||
|
||||
def start(self, host, port):
|
||||
|
Loading…
Reference in New Issue
Block a user