forked from openlp/openlp
Fix displayed preview
This commit is contained in:
parent
506fd80f89
commit
acadf89a34
@ -180,7 +180,6 @@ class MediaController(object):
|
|||||||
Check if there is a running media Player and do updating stuff (e.g.
|
Check if there is a running media Player and do updating stuff (e.g.
|
||||||
update the UI)
|
update the UI)
|
||||||
"""
|
"""
|
||||||
print "state"
|
|
||||||
if not self.currentMediaPlayer.keys():
|
if not self.currentMediaPlayer.keys():
|
||||||
self.timer.stop()
|
self.timer.stop()
|
||||||
else:
|
else:
|
||||||
@ -595,7 +594,6 @@ class MediaController(object):
|
|||||||
The controller that needs to be stopped
|
The controller that needs to be stopped
|
||||||
"""
|
"""
|
||||||
log.debug(u'media_stop')
|
log.debug(u'media_stop')
|
||||||
print "play"
|
|
||||||
display = self._define_display(controller)
|
display = self._define_display(controller)
|
||||||
if display in self.currentMediaPlayer:
|
if display in self.currentMediaPlayer:
|
||||||
display.frame.evaluateJavaScript(u'show_blank("black");')
|
display.frame.evaluateJavaScript(u'show_blank("black");')
|
||||||
|
@ -71,6 +71,7 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
False)
|
False)
|
||||||
self.displayController.previewDisplay = Display(self.displayController,
|
self.displayController.previewDisplay = Display(self.displayController,
|
||||||
False, self.displayController)
|
False, self.displayController)
|
||||||
|
self.displayController.previewDisplay.hide()
|
||||||
self.displayController.previewDisplay.setGeometry(
|
self.displayController.previewDisplay.setGeometry(
|
||||||
QtCore.QRect(0, 0, 300, 300))
|
QtCore.QRect(0, 0, 300, 300))
|
||||||
self.displayController.previewDisplay.screen = \
|
self.displayController.previewDisplay.screen = \
|
||||||
|
Loading…
Reference in New Issue
Block a user