if self.player:
self.player.pause()
self.player.delete()
self.player.queue(pyglet.media.load(file_path, streaming=False))
self.player.play()
Timer(self.player.source.duration + 0.01, self.pause_audio).start()
If you try that, and it still doesn't solve the issue, let's mock up a simple test to try to simulate the bug.
--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users...@googlegroups.com.
To post to this group, send email to pyglet...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyglet-users/afb73f44-b768-43ab-9ac8-41a05a6f5690%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.