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. Music: how to list
Forum Updated to NodeBB v4.3 + New Features

Music: how to list

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

    how to list the musics of a phone?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Check the official "Music Player example":http://library.developer.nokia.com/index.jsp?topic=/MeeGo_1.2_Harmattan_API/html/qt-components/qt-components-example-musicplayer.html It should show you how to retrieve audio files on a phone with MeeGo Harmattan OS.

      http://anavi.org/

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spode
        wrote on last edited by
        #3

        how to add QMediaPlayer in a project?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="spode" date="1314183307"]how to add QMediaPlayer in a project?[/quote]

          Check the "documentation":http://doc.qt.nokia.com/qtmobility-1.2/qmediaplayer.html You should include <QMediaPlayer> and add QtMultimediaKit module to Qt mobility section of your pro file.

          http://anavi.org/

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

            You can always make your own custom player if you want with the QML Audio Element. I am wrapping up a project right now where I did that exact thing. "QML Audio Doc":http://doc.qt.nokia.com/qtmobility-1.1-tp/qml-audio.html

            A QML Purest Point of View!

            1 Reply Last reply
            0
            • S Offline
              S Offline
              spode
              wrote on last edited by
              #6

              bq. You can always make your own custom player if you want with the QML Audio Element. I am wrapping up a project right now where I did that exact thing. QML Audio Doc [doc.qt.nokia.com]

              but how do you list all audio file? and how do you get the selected music?

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

                Well the best way to list all the audio files would be to use the QML DocumentGalleryModel Element. The documentation for it is located "here.":http://doc.qt.nokia.com/qtmobility/qml-documentgallerymodel.html You can use a rootType of DocumentGallery.Audio. From there you have just made a nice little list of all the audio files available. My player was written entirely in QML and JS. I am not a programmer by trade so C++ is somewhat a mystery to me. Hope this helps in your quest.

                A QML Purest Point of View!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  spode
                  wrote on last edited by
                  #8

                  excuse me, how do you get the selected file?

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

                    If you noticed in the document page in the previous post that I made there was a
                    @properties: [ "url" ]@
                    in the DocumentGalleryModel and then a
                    @source: url@
                    in the delegate to list it. You will do the same thing, but it will be using the QML Audio Element. I hope that is what you are asking for. If not just let me know.

                    A QML Purest Point of View!

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      spode
                      wrote on last edited by
                      #10

                      just a moment: i need to use this on a device, so could you help me here please: http://developer.qt.nokia.com/forums/viewthread/7174

                      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