Expo.Audio.Sound download header


#1

play a local file or a direct online file is ok but i wanna play stream a file that has got Authentication with Bearer …

what must to do ? i don’t want to download it first then play … i wanna stream it with authetication .

thanks.


#2

no one knows answer ?

somthing like this …::

const { sound, status } = await Audio.Sound.create(
                source,
                initialStatus,
                this._onPlaybackStatusUpdate,
{ 'method': 'POST',
        'headers': {
            'Authorization': 'Bearer ' + userToken,
        },}
            );

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.