[Qt-mobility-feedback] The QMediaPlayer object does not have a valid service
Lorenzo Bettini
lorenzo.bettini at gmail.com
Thu Jul 8 16:19:36 CEST 2010
On 7/8/2010 4:02 PM, Lorenzo Bettini wrote:
> andrew.den-exter at nokia.com wrote:
>>> Hi
>>>
>>> I managed to have qt-mobility (and multimedia services) running on
>>> linux, but now I'm tryin in Windows and I still get this error when
>>> running the player example:
>>>
>>> "The QMediaPlayer object does not have a valid service"
>>>
>>> I installed also strawberry perl, and
>>> my configure command is
>>>
>>> configure -examples
>>>
>>> after make and make install (which installs everything in
>>> c:\QtMobility)
>>> I tried to run the player example and when I try to play an mp3 file I
>>> read on the title bar
>>>
>>> "The QMediaPlayer object does not have a valid service"
>>>
>>> If I run a small console application using the mediaplayer I get
>>>
>>> defaultServiceProvider::requestService(): no service found for -
>>> "com.nokia.qt.mediaplayer"
>>>
>>> These are also the things I tried to make it work
>>>
>>> set PATH=C:\QtMobility\lib;%PATH%
>>> copy qtmedia_audioengined.dll into QTDIR/plugins/mediaservice
>>>
>>> but still doesn't work...
>>>
>>> any help please?
>>
>> This is with mingw I take it?
>>
>> The Direct Show service provider for media playback is disabled for
>> all but a few specific msvc platforms because it requires some
>> headers and libraries that are not universally available.
>>
>> I've changed the build system to test for the required headers and
>> libraries in configure.bat so in future it should be enabled if your
>> version of mingw supports it (the version shipped with QtCreator
>> does), and if not configure will warn you.
>>
>> In the meantime you can disable the platform check in
>> src/multimedia/multimedia.pro by replacing the line:
>> win32-msvc2005|win32-msvc2008: SUBDIRS *= directshow wmp
>>
>> with:
>> SUBDIRS *= directshow
>>
>> Andrew
> Hi
>
> I'll try. But you mean
>
> plugins/multimedia/multimedia.pro
>
> not
>
> src/multimedia/multimedia.pro
>
and by the way, with this modification it now works :)
thanks a lot!
I was actually using mingw in windows, sorry for not mentioning it.
And the modification to configure.bat you were talking about, is it in
the git repository in a stable branch?
cheers
Lorenzo
More information about the Qt-mobility-feedback
mailing list