Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-857

Audio source format into qml multimedia plugin

XMLWordPrintable

      QML Snippet

          import Qt 4.7
          import QtMultimediaKit 1.1
         Text {
              text: "Click Me!";
              font.pointSize: 24;
              width: 150; height: 50;
              Audio {
                  id: playMusic
                  source: "C:/Music/Josh Woodward - Not Quite Connected - 06 - Inertia.mp3" - doesn't work
                  source: "file:///C:/Music/Josh Woodward - Not Quite Connected - 06 - Inertia.mp3" - works OK
              }
              MouseArea {
                  id: playArea
                  anchors.fill: parent
                  onPressed:  { playMusic.play() }
              }
          }
      

      Both formats(url and local file path) should work, same as in Image qml element.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            czervonk Patryk Czerwonko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes