Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] QML Video on the desktop
Forum Updated to NodeBB v4.3 + New Features

[Solved] QML Video on the desktop

Scheduled Pinned Locked Moved QML and Qt Quick
21 Posts 9 Posters 19.4k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #11

    4.7.1 has quite a few fixes if you see the change log

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

      QML Video element works ok for me.
      (Qt 4.7.1, Qt Mobility 1.1, QtCreator 2.1beta, Ubuntu 10.10)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Duff
        wrote on last edited by
        #13

        Yay!! It works! After installing Qt 4.7.1 and Qt Mobility 1.1 final, I was able to run the example QML video element with qmlviewer. As for LD_LIBRARY_PATH, I am on ubuntu and setting the path as instructed in the installation instructions (.profile) does not work for Ubuntu. I went the ld.so.conf.d route instead. I guess that worked. interesting that the .pro file was not necessary to get the example working.

        Anyway, it looks like I finally get to have some fun with QML. Thanks for the help and suggestions.

        --Duff

        1 Reply Last reply
        0
        • B Offline
          B Offline
          borut123
          wrote on last edited by
          #14

          Yes, it's quite simple to add video now.
          Has anybody tried the same thing on other platforms except Ubuntu?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #15

            My attempt at Windows 7 was a complete failure. While the library compiles, and I managed to get the component loaded, it simply does not show any video. The audio track for the video is audable though.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              moo1
              wrote on last edited by
              #16

              @Andre I had same issue on Windows. There was another thread in the forum discussing the same issue but the last time I checked there was not any solution.

              In my case, I just gave up Qt Mobility and used VLC with some own binding between QML and VLC. It worked for me as I only needed to play video w/o any overlay QML stuffs on top of video.

              1 Reply Last reply
              0
              • X Offline
                X Offline
                xsacha
                wrote on last edited by
                #17

                [quote author="Andre" date="1288082191"]Isn't it a bit strange that you need Qt Mobility to make multimedia work on the desktop? [/quote]

                I think of QtMobility more of taking advantage of extra hardware (that not every device has) - in most cases these are things desktops don't have but mobile devices do.

                But, video is a bit different. Everything can and should play that. I think the reason why it is separate is it shares a lot of code with other mobility pieces (video record?) and is commonly required for mobile applications. In the past, Qt devs have used other things (like VLC mentioned above).

                • Sacha
                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #18

                  [quote author="moo1" date="1291424014"]@Andre I had same issue on Windows. There was another thread in the forum discussing the same issue but the last time I checked there was not any solution.

                  In my case, I just gave up Qt Mobility and used VLC with some own binding between QML and VLC. It worked for me as I only needed to play video w/o any overlay QML stuffs on top of video.[/quote]
                  Could you give some more details on that?
                  I am trying to play some video (also don't need to overlay QML on top) using MPlayer, but so far I am not having much luck. Playing using VLC sounds like a good option!

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andre
                    wrote on last edited by
                    #19

                    [quote author="xsacha" date="1291425283"][quote author="Andre" date="1288082191"]Isn't it a bit strange that you need Qt Mobility to make multimedia work on the desktop? [/quote]

                    I think of QtMobility more of taking advantage of extra hardware (that not every device has) - in most cases these are things desktops don't have but mobile devices do.

                    But, video is a bit different. Everything can and should play that. I think the reason why it is separate is it shares a lot of code with other mobility pieces (video record?) and is commonly required for mobile applications. In the past, Qt devs have used other things (like VLC mentioned above).[/quote]
                    Well, I still think it is a weird choice. My guess is that it allowed for a faster development outside the main Qt branch. Recording video is equaly valid on non-mobile devices. Think of using a webcam for instance. Most of the other API in QtMobility I totally get being in there. Not many desktops or laptops have too many sensors or are equiped with localization hardware after all, but multimedia needs to be available and Just Work (TM) on all supported platforms, I think.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mitricho
                      wrote on last edited by
                      #20

                      Hi, moo1 and Andre! There was a huge bug in QtMobility "http://bugreports.qt.nokia.com/browse/QTMOBILITY-583":http://bugreports.qt.nokia.com/browse/QTMOBILITY-583. To fix it try to apply patch from here: "http://bugreports.qt.nokia.com/browse/QTMOBILITY-783":http://bugreports.qt.nokia.com/browse/QTMOBILITY-783. I've applied this patch and now qml video component works just fine.

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bamsa
                        wrote on last edited by
                        #21

                        Hi,

                        Has anyone succeeded in running the QML Video element with qmlviewer in MacOSX 10.7.2, QtCreator 2.4.1, Qt SDK 2.1?

                        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