Media Library music files iOS

#1

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,
})
#2

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

#3

Hi @adamjnav

This is the Snack example: https://snack.expo.io/@jlorencelim/get-music-files

I was able to retrieve files from Android but no luck on iOS. I was hoping I can also retrieve music files from iTunes.

closed #4

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