get the full duration time of a PDJ playlist

Started by Terry, December 02, 2019, 12:38:36 PM

Previous topic - Next topic

Terry

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

Administrator

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

Terry

Hi

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

Kind Regards

Terry