MultiMedia Soft forum

MultiMedia Soft products => Audio playback and audio management components => Topic started by: Terry on December 02, 2019, 12:38:36 PM

Title: get the full duration time of a PDJ playlist
Post by: Terry on December 02, 2019, 12:38:36 PM
Hello,

Is there any quickly way to get the full duration time of a PDJ playlist?

The playlist contains "MixPosSec", "StartPosSec" attributes.

Kind Regards

Terry
Title: Re: get the full duration time of a PDJ playlist
Post by: Administrator on December 03, 2019, 11:25:23 AM
Hello Terry,

unfortunately this feature is not available directly: you may eventually enumerate contained items through the PlayListGetCount method and then obtain the duration in seconds of each item through the PlayListGetItemString method having the nString parameter set to PL_STRING_INFO_DURATION: being the returned value a string, you will have to convert this string into a numeric value.

In order to have a more reliable duration of the effective playlist's execution time you may also obtain significative values related to the start position of a specific item by obtaining values stored into the "MixPosSec" and "StartPosSec" attributes through the corresponding parameters of the PlayListItemVolAutomGetMixPos method.

Hope this helps

Kind regards

Severino Delaurenti
MultiMedia Soft
Title: Re: get the full duration time of a PDJ playlist
Post by: Terry on December 04, 2019, 04:37:28 AM
Hi

That's what I am doing right now.
Thank you.

Kind Regards

Terry