leoasis / react-sound

Sound component to play audio in your web apps
ISC License
486 stars 80 forks source link

Dynamic source not working #66

Open anjuannie opened 6 years ago

anjuannie commented 6 years ago

I am using this module to load dynamic audio. But even if the source changed, I am always getting the audio of the the first source,

Please find the code below

                       ```  <Sound
                          url={text.audioContent}  //this source is dynamic
                          ref={(element) => { this.rap = element; }}
                          playStatus={Sound.status.PLAYING}

                        /> ```