You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result from getMetadata function only returns
[
{
duration: 0,
uri: './relative/path/to/music.mp3',
}
]
here is my function async function FileMetadata(uri: string) { try { const metadata = await RNMusicMetadata.getMetadata([uri]); console.log(metadata); } catch (error) { console.log('error', error); } }
IOS: 13.2
Any help would be appreciated
The text was updated successfully, but these errors were encountered:
Hi, I had the same issue when I read files with react-native-document-picker. The problem was file path. I decoded uri with decodeURIComponent and the problem was solved.
result from getMetadata function only returns
[
{
duration: 0,
uri: './relative/path/to/music.mp3',
}
]
here is my function
async function FileMetadata(uri: string) { try { const metadata = await RNMusicMetadata.getMetadata([uri]); console.log(metadata); } catch (error) { console.log('error', error); } }
IOS: 13.2
Any help would be appreciated
The text was updated successfully, but these errors were encountered: