-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio duration sometimes not showing #177
Comments
@totti-rdz I had the same problem with a remix project. The solution is either to set the
This makes it render the audio player on the client where the duration then can be fetched from the file. Hope that helps! |
@DHFW Can you explain how the "ClientOnly" works? |
I'm having this same issue even though I have made my component as client-side but still, I get this issue with duration, does anyone have solved this issue? |
If you're using next you can do something like this only render the component on the client side. I hope it helps.
|
Discussed in #172
Originally posted by totti-rdz September 14, 2022
I'm using the audio player in one of my projects with Next.js and Tailwind CSS and I've already noticed that sometimes the duration for a track is not shown. Only the placeholder
--:--
at the end of the progress bar. At first I thought that this is maybe a network related issue, e.g. the duration can not be shown until the track is fully downloaded, but I'm not sure about that as sometimes I have the player open for a while.I created a show project only with the audioplayer and one media file from wikipedia for another bug I wanted to inspect which turned out to be a feature in iOS (volume control not working) and the missing duration behaviour is showing here again.
The duration is missing sometimes on Mozilla Firefox 104.0.2 (64-bit) macOS and rarely on Chrome (macOS).
Brave browser (android) and Safari (iOS) it seems that the duration is always shown, but I'm not sure about that.
Please visit:
https://react-h5-audio-player.vercel.app/
https://github.com/totti-rdz/react-h5-audio-player
The text was updated successfully, but these errors were encountered: