pythonpyqtpyqt5qmediaplayer

I keep getting DirectShowPlayerService::doRender: Unknown error 0x80040266. in PyQt5


Is there a way to be able to play my mp3 (which contains Meta Data) file using QMediaPlayer? I tried using 2 files (one with id3 tags and one without) the one without tags worked while the one with id3 tags didn't and gave me DirectShowPlayerService::doRender: Unknown error 0x80040266. So, is there a way to load files with id3 tags?

This is my code until now

content = QMediaContent(QUrl.fromLocalFile(mp3_file))
self.media = QMediaPlayer()
self.media.setMedia(content)
self.media.play()

Solution

  • Install K-Lite Codec Pack. It allows the player to be able to play files containing tags