<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<blockquote cite="mid:55E95474.30805@gmail.com" type="cite"> I get:<br>
"Unsupported media type."<br>
as the error.<br>
<br>
I found:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://stackoverflow.com/questions/15043620/cant-play-ogg-and-flac">http://stackoverflow.com/questions/15043620/cant-play-ogg-and-flac</a><br>
<br>
and installed the codecs from:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.xiph.org/dshow/">http://www.xiph.org/dshow/</a><br>
<br>
I just ran the binary installer installing them into:<br>
C:\Program Files (x86)\Xiph.Org\Open Codecs\x64<br>
<br>
But I am still getting the unsupported media type.<br>
Thank you,<br>
<br>
<div class="moz-signature"> <a moz-do-not-send="true"
href="http://www.brandonkeithbiggs.com/">Brandon Keith Biggs</a></div>
<div class="moz-cite-prefix">On 9/4/2015 9:56 AM, Florian Bruhin
wrote:<br>
</div>
<blockquote cite="mid:20150904075605.GE18577@tonks" type="cite">
<pre wrap="">Hi,
(also Cc-ing the list again as I don't think it was intended to send
this off-list)
* Brandon Keith Biggs <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:brandonkeithbiggs@gmail.com"><brandonkeithbiggs@gmail.com></a> [2015-09-04 09:31:41 +0200]:
</pre>
<blockquote type="cite">
<pre wrap="">Here is what I have, but it is silent and there is no error:
self.player = QtMultimedia.QMediaPlayer(self)
self.s = QtMultimedia.QMediaContent(QUrl("sounds/my_sound.ogg"))
</pre>
</blockquote>
<pre wrap="">This should probably be QUrl.fromLocalFile(...) instead.
</pre>
<blockquote type="cite">
<pre wrap=""> self.player.setMedia(self.s)
self.player.play()
Could there be some kind of dll that I need to put in my PyQt5 dir?
</pre>
</blockquote>
<pre wrap="">If a DLL was missing, Qt would probably terminate/abort.
Some things to check:
- .error()/.errorString()
- .volume() (in the example they do .setVolume(50))
Florian
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>