lhz516 / react-h5-audio-player

React audio player component with UI. It provides time indicator on both desktop and mobile devices.
https://codepen.io/lhz516/pen/dyGpmgP
MIT License
587 stars 91 forks source link

Song plays without any trigger and I cant control it #185

Closed RamboGj closed 1 year ago

RamboGj commented 1 year ago

On the first time I render a song page it starts playling alone as with the "autoPlay" props being false. beyond that, when I click play in order to pause it, it starts playling a second time the song. I can only pause the second song that started playing but not the first one that started playling alone

RamboGj commented 1 year ago

And if i use the autoPlay prop equals true, in the first time I open a song page, it starting playing the same song twice at the same time