How can I retrieve audio files from the music app?
I tried using the Expo MediaLibrary but it does not return any audio.
const media = await MediaLibrary.getAssetsAsync({
mediaType: MediaLibrary.MediaType.audio,
})
How can I retrieve audio files from the music app?
I tried using the Expo MediaLibrary but it does not return any audio.
const media = await MediaLibrary.getAssetsAsync({
mediaType: MediaLibrary.MediaType.audio,
})
Hey @jlorencelim,
Can you create a minimal, verifiable example of this using Snack? https://snack.expo.io/
Also, does this occur on both platforms?
Cheers,
Adam
Hi @adamjnav
This is the Snack example: Get Music Files - Snack
I was able to retrieve files from Android but no luck on iOS. I was hoping I can also retrieve music files from iTunes.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.