toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
487 stars 36 forks source link

Provide timestamps for taf file (track) #187

Closed henryk86 closed 1 month ago

henryk86 commented 5 months ago

In the header of a taf file is (if available) a array stored with the pagesegements when a new track starts. The audioplayer in the new frontend needs timestamps (in seconds) to be able to jump between the tracks.

As far as I know there is no way to calculate the seconds from the segmentnumbers. You need the whole taf file to extract that information.

so it would be great to be able to use the track skipping feature of the webplayer to get an array with the starting times of each track. To be usable within tonies overview and content/library browser view, only the filename (+path) should be passed.

SciLor commented 1 month ago

You can calculate the position in the file with the track information: 4096 + num*4096

Then extract the position from the OggS header.

image