From 40052dbf3fa9498db2e98f0e902d866f94135d18 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 15 May 2019 17:19:02 -0500 Subject: [PATCH] Fixed audio player on walls --- src/presenters/displayPosts/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/presenters/displayPosts/audio.py b/src/presenters/displayPosts/audio.py index 9fda65e..3d2caac 100644 --- a/src/presenters/displayPosts/audio.py +++ b/src/presenters/displayPosts/audio.py @@ -82,8 +82,8 @@ class displayAudioPresenter(base.basePresenter): def play(self, audio_index): post = self.post[audio_index] - if player.player.stream != None: - return player.player.pause() + if player.player.check_is_playing() == True: + return pub.sendMessage("stop") pub.sendMessage("play", object=post) def load_audios(self):