Open trujic1000 opened 5 years ago
@trujic1000 hey! I've been using this component too but actually there some major problem. But basically this is a just a wrapper audio tag HTML5. You can build your own audio with pure JS by yourself reference audio tag in MDN
Audio sometimes just doesn't start on page refresh, it is not consistent too. Sometimes I will refresh 5 times and it will play normally, and then it won't play at all next couple of times etc.
onCanPlay
event listener always fires as normal andonError
doesn't log anything. Sometimes when it doesn't play, p tag appears withYour browser doesn't support audio element
. I am using Chrome.Anyone had the same problem?
Try using muted prop in
example below
<ReactAudioPlayer src={soundtrack} listenInterval={1000} autoplay muted loop volume={soundtrack || 0.7} />
Audio sometimes just doesn't start on page refresh, it is not consistent too. Sometimes I will refresh 5 times and it will play normally, and then it won't play at all next couple of times etc.
onCanPlay
event listener always fires as normal andonError
doesn't log anything. Sometimes when it doesn't play, p tag appears withYour browser doesn't support audio element
. I am using Chrome.Anyone had the same problem?