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

Method displayMessage

syncplay/players/vlc.py:214–222  ·  view source on GitHub ↗
(
        self, message,
        duration=constants.OSD_DURATION * 1000, OSDType=constants.OSD_DURATION, mood=constants.MESSAGE_NEUTRAL
    )

Source from the content-addressed store, hash-verified

212 return self._position
213
214 def displayMessage(
215 self, message,
216 duration=constants.OSD_DURATION * 1000, OSDType=constants.OSD_DURATION, mood=constants.MESSAGE_NEUTRAL
217 ):
218 duration /= 1000
219 if OSDType != constants.OSD_ALERT:
220 self._listener.sendLine('display-osd: {}, {}, {}'.format('top-right', duration, message))
221 else:
222 self._listener.sendLine('display-secondary-osd: {}, {}, {}'.format('center', duration, message))
223
224 def setSpeed(self, value):
225 self._listener.sendLine("set-rate: {:.2n}".format(value))

Callers 1

showOSDMessageMethod · 0.45

Calls 1

sendLineMethod · 0.45

Tested by

no test coverage detected