Skip to content

Commit

Permalink
Update ocp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonJarbas authored Jan 12, 2024
1 parent d77ad78 commit 4450aff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ovos_bus_client/apis/ocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def queue(self, tracks=None):
elif not isinstance(tracks, list):
raise ValueError
tracks = [ensure_uri(t) for t in tracks]
self.bus.emit(Message('.audio.service.queue',
self.bus.emit(Message('mycroft.audio.service.queue',
data={'tracks': tracks}))

def play(self, tracks=None, utterance=None, repeat=None):
Expand All @@ -103,26 +103,26 @@ def play(self, tracks=None, utterance=None, repeat=None):
elif not isinstance(tracks, list):
raise ValueError
tracks = [ensure_uri(t) for t in tracks]
self.bus.emit(Message('.audio.service.play',
self.bus.emit(Message('mycroft.audio.service.play',
data={'tracks': tracks,
'utterance': utterance,
'repeat': repeat}))

def stop(self):
"""Stop the track."""
self.bus.emit(Message('.audio.service.stop'))
self.bus.emit(Message('mycroft.audio.service.stop'))

def next(self):
"""Change to next track."""
self.bus.emit(Message('.audio.service.next'))
self.bus.emit(Message('mycroft.audio.service.next'))

def prev(self):
"""Change to previous track."""
self.bus.emit(Message('.audio.service.prev'))
self.bus.emit(Message('mycroft.audio.service.prev'))

def pause(self):
"""Pause playback."""
self.bus.emit(Message('.audio.service.pause'))
self.bus.emit(Message('mycroft.audio.service.pause'))

def resume(self):
"""Resume paused playback."""
Expand Down

0 comments on commit 4450aff

Please sign in to comment.