Implements seeking to saved position for tracks

This commit is contained in:
ailurux
2024-09-17 14:13:05 +10:00
parent 6c1757a176
commit c479d699d0
6 changed files with 43 additions and 3 deletions
+3 -1
View File
@@ -105,8 +105,10 @@ return screen:new{
local track = database.track_by_id(contents)
if (track) then
print("Track saved position: ", track.saved_position)
queue.play_from(track.filepath, track.saved_position)
else
queue.add(contents)
end
queue.add(contents)
playback.playing:set(true)
backstack.push(playing:new())
end