Playing MP3 files with Python

后端 未结 3 898
野趣味
野趣味 2021-01-04 19:34

I\'m trying to write my own media player (like Foobar), and I\'m having trouble tracking down a Python library that\'ll play MP3s. I know Pymedia does mp3s, but it looks out

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 20:36

    Maybe it'd be simpler to write that part of your application in Python 2.4 as a separate "backend". This way you could use PyMedia (http://pymedia.org/) (as you mentioned) for the actual playback. It'd allow you to write your GUI in another Python version (like 2.6), which would also mean more decoupling of program components and parallelism (smoother GUI).

    If you target only the Windows platform, then using Media Player via COM might help:

    http://www.daniweb.com/code/snippet216465.html

提交回复
热议问题