forked from openlp/openlp
Headr651
This commit is contained in:
commit
89e0aee373
@ -102,6 +102,7 @@ class MainDisplay(DisplayLabel):
|
|||||||
self.display = QtGui.QLabel(self)
|
self.display = QtGui.QLabel(self)
|
||||||
self.display.setScaledContents(True)
|
self.display.setScaledContents(True)
|
||||||
self.layout.insertWidget(0, self.display)
|
self.layout.insertWidget(0, self.display)
|
||||||
|
self.primary = False
|
||||||
self.displayBlank = False
|
self.displayBlank = False
|
||||||
self.blankFrame = None
|
self.blankFrame = None
|
||||||
self.frame = None
|
self.frame = None
|
||||||
@ -272,19 +273,22 @@ class MainDisplay(DisplayLabel):
|
|||||||
self.mediaLoaded = True
|
self.mediaLoaded = True
|
||||||
self.display.hide()
|
self.display.hide()
|
||||||
self.mediaObject.play()
|
self.mediaObject.play()
|
||||||
self.setVisible(True)
|
if self.primary:
|
||||||
|
self.setVisible(True)
|
||||||
|
|
||||||
def onMediaPaws(self):
|
def onMediaPaws(self):
|
||||||
log.debug(u'Pause the new media')
|
log.debug(u'Media paused by user')
|
||||||
self.mediaObject.pause()
|
self.mediaObject.pause()
|
||||||
|
|
||||||
def onMediaStop(self):
|
def onMediaStop(self):
|
||||||
|
log.debug(u'Media stopped by user')
|
||||||
self.mediaObject.stop()
|
self.mediaObject.stop()
|
||||||
self.display.show()
|
self.display.show()
|
||||||
|
|
||||||
def onMediaFinish(self):
|
def onMediaFinish(self):
|
||||||
log.debug(u'Finish playing media')
|
log.debug(u'Reached end of media playlist')
|
||||||
self.setVisible(False)
|
if self.primary:
|
||||||
|
self.setVisible(False)
|
||||||
self.mediaObject.stop()
|
self.mediaObject.stop()
|
||||||
self.mediaObject.clearQueue()
|
self.mediaObject.clearQueue()
|
||||||
self.mediaLoaded = False
|
self.mediaLoaded = False
|
||||||
|
@ -1 +1 @@
|
|||||||
1.9.0-650
|
1.9.0-651
|
||||||
|
Loading…
Reference in New Issue
Block a user