Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to set the fid in different msid: (6 Items)
   
How to set the fid in different msid  
Hi all!
      Now , I have two store types of usb and harddrive.In the first msid ,it has 4 media files.  but I found that the 
fid is began with 1 in the first msid, and ,the fid is begin with 6 in the second msid .
       I want to the value is 1 in the begining of fid  in different msid,how can I do?
please give me some advice.thanks!
           
Re: How to set the fid in different msid  
fids are unique across the entire database, so this isn't something  you should be trying to achieve.

Why?

Dan


On 2010-08-09, at 6:33 AM, Kailen High wrote:

> Hi all!
>      Now , I have two store types of usb and harddrive.In the first msid ,it has 4 media files.  but I found that the 
fid is began with 1 in the first msid, and ,the fid is begin with 6 in the second msid .
>       I want to the value is 1 in the begining of fid  in different msid,how can I do?
> please give me some advice.thanks!
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post62258
> 

Dan Cardamore
dcardamore@qnx.com


Re: How to set the fid in different msid  
Hi Dan!
     Thanks for your reply.Because I want to distinguish the media files of the different store types(USB or HardDrive).
 I need  select one of the store device ,and play the media files of the device selected.Further more ,In order to 
control the playback conveniently, I want to begin playing the fid with value=1 in differnt store types. thanks!
    Secondly,I want to view the playlist by album(artist),how should I do?
    please give me some advices,thanks very much!
RE: How to set the fid in different msid  
  If you inspect the library table columns, you will see that there are fields for all those attributes and more:

qdbc -dmme "select * from library limit 1"

 You can play from one storage type (select ... where msid=x), artist (select ... where artist_id=x), or many other 
attributes. You can find the artist_id values in the library_artists table (select * from library_artists) and the 
others work similarly.



-----Original Message-----
From: Kailen High [mailto:community-noreply@qnx.com]
Sent: Sun 8/15/2010 11:05
To: general-multimedia
Subject: Re: How to set the fid in different msid
 
Hi Dan!
     Thanks for your reply.Because I want to distinguish the media files of the different store types(USB or HardDrive).
 I need  select one of the store device ,and play the media files of the device selected.Further more ,In order to 
control the playback conveniently, I want to begin playing the fid with value=1 in differnt store types. thanks!
    Secondly,I want to view the playlist by album(artist),how should I do?
    please give me some advices,thanks very much!



_______________________________________________

General
http://community.qnx.com/sf/go/post63023


Attachment: Text winmail.dat 2.97 KB
Re: How to set the fid in different msid  
Tony's right.  You can filter the results from your query on the library 
table to limit your selection to a specific artist, mediastore, etc.

You shouldn't consider the fid to be the offset.  If you run the same 
query you should associate offset with the fid yourself.  You'll see the 
"row number" if you use the qdbc tool.

If you want to playback at a specific offset (ie, the Nth track in a 
track session) you can use mme_play_offset().

-- 
Ryan J. Allen
QNX Software Systems
Re: How to set the fid in different msid  
Hi all!
     I known that all the media files fid is uniqe,they can not be changed.I have to query the library to get my result 
through limit.
    Now,I want to display the album art in the toutchscreen.
    Firstly,how can I associate the media file with the specified jpg? I located the media files in path of media/drive,
the album ipg on the path of media/artwork.
    Secondly,in order to display the album ipg,how can I get the metadata of the jig?
   thanks very much!