Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
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
Forum Updated to NodeBB v4.3 + New Features

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 788 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 18 Feb 2021, 07:10 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Feb 2021, 07:27 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 18 Feb 2021, 08:11 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
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 18 Feb 2021, 08:13 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 18 Feb 2021, 08:20
          1
          • C Christian Ehrlicher
            18 Feb 2021, 08:13

            @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 18 Feb 2021, 08:20 last edited by
            #5

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

            Is this ?
            output.PNG

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 18 Feb 2021, 08:22 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 18 Feb 2021, 08:36
              1
              • C Christian Ehrlicher
                18 Feb 2021, 08:22

                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 18 Feb 2021, 08:36 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 ?

                J 1 Reply Last reply 18 Feb 2021, 10:16
                0
                • M mehmety888
                  18 Feb 2021, 08:36

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

                  J Online
                  J Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on 18 Feb 2021, 10:16 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 18 Feb 2021, 11:10
                  1
                  • J jsulm
                    18 Feb 2021, 10:16

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

                    M Offline
                    M Offline
                    mehmety888
                    wrote on 18 Feb 2021, 11:10 last edited by
                    #9

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

                    test.PNG

                    J 1 Reply Last reply 18 Feb 2021, 11:40
                    0
                    • M mehmety888
                      18 Feb 2021, 11:10

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

                      test.PNG

                      J Online
                      J Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on 18 Feb 2021, 11:40 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

                      4/10

                      18 Feb 2021, 08:13

                      • Login

                      • Login or register to search.
                      4 out of 10
                      • First post
                        4/10
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved