Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide timestamps for taf file (track) #187

Closed
henryk86 opened this issue Jun 10, 2024 · 1 comment
Closed

Provide timestamps for taf file (track) #187

henryk86 opened this issue Jun 10, 2024 · 1 comment

Comments

@henryk86
Copy link
Collaborator

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
Copy link
Contributor

SciLor commented Oct 5, 2024

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

Then extract the position from the OggS header.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants