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. QtMultimediaKit QtMobility
Forum Updated to NodeBB v4.3 + New Features

QtMultimediaKit QtMobility

Scheduled Pinned Locked Moved General and Desktop
13 Posts 4 Posters 8.3k 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.
  • B Offline
    B Offline
    beowulf
    wrote on last edited by
    #1

    I'm trying to create a video player, looking for references on the internet I found the Phonon, but reading much, searching much, I realized that he is slowly dying, so I decided to find another solution. I found the QtMultimediaKit QtMobility, but unfortunately I can not find anything on the internet to help me with them, not even the documentation is helping.

    Can anyone give me an example of how to play a mp4 video? Thank you.

    -- 0x00

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Check the "Qt Mobility Media player example app":http://doc.qt.digia.com/qtmobility/player.html.

      http://anavi.org/

      1 Reply Last reply
      0
      • B Offline
        B Offline
        beowulf
        wrote on last edited by
        #3

        When i try to compile this example, i got that message:

        c:\qtsdk\examples\qtmobility\player\player.h:46: error: C1083: Cannot open include file: 'qmediaplayer.h': No such file or directory

        -- 0x00

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beowulf
          wrote on last edited by
          #4

          I can not fix the error, I got tired of searching the internet and found no similar problem.
          According to Qt, Qt Mobility comes with Qt SDK, but still is not working.

          @c:\qtsdk\examples\qtmobility\player\player.h:46: error: C1083: Cannot open include file: ‘qmediaplayer.h’: No such file or directory@

          -- 0x00

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            Try editing player.pro:
            @
            // Change this...
            QT += network
            xml

            // ...to this:
            QT += network
            xml
            multimedia
            @

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

            1 Reply Last reply
            0
            • B Offline
              B Offline
              beowulf
              wrote on last edited by
              #6

              !http://i.imgur.com/Wooxm.png(http://i.imgur.com/Wooxm.png)!

              -- 0x00

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                Looks like the Mobility examples from QtSDK 1.2.1 are broken. Other people have this problem too (e.g. http://qt-project.org/forums/viewthread/7724 )

                One easy hack is to go to C:\qtsdk (or wherever you installed it), search for the .h files that your SDK can't find (qmediaplayer.h and qmobilityglobal.h, from your screenshot), and add the folder(s) to player.pro like this:
                @
                INCLUDEPATH += C:/qtsdk/include/QtMultimediaKit
                INCLUDEPATH += C:/qtsdk/include/QtMobility
                @

                Notes:

                Use '/' instead of '', even in Windows

                The above is an example only -- check your folders for the correct path

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

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  beowulf
                  wrote on last edited by
                  #8

                  There is no a folder with the libraries, only those.

                  !http://i.imgur.com/S2eCu.png(http://i.imgur.com/S2eCu.png)!

                  -- 0x00

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    beowulf
                    wrote on last edited by
                    #9

                    I've included the directory but appears more errors.

                    @INCLUDEPATH += C:/QtSDK/Simulator/QtMobility/msvc2008/include/QtMobility
                    INCLUDEPATH += C:/QtSDK/Simulator/QtMobility/msvc2008/include/QtMultimediaKit@

                    !http://i.imgur.com/k2DOS.png(http://i.imgur.com/k2DOS.png)!

                    -- 0x00

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      beowulf
                      wrote on last edited by
                      #10

                      I reported the bug: https://bugreports.qt-project.org/browse/QTMOBILITY-2078

                      -- 0x00

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        chrisadams
                        wrote on last edited by
                        #11

                        Have you seen http://qt-project.org/wiki/QtMediaHub ?
                        Note that in Qt5, QtMultimedia is an add-on module to Qt itself, rather than a module of QtMobility.

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          beowulf
                          wrote on last edited by
                          #12

                          Never seen the QtMediaHub, but from what I saw he did not serve to my project.

                          I want a video player that supports most formats, such as VLC.

                          No need to install codecs on the computer user, but with the libraries folder within the video player, like VLC, which has all the libraries for the different formats.

                          -- 0x00

                          1 Reply Last reply
                          0
                          • JKSHJ Offline
                            JKSHJ Offline
                            JKSH
                            Moderators
                            wrote on last edited by
                            #13

                            Qt doesn't natively support many multimedia formats. If you want that, you should use a 3rd-party library -- if you link libVLC to your project, you can play all the formats that VLC media player can play.

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

                            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 Extensions
                            • Unsolved