INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: AracornRed on September 21, 2013, 06:48:20 pm

Title: Getting the start time of a track in a playlist
Post by: AracornRed on September 21, 2013, 06:48:20 pm
Is it possible to get the starting time of each track in a playlist?  Via an expression perhaps?  So for example:

Code: [Select]
Seq  Name         Duration  *Start time*
1    Track One    2:30      0:00
2    Track Two    3:00      2:30
3    Track Three  2:45      5:30

...and so on.  Thanks in advance for any help. :)
Title: Re: Getting the start time of a track in a playlist
Post by: MrC on September 22, 2013, 03:19:17 am
You can, but the technique is very limited.  a) it works correctly only once every 5 seconds, and b) moving the mouse over the contents of the playlist will destroy the sequence until you refresh the view with F5, limited by (a) above.

Add an expression column with the value:

if(compare(counter(), =, 1), formatduration(0)save([duration,0],dur), formatduration(load(dur))save(math([duration,0] + load(dur)), dur))
Title: Re: Getting the start time of a track in a playlist
Post by: AracornRed on September 23, 2013, 09:33:16 pm
Thanks for that.  It is quite odd seeing the times creep up as I mouse over them but it gets the job done!
Title: Re: Getting the start time of a track in a playlist
Post by: MrC on September 23, 2013, 10:03:15 pm
Indeed, it is peculiar.

Change the expression to this:

   if(compare(CustomData(#), =, 1), formatduration(0)save([duration,0],dur), formatduration(load(dur))save(math([duration,0] + load(dur)), dur))

and it will eliminate the need to wait 5 seconds for the refresh, so item (a) goes away.  Also, mousing out of the file list view area will cause it to refresh properly, or F5 as before.