phonon4 and Backend VLC compatibility
Harald Sitter
sitter at kde.org
Tue Aug 16 13:37:17 UTC 2011
On Tue, Aug 16, 2011 at 2:58 PM, Pierre Pollastri <pollastri.p at gmail.com> wrote:
> Hi,
> I have developed a cross-platform Video Player. I have some trouble to make
> it work on Windows. Actually the direct show backend is a real cra... . I
> tried to use the vlc backend however phonon does not load the DLL. I precise
> that i'm not using any KDE framework except VLC backend. I use the phonon4
> library packaged in Qt 4.7.2.
You really should ship your own Phonon with your application. The
Phonon in Qt is terribly outdated and unreliable.
Jean-Baptiste Kempf recently created ready to go builds
http://people.videolan.org/~jb/phonon/ (built with mingw if I recall
correctly, so they should work without problems with the Qt SDK
libraries).
All you should need to do is drop the libphonon dll in the dir of your
executable and the phonon_vlc dll in a phonon_backend folder relative
to the executable.
So it should end up something like:
..\myapp.exe
..\libphonon.dll
..\libphononexperimental.dll
..\libvlccore.dll
..\libvlc.dll
..\phonon_backend\phonon_vlc.dll
..\plugins\..
Of course you can also drop the stuff elsewhere but then you need to
make sure that a) the windows linker thingy finds the dlls b) that the
QT_LIBRARY_PATH (as seen in QCoreApplication) contains the path where
phonon_backend is located. On that note, the backend always needs to
be in a phonon_backend folder, or else the backend factory won't be
able to find it.
HTH,
Harald
More information about the Phonon-backends
mailing list