react-sound icon indicating copy to clipboard operation
react-sound copied to clipboard

Change playbackRate while playing

Open camiloperezv opened this issue 6 years ago • 0 comments

I want to change the playback rate, but i can not call this.setState of a playback value because this will call render method and start the sound again.

As you can se https://jsbin.com/UGIxoJis/1/edit?html,output you can modify the playbackRate while a media is being played.

How can I access to the current sound element to modify his playbackRate?

camiloperezv avatar Feb 12 '19 00:02 camiloperezv