def __init__(self, name, source, rp): PlayingMode.__init__(self, name) self.repeat_pattern = rp self.name = "ShowMode " + str(name) self.priority = 1 self.queue = Queue.Queue() self.content_provider = RandomFileProvider(False, source)
def __init__(self, data): source = data.get('source', '') PlayingMode.__init__(self, "NewsMode") self.repeat_pattern = HourlyRepeat() self.name = "NewsMode" self.content_provider = NewsFileProvider(source) self.priority = 1 self.time_counter = 0
def __init__(self, data): source = data.get('source', '') PlayingMode.__init__(self, "NewsMode") self.repeat_pattern = HourlyRepeat() self.name = "NewsMode" self.content_provider = NewsFileProvider(source) self.priority = 1 self.time_counter = 0
def __init__(self, data): PlayingMode.__init__(self, data.get('name')) self.repeat_pattern = DefaultRepeat() self.name = "DefaultMode " + data.get('name') self.content_provider = RandomFileProvider(False, data.get('musicSource')) self.speech_provider = RandomFileProvider(True, data.get('speechSource')) self.priority = 1 self.time_counter = 0 self._playing_time = 0 self.start_time = 0 self.is_playing = False
def __init__(self, data): PlayingMode.__init__(self, data.get('name')) self.repeat_pattern = DefaultRepeat() self.name = "DefaultMode " + data.get('name') self.content_provider = RandomFileProvider(False, data.get('musicSource')) self.speech_provider = RandomFileProvider(True, data.get('speechSource')) self.priority = 1 self.time_counter = 0 self._playing_time = 0 self.start_time = 0 self.is_playing = False