Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer found in 5.9.7 but not found in 5.12.2
Qt 6.12 LTS is out! See what's new in the release blog

QMediaPlayer found in 5.9.7 but not found in 5.12.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehmety888
    wrote on last edited by
    #1

    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.7

    However, 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.7

    Windows 10
    Qt Version 5.12.2
    Compiler: MSVC 2015 64 bit or MSVC 2017 64 bit
    Cmake 3.15.7

    I 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 ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mehmety888
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          M 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            @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.

            M Offline
            M Offline
            mehmety888
            wrote on last edited by
            #5

            @Christian-Ehrlicher Which output ? Sorry I didn't understand

            Is this ?
            output.PNG

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              M 1 Reply Last reply
              1
              • Christian EhrlicherC Christian Ehrlicher

                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

                M Offline
                M Offline
                mehmety888
                wrote on last edited by
                #7

                @Christian-Ehrlicher Sorry, this is the first time I set QT_DEBUG_PLUGINS environment variable.
                Isn't it set like this ?

                env.PNG

                Shall I send you Application Output or Compile Output ?

                jsulmJ 1 Reply Last reply
                0
                • M mehmety888

                  @Christian-Ehrlicher Sorry, this is the first time I set QT_DEBUG_PLUGINS environment variable.
                  Isn't it set like this ?

                  env.PNG

                  Shall I send you Application Output or Compile Output ?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @mehmety888 You need to set it in Run environment, not Build

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @mehmety888 You need to set it in Run environment, not Build

                    M Offline
                    M Offline
                    mehmety888
                    wrote on last edited by
                    #9

                    @jsulm I set in Run environment, get the same output.
                    run_env.PNG

                    test.PNG

                    jsulmJ 1 Reply Last reply
                    0
                    • M mehmety888

                      @jsulm I set in Run environment, get the same output.
                      run_env.PNG

                      test.PNG

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @mehmety888 There should be more output

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt
                      • Unsolved