Fixed audio player on walls

This commit is contained in:
Manuel Cortez 2019-05-15 17:19:02 -05:00
parent e73d92754e
commit 40052dbf3f

View File

@ -82,8 +82,8 @@ class displayAudioPresenter(base.basePresenter):
def play(self, audio_index): def play(self, audio_index):
post = self.post[audio_index] post = self.post[audio_index]
if player.player.stream != None: if player.player.check_is_playing() == True:
return player.player.pause() return pub.sendMessage("stop")
pub.sendMessage("play", object=post) pub.sendMessage("play", object=post)
def load_audios(self): def load_audios(self):