QMediaPlayer found in 5.9.7 but not found in 5.12.2
-
I've created a video player using QMediaPlayer and QVideoWidget.
When I have following configuration, It works fine without warnings, and I can run the video.
Windows 10
Qt Version 5.9.7
Compiler: MSVC 2015 64 bit
Cmake 3.15.7However, using same code, changing nothing, if I use the following configurations:
Windows 10
Qt Version 5.9.7
Compiler: MSVC 2017 64 bit
Cmake 3.15.7Windows 10
Qt Version 5.12.2
Compiler: MSVC 2015 64 bit or MSVC 2017 64 bit
Cmake 3.15.7I get the following error, and video does not shown or run:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"How I can play the video in these configurations ?
-
Hi,
In all cases start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see what is happening with the multimedia plugins.
-
@SGaist said in QMediaPlayer found in 5.9.7 but not found in 5.12.2:
QT_DEBUG_PLUGINS
Now I get:
QFactoryLoader::QFactoryLoader() checking directory path "*******************/VideoWidget/build-AVL-DRIVE_Core-Desktop_Qt_5_9_7_MSVC2017_64bit-Release/bin/mediaservice" ...
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"Apparently, it does not copy dll's related to multimedia or multimediawidgets to build folder.
-
@mehmety888 said in QMediaPlayer found in 5.9.7 but not found in 5.12.2:
Apparently, it does not copy dll's related to multimedia or multimediawidgets to build folder.
There is no need to copy any dlls around. Please show the output instead just one line so we can see if/from where the plugins are loaded.
-
@Christian-Ehrlicher Which output ? Sorry I didn't understand
Is this ?
-
You did not properly set the env var QT_DEBUG_PLUGINS as @SGaist told you. See also https://doc.qt.io/qt-5/debug.html
-
@Christian-Ehrlicher Sorry, this is the first time I set QT_DEBUG_PLUGINS environment variable.
Isn't it set like this ?Shall I send you Application Output or Compile Output ?
-
@mehmety888 You need to set it in Run environment, not Build
-
@mehmety888 There should be more output