Fixed audio player on walls
This commit is contained in:
parent
e73d92754e
commit
40052dbf3f
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user