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. [Solved] How to maintain Meta Data of Media Library?
Forum Updated to NodeBB v4.3 + New Features

[Solved] How to maintain Meta Data of Media Library?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k 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.
  • I Offline
    I Offline
    inblueswithu
    wrote on last edited by
    #1

    Hi,

    I'm new to Qt & QML.
    I'm trying to develop a music player for desktops (Win, Mac, Lin).
    My idea is to have the UI in QML. I understood that for maintaining Meta data of the music library it has to be done with Qt.

    Now, my problem is, If i have a huge library, after scanning the library and getting the metadata (Song Name, Album, Artist, Gener, Year etc) I have to store it somewhere for future usage and showing in different views (Album view, Artist view etc). So, How should I maintain this huge list in the order of Albums, Artists. Should I use a Database? If so how should I bundle that along with my application.! B'se end user might not have a database etc installed.

    I guess I'm being dumb here. But Can some one please tell me how to achieve this.

    Regards,
    inblueswithu

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Maintain your medialibrary metadata in SQLite database. Create the database with the required tables very first time your app starts. Then you just need to add the metadata of the newly discovered files.
      Qt has built in support for SQLite.

      157

      1 Reply Last reply
      0
      • I Offline
        I Offline
        inblueswithu
        wrote on last edited by
        #3

        @p3c0: Does all the media players follow the same? I mean a built in DB for storing all such info?
        [quote author="p3c0" date="1378014580"]Maintain your medialibrary metadata in SQLite database. Create the database with the required tables very first time your app starts. Then you just need to add the metadata of the newly discovered files.
        Qt has built in support for SQLite.[/quote]

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Maybe they are storing. I'm not sure. But the point here is to store records some how so that they can be accessed precisely and quickly. Databases are meant for that. And since SQLite is file based db its faster. Using a database reduces the overhead of maintaining the data for the developer as it is handled by the DB itself.

          157

          1 Reply Last reply
          0
          • I Offline
            I Offline
            inblueswithu
            wrote on last edited by
            #5

            @p3c0: True as you said. I'll try that.

            Folks, Any other ideas or ways of doing this?

            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