forked from openlp/openlp
fixed regression bugs
This commit is contained in:
parent
0ce64bf9e3
commit
2d26110f22
@ -440,7 +440,7 @@ class MediaController(object):
|
|||||||
controller.media_info = MediaInfo()
|
controller.media_info = MediaInfo()
|
||||||
controller.media_info.volume = 0
|
controller.media_info.volume = 0
|
||||||
controller.media_info.file_info = QtCore.QFileInfo(service_item.get_frame_path())
|
controller.media_info.file_info = QtCore.QFileInfo(service_item.get_frame_path())
|
||||||
display = controller._display
|
display = controller.preview_display
|
||||||
if not self._check_file_type(controller, display, service_item):
|
if not self._check_file_type(controller, display, service_item):
|
||||||
# Media could not be loaded correctly
|
# Media could not be loaded correctly
|
||||||
critical_error_message_box(translate('MediaPlugin.MediaItem', 'Unsupported File'),
|
critical_error_message_box(translate('MediaPlugin.MediaItem', 'Unsupported File'),
|
||||||
|
@ -450,7 +450,7 @@ class WebkitPlayer(MediaPlayer):
|
|||||||
currentTime = display.frame.evaluateJavaScript(u'show_flash("currentTime");')
|
currentTime = display.frame.evaluateJavaScript(u'show_flash("currentTime");')
|
||||||
length = display.frame.evaluateJavaScript(u'show_flash("length");')
|
length = display.frame.evaluateJavaScript(u'show_flash("length");')
|
||||||
else:
|
else:
|
||||||
if display.frame.evaluateJavaScript(u'show_video("isEnded");') == 'true':
|
if display.frame.evaluateJavaScript(u'show_video("isEnded");'):
|
||||||
self.stop(display)
|
self.stop(display)
|
||||||
currentTime = display.frame.evaluateJavaScript(u'show_video("currentTime");')
|
currentTime = display.frame.evaluateJavaScript(u'show_video("currentTime");')
|
||||||
# check if conversion was ok and value is not 'NaN'
|
# check if conversion was ok and value is not 'NaN'
|
||||||
|
Loading…
Reference in New Issue
Block a user