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. QML video element
Qt 6.11 is out! See what's new in the release blog

QML video element

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 4.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.
  • H Offline
    H Offline
    huluyige
    wrote on last edited by
    #1

    Hi everyone,

    I test "article":http://doc.qt.nokia.com/qt-mobility-snapshot/qml-multimedia.html

    @Video {
    id: video
    width : 800
    height : 600
    source: "video.avi"

     MouseArea {
         anchors.fill: parent
         onClicked: {
             video.play()
         }
     }
    
     focus: true
     Keys.onSpacePressed: video.paused = !video.paused
     Keys.onLeftPressed: video.position -= 5000
     Keys.onRightPressed: video.position += 5000
    

    }@

    im in ubuntu 10, Qt SDK 1.1 RC (updated today 6 Avril ) Qt creator 2.1.0
    when i run the simulator , the error is :

    plugin cannot be loaded for module "QtMultimediaKit": Cannot load library /home/username/QtSDK/Simulator/Qt/gcc/imports/QtMultimediaKit/libdeclarative_multimedia.so: (libQtMobilitySimulator.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)

    the french sentence is : "unable to open shared object file: no file of that type"

    for the .pro file , i have added
    @CONFIG += mobility
    MOBILITY += multimedia@

    when i run desktop, the error is module "QtMultimediaKit" is not installed

    i have to install Qtmoblity seperately after i install Qt SDK ? i don't know why. my objective is to develop a simple video player for symbian 3 (N8), what should i do next?

    thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shullw
      wrote on last edited by
      #2

      Just to cover all bases, did you put

      @import QtMultimediaKit 1.1@

      at the top of the qml file?

      A QML Purest Point of View!

      1 Reply Last reply
      0
      • H Offline
        H Offline
        huluyige
        wrote on last edited by
        #3

        yes, of course i did.

        if i did not import " QtMultimediaKit 1.1", Video is not object.

        [quote author="shullw" date="1302198412"]Just to cover all bases, did you put

        @import QtMultimediaKit 1.1@

        at the top of the qml file?[/quote]

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mattlc
          wrote on last edited by
          #4

          Hi,

          I have to develop a cross platform (windows, meego) full QML app which embbed a video player. Considering QtMobility is part of the SDK, I expected this to work on Desktop.

          I read this "post":http://developer.qt.nokia.com/forums/viewthread/4235 and this how to "install QTMobility on windows":http://qt-mobility.blogspot.com/2010/06/installing-qt-mobility-final-libraries.html

          But since I have a fresh install of the full SDK (and up-to-date), I have a simple question :

          Is it possible, with no custom install process of the SDK, to have the QtMultimediaKit (embedded in QtMobility) running on desktop and use the QML "Video" element ?

          If it's not possible without cutom SDK install process, where could I find a detailed process to build it ?

          Thanks a lot.

          [quote author="huluyige" date="1302106188"]
          when i run desktop, the error is module "QtMultimediaKit" is not installed

          i have to install Qtmoblity seperately after i install Qt SDK ? i don't know why. my objective is to develop a simple video player for symbian 3 (N8), what should i do next?

          thanks
          [/quote]

          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