mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-11 06:07:53 +00:00
An OSD fix for VLC and removed unused line
This commit is contained in:
parent
e567ecb9e5
commit
2f307e7cfa
@ -76,11 +76,11 @@ class VlcPlayer(BasePlayer):
|
||||
self._pausedAsk.wait()
|
||||
self._client.updatePlayerStatus(self._paused, self._position)
|
||||
|
||||
def displayMessage(self, message, duration = constants.OSD_DURATION):
|
||||
def displayMessage(self, message, duration = constants.OSD_DURATION * 1000):
|
||||
duration /= 1000
|
||||
self._listener.sendLine('display-osd: {}, {}, {}'.format('top-right', duration, message))
|
||||
|
||||
def setSpeed(self, value):
|
||||
self._setProperty('speed', "{:.2f}".format(value))
|
||||
self._listener.sendLine("set-rate: {:.2f}".format(value))
|
||||
|
||||
def setPosition(self, value):
|
||||
|
Loading…
Reference in New Issue
Block a user