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
When processing audio files of larger size on iOS, the system encounters multiple errors during waveform extraction and player preparation. The audio file is being downloaded using RNFetchBlob.
privateasyncdownloadUrl(path: string): Promise<string>{try{const{dirs}=RNFetchBlob.fsconsttempFilePath=Platform.OS==='ios'
? `${dirs.DocumentDir}/waveform_${Date.now()}.mp3`
: `${dirs.CacheDir}/waveform_${Date.now()}.mp3`constres=awaitRNFetchBlob.config({path: tempFilePath,}).fetch('GET',path)if(res.respInfo.status!==200){thrownewError('File download failed')}returntempFilePath}catch(error){console.log('Error downloading file:',error)thrownewError('Failed to download the file')}}
Errors Encountered
Waveform Extraction Error
MP3AudioFile.cpp:1526 Problem scanning for packets
MP3AudioFile.cpp:1065 MPEGAudioFile::OpenFromDataSource failed
AudioFileObject.cpp:105 OpenFromDataSource failed
AudioFileObject.cpp:80 Open failed
ExtAudioFile.cpp:211 about to throw 'dta?': open audio file
AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error 1685348671
Player Preparation Error
MP3AudioFile.cpp:1526 Problem scanning for packets
MP3AudioFile.cpp:1065 MPEGAudioFile::OpenFromDataSource failed
AudioFileObject.cpp:105 OpenFromDataSource failed
AudioFileObject.cpp:80 Open failed
Environment
Platform: iOS
File Type: MP3
File Size: >1MB and larger
Library: RNFetchBlob for file download
Storage Location: DocumentDir (iOS)
Additional Information
Error occurs with files of larger size
Both waveform extraction and player preparation are affected
Files are being downloaded to the app's document directory on iOS
The issue is reproducible with the exact test file provided
The text was updated successfully, but these errors were encountered:
iOS Audio File Processing Error with MP3 Files
Description
When processing audio files of larger size on iOS, the system encounters multiple errors during waveform extraction and player preparation. The audio file is being downloaded using RNFetchBlob.
Steps to Reproduce
Current Implementation
Using RNFetchBlob to download the audio file:
Errors Encountered
Waveform Extraction Error
Player Preparation Error
Environment
Additional Information
The text was updated successfully, but these errors were encountered: