[Qt-mobility-feedback] com.nokia.qt.mediaplayer

Zhao, Halley halley.zhao at intel.com
Wed Jul 14 02:47:55 CEST 2010


Have you tried the example player in qt-mobiity?:
$qt-mobility-1.0.0/examples/player

________________________________
From: qt-mobility-feedback-bounces at trolltech.com [mailto:qt-mobility-feedback-bounces at trolltech.com] On Behalf Of Juan Jose Gil Mendez
Sent: 2010年7月13日 22:17
To: qt-mobility-feedback at trolltech.com
Subject: [Qt-mobility-feedback] com.nokia.qt.mediaplayer

Hi
Please help me!

I am writing an application for nokia phonesm using qt sdk, that involves playing video online...

 This is the code that deals with creating the widgets and playing the video...

   QMediaPlayer *player = new QMediaPlayer;

   QVideoWidget *videoWidget;

   videoWidget = new QVideoWidget(ui->centralWidget);

   videoWidget->setGeometry(QRect(20, 20, 100, 100));

   QMediaContent media = QUrl::fromLocalFile("c:/Old/battle.avi");

   player->setMedia(media);

   player->play();

After this, I get no video being played, and the following error:

defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer"


My system is Windows XP, and my .PRO file includes the following:


CONFIG += mobility
MOBILITY = multimedia


does anybody has any ideas?


Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-mobility-feedback/attachments/20100714/81312890/attachment.html 


More information about the Qt-mobility-feedback mailing list