15 from abc
import ABCMeta, abstractmethod
20 Base class for all audio backend implementations. 23 config: configuration dict for the instance 24 bus: Mycroft messagebus emitter 26 __metaclass__ = ABCMeta
35 Returns: list of supported uri types. 49 Add tracks to backend's playlist. 52 tracks: list of tracks. 57 def play(self, repeat=False):
62 repeat: Repeat playlist, defaults to False 71 Returns: (bool) True if playback was stopped, otherwise False 77 Register callback on track start, should be called as each track 78 in a playlist is started. 80 self._track_start_callback = callback_func
90 Resume paused playback. 96 Skip to next track in playlist. 102 Skip to previous track in playlist. 114 Restore normal volume. 124 seconds (int): number of seconds to seek, if negative rewind 134 seconds (int): number of seconds to seek, if negative rewind 140 Fetch info about current playing track. 143 Dict with track info. 151 """ Perform clean shutdown """ 156 """ Base class for remote audio backends. 158 These may be things like Chromecasts, mopidy servers, etc.
def seek_backward(self, seconds=1)
def set_track_start_callback(self, callback_func)
def seek_forward(self, seconds=1)
def add_list(self, tracks)
def __init__(self, config, bus)
def play(self, repeat=False)