Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

filigor94's avatar

Audio seeking not working

When I want to play audio from localhost with a simple HTML5 audio player or any other, and I try to seek into the song, it drops me back to the very beginning of the song and starts it again. That happens in Chrome, but in Firefox it works correctly. I use Laravel 5.5 (the audio file itself is stored in the storage) and probably it is a common problem within the framework. In my opinion, some headers are missing and probably that causes the problem, because as I know, Chrome requires some headers.

[These are the headers that the audio gets] (https://i.stack.imgur.com/ejR1O.png)

On the front-end I use this simple code and nothing else:

<audio controls>
    <source src="/storage/audio.mp3" type="audio/mpeg">
</audio>

I tried it on different PC's, on freshly installed Laravel, but the result is the same, Chrome restarts the audio when I try to seek. Do you have any idea what the problem could be?

0 likes
1 reply
MrDobriyal's avatar

I am facing the same problem, Do you get the solution, if yes please kindly share it.

Please or to participate in this conversation.