Fixed mplayer/mpv pausing on the init
This commit is contained in:
parent
661d3926df
commit
0c7b26a2b6
@ -56,8 +56,6 @@ class MplayerPlayer(BasePlayer):
|
|||||||
self._client.updateFile(self._filename, self._duration, self._filepath)
|
self._client.updateFile(self._filename, self._duration, self._filepath)
|
||||||
|
|
||||||
def _preparePlayer(self):
|
def _preparePlayer(self):
|
||||||
self.setPaused(self._client.getGlobalPaused())
|
|
||||||
self.setPosition(self._client.getGlobalPosition())
|
|
||||||
self.reactor.callFromThread(self._client.initPlayer, (self),)
|
self.reactor.callFromThread(self._client.initPlayer, (self),)
|
||||||
self._onFileUpdate()
|
self._onFileUpdate()
|
||||||
|
|
||||||
@ -76,7 +74,7 @@ class MplayerPlayer(BasePlayer):
|
|||||||
def _getProperty(self, property_):
|
def _getProperty(self, property_):
|
||||||
self._listener.sendLine("get_property {}".format(property_))
|
self._listener.sendLine("get_property {}".format(property_))
|
||||||
|
|
||||||
def displayMessage(self, message, duration = (constants.OSD_DURATION*1000)):
|
def displayMessage(self, message, duration=(constants.OSD_DURATION * 1000)):
|
||||||
self._listener.sendLine(u'osd_show_text "{!s}" {} {}'.format(message, duration, constants.MPLAYER_OSD_LEVEL).encode('utf-8'))
|
self._listener.sendLine(u'osd_show_text "{!s}" {} {}'.format(message, duration, constants.MPLAYER_OSD_LEVEL).encode('utf-8'))
|
||||||
|
|
||||||
def setSpeed(self, value):
|
def setSpeed(self, value):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user