INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Display Playlist Remaining Time in MM:SS?  (Read 1763 times)

WMarkT

  • Recent member
  • *
  • Posts: 15
Display Playlist Remaining Time in MM:SS?
« on: October 26, 2022, 08:34:53 am »

Is there a way to display Playlist Remaining Time with seconds? The existing display (e.g. 24 minutes) is good for an approximation, but sometimes and exact time is important (like starting music for timed fireworks).

Thanks for any guidance.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Display Playlist Remaining Time in MM:SS?
« Reply #1 on: October 26, 2022, 12:50:07 pm »

There's a function called PlayListTime() but it doesn't seem to work on the status bar, and it doesn't update every second anyway.
It would make sense to be able to get the raw values in seconds that the user could then format with FormatDate() for display, perhaps like so:
[Playlist Remaining Time,0]
[Elapsed Time,0]
[Total Time,0]


Maybe @Matt can add that?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Display Playlist Remaining Time in MM:SS?
« Reply #2 on: October 26, 2022, 02:36:07 pm »

I added an expression column to Playing Now and just played around with showing the remaining number of seconds for each file:
Math((PlaylistTime(4,0)-PlaylistTime(0, 0))/1000)

Maybe you could build on that.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Display Playlist Remaining Time in MM:SS?
« Reply #3 on: October 26, 2022, 04:08:49 pm »

That works fine, but I believe we're talking about the Display bar on top which updates every second.
The default expression for that is:
[Elapsed Time] // [Total Time] - [Bitrate (labeled)]   [PN Position] of [PN Tracks]  [Zone] - [Playlist Remaining Time]

The [Playlist Remaining Time] prints "25 minutes", and OP wants something like "24:13" that updates every second, like [Elapsed Time] does.
Logged
Pages: [1]   Go Up