add the { androidImplementation: 'MediaPlayer' }
This commit is contained in:
parent
023cd8fd06
commit
23e029d836
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue