I develop a multiple platform app that runs on ios, android and web. To ios and android, I'd with RN and React to web.
When I record audio in mobile, that sound reproduces ok, but when audio is recorded from web doesn't work on mobile (yes on the web)
MIME-type that I use is 'audio/mp4' on all platforms.
I log object that return new Sound in every case and obtain next:
audio comes from web app. Doesn't worksaudio comes from another mobile device. Works
if you see, the only difference is that the duration in case the audio works fine log correctly, but in the case that sound doesn't work, the duration is 0
NOTE: the audio is not broken, I can play it normally from URL origin or by downloading the file
:beetle: What is the observed behavior?
The sound file that comes from the web doesn't work on mobile
:beetle: What is the expected behavior?
Sound file should work fine
:beetle: Please post your code:
this.player = new Sound(uri, null, (error) => {
if (error) {
console.error('Error with sound')
}
//... work with sound duration
});
:bulb: Does the problem have a test case?
:bulb: **Possible solution**
:bulb: Is there a workaround?
:bulb: If the bug is confirmed, would you be willing to create a pull request?
:beetle: Description
I develop a multiple platform app that runs on ios, android and web. To ios and android, I'd with RN and React to web. When I record audio in mobile, that sound reproduces ok, but when audio is recorded from web doesn't work on mobile (yes on the web)
MIME-type that I use is 'audio/mp4' on all platforms.
I log object that return new Sound in every case and obtain next:
audio comes from web app. Doesn't works
audio comes from another mobile device. Works
![Anotación 2020-08-24 163001](https://user-images.githubusercontent.com/37948156/91087616-180f7280-e627-11ea-8da3-92cae126e1aa.png)
if you see, the only difference is that the duration in case the audio works fine log correctly, but in the case that sound doesn't work, the duration is 0
NOTE: the audio is not broken, I can play it normally from URL origin or by downloading the file :beetle: What is the observed behavior?
The sound file that comes from the web doesn't work on mobile
:beetle: What is the expected behavior?
Sound file should work fine
:beetle: Please post your code:
:bulb: Does the problem have a test case?
:bulb: **Possible solution**:bulb: Is there a workaround?
:bulb: If the bug is confirmed, would you be willing to create a pull request?
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?