MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Author Topic: get the full duration time of a PDJ playlist  (Read 306 times)

Terry

  • Newbie
  • *
  • Posts: 23
    • View Profile
get the full duration time of a PDJ playlist
« 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
Logged

Administrator

  • Administrator
  • Sr. Member
  • *****
  • Posts: 291
    • View Profile
    • MultiMedia Soft
Re: get the full duration time of a PDJ playlist
« Reply #1 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
Logged

Terry

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: get the full duration time of a PDJ playlist
« Reply #2 on: December 04, 2019, 04:37:28 AM »

Hi

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

Kind Regards

Terry
Logged