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. Can anyone point me to example code for playing a movie using the Qt Multimedia API?
QtWS25 Last Chance

Can anyone point me to example code for playing a movie using the Qt Multimedia API?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.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.
  • T Offline
    T Offline
    TwoGunBerg
    wrote on last edited by
    #1

    Hi All;
    Can anyone point me to example code for playing a movie using the Qt Multimedia API? According to the articles i have been seeing Phonon is going away with the release of Qt 4.8, which could be anywhere from six month from now to a year + from now. Since it is going away i would like to get a handle on the use of the Multimedia API but try as i might i can't find any example code any. Anyone know where i can find some? Any help would be greatly appreciated.

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dguimard
      wrote on last edited by
      #2

      Hello

      does not what you can find in the directory :
      NokiaQtSDK\Examples\4.6\multimedia and what is located in the mobility 1.0.2 at examples\videographicsitem enough?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TwoGunBerg
        wrote on last edited by
        #3

        I have looked at those examples and they use the QMovie class which supports animated gifs and such, but does not support opening AVI, mpg or other video files. Other then using phonon how can you display an avi, mpg or other video files?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dguimard
          wrote on last edited by
          #4

          http://doc.qt.nokia.com/4.6/phonon-mediasource.html#MediaSource
          using phonon
          Phonon.MediaSource("yourFilePath.mp4")

          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