Skip to content

Commit

Permalink
feat: seek based on playback speed
Browse files Browse the repository at this point in the history
  • Loading branch information
pxeemo committed Feb 1, 2025
1 parent 2fa041e commit 8f78aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ function togglePlayPause() {

const backwardBtn = document.getElementById('backwardBtn')
backwardBtn.addEventListener('click', () => {
audio.currentTime -= 6
audio.currentTime -= 6 * audio.playbackRate
})

const forwardBtn = document.getElementById('forwardBtn')
forwardBtn.addEventListener('click', () => {
audio.currentTime += 5
audio.currentTime += 5 * audio.playbackRate
})

function formatTime(seconds, lrcformat = true) {
Expand Down

0 comments on commit 8f78aa8

Please sign in to comment.