From b1c2cee0032943b8a7d216675af2ece92deffffb Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Mon, 3 Dec 2012 19:18:28 +0000 Subject: [PATCH] Fix swf files --- openlp/core/ui/media/mediacontroller.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/media/mediacontroller.py b/openlp/core/ui/media/mediacontroller.py index 706a30d4c..13dd8c4bd 100644 --- a/openlp/core/ui/media/mediacontroller.py +++ b/openlp/core/ui/media/mediacontroller.py @@ -543,9 +543,14 @@ class MediaController(object): display.frame.evaluateJavaScript(u'show_blank("desktop");') self.currentMediaPlayer[controller.controllerType]\ .set_visible(display, True) - controller.mediabar.actions[u'playbackPlay'].setVisible(False) + # Flash needs to be played and will not AutoPlay + if controller.media_info.is_flash: + controller.mediabar.actions[u'playbackPlay'].setVisible(True) + controller.mediabar.actions[u'playbackPause'].setVisible(False) + else: + controller.mediabar.actions[u'playbackPlay'].setVisible(False) + controller.mediabar.actions[u'playbackPause'].setVisible(True) controller.mediabar.actions[u'playbackStop'].setVisible(True) - controller.mediabar.actions[u'playbackPause'].setVisible(True) if controller.isLive: if controller.hideMenu.defaultAction().isChecked(): controller.hideMenu.defaultAction().trigger()