Pausing on video change is faster now
This commit is contained in:
parent
1a7691cdfb
commit
d6adeba3d5
@ -1,3 +1,3 @@
|
||||
version = '1.1.7'
|
||||
version = '1.1.8'
|
||||
milestone = 'Tequila'
|
||||
projectURL = 'http://uriziel.github.com/syncplay/'
|
||||
@ -133,8 +133,10 @@ class MPCHCAPIPlayer(BasePlayer):
|
||||
self.__forcePause(self.__client.getGlobalPaused())
|
||||
self._mpcApi.seek(self.__client.getGlobalPosition())
|
||||
if(self._mpcApi.isPaused() <> self.__client.getGlobalPaused()):
|
||||
time.sleep(0.1)
|
||||
self._mpcApi.playPause()
|
||||
time.sleep(0.001)
|
||||
self._mpcApi.playPause()
|
||||
time.sleep(0.001)
|
||||
if(self._mpcApi.isPaused() <> self.__client.getGlobalPaused()):
|
||||
self.__setUpStateForNewlyOpenedFile()
|
||||
except MpcHcApi.PlayerNotReadyException:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user