react-player/reaplay

the module starts playing by itself

Closed this issue · 2 comments

the module when instaled start to play by itself and its imposible to set autoplay deactivated by default.

I tried with the example in codesandbox directly in my code, and does exactly the same effect.
setIsPaying is false by two ticks and then it turns true byitself before even loads the song.

help

hi, the codesandbox example is legacy version & it removed from readme,
use this example :
https://github.com/react-player/reaplay/blob/master/example/src/App.tsx

add this piece of code

Screenshot 2023-06-02 at 6 30 27 PM