Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Creating a tracksession: (5 Items)
   
Creating a tracksession  
In MME documents says, "MME supports two type of track session 1) Library 2)file-based"

My question is: How do I decide,  which one I have to use??
Associations:
post57114:
              Re: Creating a tracksession - Hello,
Please help me in setting of MME and playing some media using mmecli utility on QNX.I followed the steps mentioned in QNX_Aviage_Introduction_MME.pdf documents.But when i gave "mmecli play" command after setting track session iam getting (rc=-1 and errno=21) and (rc=-1 and errno=61).

Thanks In Advance,
Santhi. - kandregula vijaya santhi
            
Re: Creating a tracksession  
If you are synchronising a mediastore to the library then you can use a 
library-based tracksession.  This builds a list of files to play by 
executing an sql query.

An example using mmecli to play all media files from msid 7:
   mmecli newtrksession l "select fid from library where msid = 7 and 
ftype != 5;"

If you will be exploring a mediastore (with the mme_explore_*() 
functions) you will get a list of files to play.  For this you would use 
a file-based tracksession, adding the specific files you find that you 
want to play.

-- 
Ryan J. Allen
QNX Software Systems
Associations:
post57110:
              Creating a tracksession - Hello,
Please help me in setting of MME and playing some media using mmecli utility on QNX.I followed the steps mentioned in QNX_Aviage_Introduction_MME.pdf documents.But when i gave "mmecli play" command after setting track session iam getting (rc=-1 and errno=21) and (rc=-1 and errno=61).

Thanks In Advance,
Santhi. - kandregula vijaya santhi
            
Re: Creating a tracksession  
Thanks Ryan!

Can I create a track session (MME_PLAYMODE_LIBRARY) for iPOD device?? is there any constrain on it for iPOD.

Advance thanks! 
Vadivel
RE: Creating a tracksession  
Generally for iPod you will use a file-based tracksession.  The iPod will fill-out a tracksession with other files in 
the folder you select.  For example, if you create a file-based tracksession the first file in /Music/Songs/All/ the 
iPod will load all other items from the same folder into the playback engine.  It will play the song you've selected 
first, but then it will play another one from that folder.  The typical iPod tracksession is a file-based tracksession 
of only one item--the specific item that the user has selected.

There are some exceptions to this general use.
  1. If you sync the iPod to the library you can use library-based tracksessions.  The same "autofill" of the playback 
engine mentioned above occurs, so you would generally only play one fid from the library and the iPod will carry on 
after that;
  2. if you sync the iPod to the library AND use iPod stalked mode, you build library-based tracksessions with a list of
 the specific fids you want to play.  Stalker mode has the MME specifically stop the iPod after each track has played, 
then the MME tells the iPod which song to play next.  It's not perfect, but it is necessary if you want specific control
 over the playback order;
  3. if you are resuming an iPod's playback using its existing playback engine (for example, when the user first 
connects the device), playback is usually done with the function mme_play_resume_msid().  This function automatically 
creates a library-based tracksession, though that is inconsequential to the caller.

I'm not sure if iPod sync is in MME 1.2.1, and I don't think iPod stalker mode is.  If you need either of these and 
don't have access to these features you'll have to talk to your QNX sales rep about a newer MME version.

-- 
Ryan J. Allen
QNX Software Systems
Attachment: Text winmail.dat 3.12 KB
Re: RE: Creating a tracksession  
Thanks Ryan Allen!