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 can not play a web mp3 or mp4?
QtWS25 Last Chance

QMediaPlayer can not play a web mp3 or mp4?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 3.3k Views
  • 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.
  • F Offline
    F Offline
    foxgod
    wrote on 27 Mar 2014, 07:30 last edited by
    #1

    i don't know why QMediaPlayer can not play a web mp3 or mp4 in windows 7.but my os's windows media can play mp3 or mp4.
    the error is DirectShowPlayerService::doRender: Unresolved error code 80040218.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 27 Mar 2014, 08:24 last edited by
      #2

      Hi,

      DirectShow (DS) is an old multimedia backend that has now been replaced by Windows Media Foundation (WMF). Windows Media Player is playing your media files using WMF. DS cannot play them.

      Are you using the MinGW compiler? MinGW doesn't support WMF properly. Use the MSVC compiler, and QMediaPlayer should get WMF support. (You will need to download the MSVC version of Qt too)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • F Offline
        F Offline
        foxgod
        wrote on 28 Mar 2014, 05:08 last edited by
        #3

        so ,mingw vesion can't mp3 by QMediaPlayer.OH ,GOD,WHY

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JKSH
          Moderators
          wrote on 29 Mar 2014, 14:41 last edited by
          #4

          Because the MinGW toolchain doesn't provide the correct WMF headers, unfortunately :(

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lucamx
            wrote on 28 Aug 2014, 09:55 last edited by
            #5

            I'm having the same problem with MSVC and the wmf backend.

            I have an mp4 video that plays correctly on windows 7 media player, but when I try to play it with QMediaPlayer I get an "Unsupported media, a codec is missing" error.

            Is there a way to debug this kind of problems?

            1 Reply Last reply
            0
            • H Offline
              H Offline
              herculis
              wrote on 29 Aug 2014, 07:46 last edited by
              #6

              which version of Qt u are using coz same thing happended with me and i was using 5.1.1 version then i updated it to 5.3 and its started working so u can update and check again

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lucamx
                wrote on 29 Aug 2014, 08:09 last edited by
                #7

                I'm using 5.3 ....

                I think I've figured it out: I was testing on a virtual machine on Amazon and it seems that the video driver has some limitations (windows media player worked though).

                On a real PC it works now

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kirlrmyt17
                  Banned
                  wrote on 6 Sept 2019, 09:24 last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  -1

                  • Login

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