QMediaPlayer found in 5.9.7 but not found in 5.12.2
-
wrote on 18 Feb 2021, 07:10 last edited by
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.
-
wrote on 18 Feb 2021, 08:11 last edited by
@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.
-
@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.
wrote on 18 Feb 2021, 08:20 last edited by@Christian-Ehrlicher Which output ? Sorry I didn't understand
-
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
-
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
wrote on 18 Feb 2021, 08:36 last edited by@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 ?
-
@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 You need to set it in Run environment, not Build
wrote on 18 Feb 2021, 11:10 last edited by@jsulm I set in Run environment, get the same output.
-
@jsulm I set in Run environment, get the same output.
@mehmety888 There should be more output
4/10