我正在使用Python中的pyglet包編寫音樂播放器的代碼。我可以成功地演奏一首歌。但在撥打pyglet.app.run()之後,我無法暫停這首歌。 如果我在暫停後致電pyglet.app.run()我無法播放歌曲。我如何管理我的代碼中的播放和暫停? 我的代碼: import pyglet
import time
player = pyglet.media.Player()
play
由Pyglet使用AVBin來解碼MP3。鏈接:http://avbin.github.com/AVbin/Download.html 使用提供install.sh,當使用導致錯誤的安裝: 'AVbin is required to decode compressed media')
pyglet.media.riff.WAVEFormatException: AVbin is required