Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error when using QMediaPlayer on IOS
QtWS25 Last Chance

Error when using QMediaPlayer on IOS

Scheduled Pinned Locked Moved Mobile and Embedded
ioserrormediaplayerqmediaplayer
6 Posts 2 Posters 2.2k 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.
  • W Offline
    W Offline
    Wonderlust
    wrote on 10 May 2015, 22:43 last edited by
    #1

    So here is my problem.
    When i use the mediaPlayer from QtMultimedia in my qml file i get the error: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplyer"

    The app works fine when i use it on Windows or android, only get this error on iOS.

    Anyone know anything about this?

    Best regards,
    John

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 May 2015, 22:54 last edited by
      #2

      Hi and welcome to devnet,

      Qt on iOS is a static build so there's some additional steps you need to do some as described here and there

      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
      0
      • W Offline
        W Offline
        Wonderlust
        wrote on 10 May 2015, 23:06 last edited by
        #3

        Ok great! Thanks for the links, I added QT+= multimedia to my .pro file but now i get the error "Failed to load media" instead. So I'm guessing i need to statically link the mp3 file I'm trying to play as well? How do i do that?

        Thanks for the help!

        //John

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 10 May 2015, 23:20 last edited by
          #4

          Depending on the file size, you can use the Qt Resource System, or bundle the files

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

          W 1 Reply Last reply 11 May 2015, 00:04
          0
          • S SGaist
            10 May 2015, 23:20

            Depending on the file size, you can use the Qt Resource System, or bundle the files

            W Offline
            W Offline
            Wonderlust
            wrote on 11 May 2015, 00:04 last edited by Wonderlust 5 Nov 2015, 00:04
            #5

            Hmm, I'm still not getting it to work...
            I have the file in my qml.qrc but it's not working, could you maybe give me an example of what my .pro file should look like to get the .mp3 file into the app?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 May 2015, 06:46 last edited by
              #6

              I just realized something: I'm not sure whether the QtMultimedia plugins can handle files found in QRC. So I'd first go with the assets to provide multimedia content with an application since most of the time anyway, these files are already compressed (mp3, mp4 etc.) and generally too big to be compiled in.

              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
              0

              4/6

              10 May 2015, 23:20

              • Login

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