[Qt-mobility-feedback] QMediaPlayer -> defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer"
Hannu Shemeikka
hps at shemeikka.org
Mon Mar 1 15:26:04 CET 2010
Thank you!
Never thought that I would have to copy plugins from my mobility folder
to my Qt folder.
I copied /opt/mobility/plugins/multimedia & /mediaservice folders to my
Qt folder in /opt/qtsdk-2010.2/qt/plugins
After that, no warnings and video plays nicely. It's a weird thing that
it's not mentioned anywhere that you need to copy these to one's Qt
folder.
- Hannu
On Mon, 2010-03-01 at 15:52 +0200, Luoma Antti wrote:
> I have same env also in home and I had to copy / make links from plugin dlls to the /usr/local/Trolltech/Qt-4.6.0/plugins/mediaservice. Note that this was on Technology preview (not beta, running against 4.6.0). So it might be different in beta (in linux, didn't yet check that). If you wan't to check where QtMedia is searching those plugins at runtime set break points to QMediaPluginLoader::load() functions.
>
>
>
> -Antti-
>
> >-----Original Message-----
> >From: Hannu Shemeikka [mailto:hps at shemeikka.org]
> >Sent: Monday, March 01, 2010 3:26 PM
> >To: Luoma Antti
> >Cc: qt-mobility-feedback at trolltech.com
> >Subject: RE: [Qt-mobility-feedback] QMediaPlayer ->
> >defaultServiceProvider::requestService(): no service found for
> >- "com.nokia.qt.mediaplayer"
> >
> >Hi,
> >
> >I guess I forgot to mention my system. It's Ubuntu 9.10 64-bit and Qt
> >4.6.2.
> >
> >My mobility folder is /opt/mobility
> >My Qt folder is /opt/qtsdk-2010.02
> >My Qt Messaging Framework folder is /opt/qt-messagingframework
> >
> >Part of my .profile-file:
> >
> >export PATH=/opt/qtsdk-2010.02/qt/bin/:$PATH
> >export QMF_INCLUDEDIR=/opt/qt-messagingframework/src/libraries/
> >export QMF_LIBDIR=/opt/qt-messagingframework/image/lib
> >LD_LIBRARY_PATH=$/opt/mobility/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >In my /opt/mobility/ folder I have following files:
> >
> >/opt/mobility/include/qmediaservice.h
> >/opt/mobility/include/qmediaserviceprovider.h
> >/opt/mobility/include/qmediaserviceproviderplugin.h
> >/opt/mobility/plugins/mediaservice
> >/opt/mobility/plugins/mediaservice/libgstengine.so
> >/opt/mobility/plugins/mediaservice/libv4lengine.so
> >/opt/mobility/plugins/multimedia/symbian/s60mediaserviceplugin.cpp
> >/opt/mobility/plugins/multimedia/symbian/s60mediaserviceplugin.h
> >
> >
> >Shouldn't those be enough ?
> >
> >- Hannu
> >
> >On Mon, 2010-03-01 at 10:55 +0200, Luoma Antti wrote:
> >> Hi,
> >>
> >> For some reason "com.nokia.qt.mediaplayer"
> >mediaservice-plugin/dll is not found. Plugins are loaded
> >different places in different platforms. In linux for example
> >this needs to be set with library paths.
> >>
> >> What SDK/platform you are using ?
> >>
> >> -Antti-
> >>
> >> >-----Original Message-----
> >> >From: qt-mobility-feedback-bounces at trolltech.com
> >> >[mailto:qt-mobility-feedback-bounces at trolltech.com] On Behalf
> >> >Of Hannu Shemeikka
> >> >Sent: Thursday, February 25, 2010 10:31 PM
> >> >To: qt-mobility-feedback at trolltech.com
> >> >Subject: [Qt-mobility-feedback] QMediaPlayer ->
> >> >defaultServiceProvider::requestService(): no service found for
> >> >- "com.nokia.qt.mediaplayer"
> >> >
> >> >Hi,
> >> >
> >> >I'm having problems with QMediaPlayer. I'm using Qt 4.6.2
> >and newest Qt
> >> >Mobility API from Git.
> >> >
> >> >I have following lines in my .pro file:
> >> >CONFIG += mobility
> >> >MOBILITY = multimedia
> >> >
> >> >My code:
> >> >
> >> >void MainWindow::on_pbPlay_clicked()
> >> >{
> >> >QMediaPlayer *player = new QMediaPlayer(this);
> >> >QVideoWidget *videoWidget = new QVideoWidget;
> >> >videoWidget->setMediaObject(player);
> >> >videoWidget->show();
> >> >player->setMedia(QUrl::fromLocalFile("/home/test/yu.mp4"));
> >> >player->play();
> >> >}
> >> >
> >> >This brings out a black window but no video or sound is played.
> >> >Application Output shows line
> >> >"defaultServiceProvider::requestService():
> >> >no service found for - "com.nokia.qt.mediaplayer".
> >> >
> >> >The documentation for Qt Mobility Multimedia is rather bad
> >and outdated
> >> >in some areas. Could someone point me to right direction on
> >how to play
> >> >a video with Qt Mobility API Multimedia. Thanks!
> >> >
> >> >- Hannu
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >_______________________________________________
> >> >Qt-mobility-feedback mailing list
> >> >Qt-mobility-feedback at trolltech.com
> >> >http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback
> >> >
> >
> >
> >
> >
More information about the Qt-mobility-feedback
mailing list