Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.0.1
-
None
-
OS: Windows 7 64bits
Qt Version: qt-windows-opensource-5.0.1-mingw47_32-x86-offline
Description
It is impossible to run this simple code snippet in Windows.
//Start code-----------------------------------------
void MainWindow::playNow()
{
QMediaPlayer* player = new QMediaPlayer;
player->setMedia(QUrl::fromLocalFile("file.wav"));
player->setVolume(50);
player->play();
}
//End code -----------------------------------------
OS: Windows 7 64bits
Qt Version: qt-windows-opensource-5.0.1-mingw47_32-x86-offline
Runtime error/warning:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
Deployment file structure:
mediaservice/dsengine.dll
mediaservice/qtmedia_audioengine.dll
platforms/qminimal.dll
platforms/qwindows.dll
icudt49.dll
icuin49.dll
icuuc49.dll
libEGL.dll
libGLESv2.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Multimedia.dll
Qt5Network.dll
Qt5Widgets.dll
It works fine if I run it in Debug mode.
Am I missing something?