Skip to content

Commit

Permalink
ensure ocp status messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed May 11, 2024
1 parent bb2d81e commit 92131d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ovos_plugin_vlc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def supported_uris(self) -> List[str]:
def play(self, repeat=False):
""" Play playlist using vlc. """
LOG.debug('VLCService Play')
self.ocp_start() # emit ocp state events
track = self.instance.media_new(self._now_playing)
self.player.set_media(track)
self.player.play()
Expand All @@ -87,19 +86,16 @@ def stop(self):
LOG.info('VLCService Stop')
if self.player.is_playing():
self.player.stop()
self.ocp_stop() # emit ocp state events
return True
return False

def pause(self):
""" Pause vlc playback. """
self.player.set_pause(1)
self.ocp_pause() # emit ocp state events

def resume(self):
""" Resume paused playback. """
self.player.set_pause(0)
self.ocp_resume() # emit ocp state events

def lower_volume(self):
self.player.audio_set_volume(self.low_volume)
Expand Down

0 comments on commit 92131d3

Please sign in to comment.