Expo.Audio.Sound download header

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.

no one knows answer ?

somthing like this …::

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

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