What makes image fetched from remote URI to be displayed only in IOS devices?

Please provide the following:

  1. SDK Version: 3.20.1
  2. Platforms(Android/iOS/web/all): Android

I use the expo-av plugin to record an audio (to later upload it to my backend)

step 1 (I make a new instance of the Recording)

let audio = new Audio.Recording();

step 2 (I prepare the audio object to record)

await audio.prepareToRecordAsync(Audio.RECORDING_OPTIONS_PRESET_HIGH_QUALITY)

step 3 (I start to record)

await audio.startAsync();

step 4 (I get the audio file and log it)

let record = audio.getURI();

here’s the audio file


step 5 (I create a playback audio file (to listen my record))

const { sound: soundObject, status } = await Audio.Sound.createAsync(
   { localUri : record },
   { shouldPlay: true }

in step 5 , I get this error

[Unhandled promise rejection: Error: Cannot load an AV asset from a null playback source]

I’m not sure what’s wrong in my code (how I have a returned path and it’s also considered as null) ?

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