add the { androidImplementation: 'MediaPlayer' }

This commit is contained in:
Reinaldo Neto 2023-10-05 18:15:02 -03:00
parent 023cd8fd06
commit 23e029d836
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class AudioPlayer {
if (this.audioQueue[uri]) {
return this.audioQueue[uri];
}
const { sound } = await Audio.Sound.createAsync({ uri });
const { sound } = await Audio.Sound.createAsync({ uri }, { androidImplementation: 'MediaPlayer' });
this.audioQueue[uri] = sound;
return sound;
}