zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

Can I pass request headers when creating a sound instance? #547

Closed ahinkel421 closed 5 years ago

ahinkel421 commented 5 years ago

I am trying to reference an mp3 file in my Sharepoint database, but I need to pass a token in order to retrieve it. Is there a way to pass request headers as params when creating a sound instance?

Thanks in advance!

paulmelnikow commented 5 years ago

Hi! You can load the sound first and then pass the data into new Sound(). Hope this helps!