How to use the phonon-vlc-backend in PyQt4 on Windows
I'm helping develop a PyQt4.8 application which amongst other things plays video and audio. We are using Phonon for this, part of the reason being that we also embed videos in a QtWebkit
page which uses the same.
On Windows 7, the default phonon backend (phonon_ds94.dll
) seems to struggle with some media formats (refusal to play) so we're looking to try the phonon_vlc
backend instead.
This page appeared to be the most helpful, but I still haven't had success.
I've extracted phonon_vlc.dll and copied it into C:\Python26\Lib\site-packages\PyQt4\plugins\phonon_backend\
. I开发者_运维知识库've installed VLC 1.1.7. I've removed phonon_ds94
.
But when I run my app, I just get the error:
WARNING: bool __thiscall Phonon::FactoryPrivate::createBackend(void) phonon backend plugin could not be loaded
I've also tried adding C:\Program Files\VideoLAN\VLC
to the %PATH%
, but still no joy.
Can anyone offer any suggestions?
精彩评论