Play mp3 using Python, PyQt, and Phonon

前端 未结 3 1958
别那么骄傲
别那么骄傲 2021-02-04 17:11

I been trying all day to figure out the Qt\'s Phonon library with Python.

My long term goal is to see if I could get it to play a mms:// stream, but since I can\'t find

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 17:47

    In delayedInit method; create MediaObject like following:

    def delayedInit(self):
        if not self.m_media:
           self.m_media = Phonon.createPlayer(Phonon.MusicCategory)
    

提交回复
热议问题