<div>Aloha,</div><div><br></div>On Tue, Nov 27, 2012 at 9:44 AM, Jan Kohlhaas <span dir="ltr"><<a href="mailto:kohlhaas@lyth.de" target="_blank">kohlhaas@lyth.de</a>></span> wrote:<div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want to integrate Audio and Video support in my Qt-application using the Phonon framework. I'm handling protected data (mp3, avi etc.). Therefore I'm writing those files encrypted to the filesystem.<br>
<br>
To avoid loading a whole video in the buffer I subclassed QIODevice and provided a custom IODevice which decrypts the encrypted content 'on-the-fly' when Phonon asks for more bytes. (function readData)<br>
I'm initializing the MediaSource using this custom IODevice.<br>
<br>
Encryption/Decryption works fine, no problems. Now I tried to play different video types (Audio: mp3 is working) with my Phonon-Player.<br>
AVI: working<br>
WMV: not working<br>
<br>
Now under "<a href="http://doc.qt.digia.com/main-snapshot/phonon-mediasource.html#MediaSource-6" target="_blank">doc.qt.digia.com/main-<u></u>snapshot/phonon-mediasource.<u></u>html#MediaSource-6</a>" I noticed the following sentence:<br>


<br>
"Warning: On Windows, we only support QIODevices containing the avi, mp3, or mpg formats. Use the constructor that takes a file name to open files (the Qt backend does not use a QFile internally)."<br>
<br>
Is there any way to avoid this restrictions and to extend this functionality? Unfortunalety I definitely have to use encrypted files. And perhaps can tell me somebody what's the reason behind this? Using usual (not encrypted) files without the custom IODevice there is no problem playing video files containing other formats like WMV or (with the right codecs) MP4.<br>

</blockquote><div><br></div><div>We do not maintain Qt's Phonon, if you want support for it Digia/Qt-Project is the better place to ask. What I recommend however is building the regular Phonon along with the Phonon VLC backend. Not only has it numerous bug fixes compared to the Qt copy but also vastly greater and more reliable codec support (through VLC).</div>

<div><br></div><div>HS </div></div></div>