forked from openlp/openlp
Fix more bugs
This commit is contained in:
parent
4e39f71f4e
commit
0c2c869dbf
@ -655,6 +655,8 @@ class MediaController(RegistryMixin, OpenLPMixin, RegistryProperties):
|
|||||||
controller.seek_slider.blockSignals(False)
|
controller.seek_slider.blockSignals(False)
|
||||||
controller.volume_slider.blockSignals(False)
|
controller.volume_slider.blockSignals(False)
|
||||||
controller.media_info.playing = True
|
controller.media_info.playing = True
|
||||||
|
display = self._define_display(controller)
|
||||||
|
display.setVisible(True)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def tick(self, controller):
|
def tick(self, controller):
|
||||||
@ -696,6 +698,7 @@ class MediaController(RegistryMixin, OpenLPMixin, RegistryProperties):
|
|||||||
:param controller: The Controller to be paused
|
:param controller: The Controller to be paused
|
||||||
"""
|
"""
|
||||||
display = self._define_display(controller)
|
display = self._define_display(controller)
|
||||||
|
if controller.controller_type in self.current_media_players:
|
||||||
self.current_media_players[controller.controller_type].pause(display)
|
self.current_media_players[controller.controller_type].pause(display)
|
||||||
controller.mediabar.actions['playbackPlay'].setVisible(True)
|
controller.mediabar.actions['playbackPlay'].setVisible(True)
|
||||||
controller.mediabar.actions['playbackStop'].setDisabled(False)
|
controller.mediabar.actions['playbackStop'].setDisabled(False)
|
||||||
|
@ -185,9 +185,6 @@ class SystemPlayer(MediaPlayer):
|
|||||||
|
|
||||||
:param display: The display where the media is
|
:param display: The display where the media is
|
||||||
"""
|
"""
|
||||||
display.media_player.blockSignals(True)
|
|
||||||
display.media_player.durationChanged.disconnect()
|
|
||||||
display.media_player.blockSignals(False)
|
|
||||||
display.media_player.stop()
|
display.media_player.stop()
|
||||||
self.set_visible(display, False)
|
self.set_visible(display, False)
|
||||||
self.set_state(MediaState.Stopped, display)
|
self.set_state(MediaState.Stopped, display)
|
||||||
|
Loading…
Reference in New Issue
Block a user