stream tracking
This commit is contained in:
parent
f67a44476f
commit
888299fe83
2 changed files with 4 additions and 2 deletions
|
|
@ -574,7 +574,7 @@ function handleProgressBarChange(event) {
|
||||||
// Handle seeking in the audio track
|
// Handle seeking in the audio track
|
||||||
if (!audioPlayer || !audioPlayer.duration) return;
|
if (!audioPlayer || !audioPlayer.duration) return;
|
||||||
|
|
||||||
const progress = event.target.value;
|
const progress = parseFloat(event.target.value);
|
||||||
const newTime = (progress / 100) * audioPlayer.duration;
|
const newTime = (progress / 100) * audioPlayer.duration;
|
||||||
|
|
||||||
console.log(`🎯 Seeking to ${formatTime(newTime)} (${progress.toFixed(1)}%)`);
|
console.log(`🎯 Seeking to ${formatTime(newTime)} (${progress.toFixed(1)}%)`);
|
||||||
|
|
|
||||||
|
|
@ -386,7 +386,9 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
position: relative;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue