Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Cannot load video elements in MS windows

    QML and Qt Quick
    1
    1
    1825
    Loading More Posts
    • 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.
    • N
      nizeguy last edited by

      Hi there.

      I'm having a problem playing video elements in windows. The Qt Mobility 1.1 TP is configured with with directshow plugin and when loading the qml below i get the following error:

      file:///C:/Users/smg/Desktop/try8/TEST_multimedia/v.qml:2:1: plugin cannot be loaded for module "Qt.multimedia": Cannot load library C:/Qt/2010.05/qt/imports/Qt/multimedia/declarative_multimedia.dll: Impossível localizar o módulo especificado.
      @
      import Qt.multimedia 1.1
      ^
      @

      @
      import Qt 4.7
      import Qt.multimedia 1.1

      Video {
      id: video
      width : 800
      height : 600
      //source: "video.avi"
      source:"asf_to_mpeg-1.mpeg"

       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
      

      }
      @

      [edit: Highlight added / Denis Kormalev]

      1 Reply Last reply Reply Quote 0
      • First post
        Last post