meytin1337 / youtube-dj

2 stars 0 forks source link

Display timeline #2

Closed meytin1337 closed 1 year ago

meytin1337 commented 1 year ago

We want to be able to view a timeline for the currently playing tracks.

meytin1337 commented 1 year ago

We would have to somehow offset the timeline because most tracks don't immediately start. Finding the offset could probably be done (search for first peak > 0 || < 0 and set offset = trackLength * initialZeroPeaks.length / peaks.length). Since there is currently no way to offset the Timeline plugin from wavesurfer.js though this issue will be closed for now.