[PyQt] Playing an ogg file with QtMultimedia?

Florian Bruhin me at the-compiler.org
Fri Sep 4 08:07:27 BST 2015


* Brandon Keith Biggs <brandonkeithbiggs at gmail.com> [2015-09-04 08:56:33 +0200]:
> Hello,
> How does one go about playing a .ogg file? I have not managed to figure out
> how to play a sound using the QtMultimedia module yet.

I'd guess using QMediaPlayer: http://doc.qt.io/qt-5/qmediaplayer.html

> But nothing seems to work. There doesn't seem to be any clear documentation
> that I can find, so I am wondering if anyone can point me in the right
> direction? I have pored over the C++ API,
> <http://doc.qt.io/qt-5/qml-qtmultimedia-audio.html>but I can hardly make
> heads or tails of what it is trying to say.

That's the QML API, not the C++ API.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150904/8c48ca9a/attachment.sig>


More information about the PyQt mailing list