E-Kuerschner / useAudioPlayer

React hooks for controlling audio on the web
MIT License
315 stars 35 forks source link

Update README.md #77

Closed brianshano closed 2 years ago

brianshano commented 2 years ago

Update fade method example - need to start playback at volume: 0 so you don't hear a glitch before fade kicks in. Also I found the useEffect should also take "player" as a dependency and should only try fade when player=true otherwise it throws an error