~tomasgroth/openlp/pylint-fixes

« back to all changes in this revision

Viewing changes to openlp/core/ui/media/mediaplayer.py

  • Committer: Tim Bentley
  • Date: 2019-04-12 16:37:45 UTC
  • mfrom: (2833.3.103 media_state)
  • Revision ID: tim.bentley@gmail.com-20190412163745-vzcc9eh6cj974gf1
VLC plays and handles missing live display gracefully. Preview still works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        """
53
53
        return False
54
54
 
55
 
    def setup(self, display):
 
55
    def setup(self, display, live_display):
56
56
        """
57
57
        Create the related widgets for the current display
58
58
 
59
59
        :param display: The display to be updated.
 
60
        :param live_display: Is the display a live one.
60
61
        """
61
62
        pass
62
63
 
78
79
        """
79
80
        pass
80
81
 
81
 
    def play(self, display):
 
82
    def play(self, controller, display):
82
83
        """
83
84
        Starts playing of current Media File
84
85
 
 
86
        :param controller: Which Controller is running the show.
85
87
        :param display: The display to be updated.
86
88
        """
87
89
        pass
206
208
        :param display: Identify the Display type
207
209
        :return: None
208
210
        """
209
 
        if display.controller.is_live:
 
211
        if display.is_display:
210
212
            self.set_live_state(state)
211
213
        else:
212
214
            self.set_preview_state(state)