[PySide] QMediaPlayer cannot play mp3 audio files

Zhao Lee redstone-cold at 163.com
Mon Nov 7 14:47:47 CET 2022


I tester with win11 64bit Python: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
I changed the example to https://bpa.st/BKWA to have a test, now one just need to click the 'Open' button to test.
With line 144 uncommented, after clicking the 'Open' button, works!
With line 143 uncommented, after clicking the 'Open' button, the status bar show "Unsupported media type", but with PyQt5 version, it can really play it, but not PyQt6 either. 



At 2022-11-07 18:47:46, "Friedemann Kleint via PySide" <pyside at qt-project.org> wrote:
>Hi,
>
>please also check the Qt for Python player example 
>https://doc.qt.io/qtforpython-6/examples/example_multimedia__player.html .
>
>It is able to play MP3 fine here on Windows 10 using the shipped 
>windowsmediaplugin.dll plugin.
>
>Regards, Friedemann
>
>-- 
>
>Friedemann Kleint
>The Qt Company GmbH
>
>_______________________________________________
>PySide mailing list
>PySide at qt-project.org
>https://lists.qt-project.org/listinfo/pyside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20221107/c1f5df72/attachment.htm>


More information about the PySide mailing list