[UPDATE] Issue with repro created
Hey guys,
After updating SDK 48 to 49 .mp4
and .pdf
files downloaded through expo-file-system
do not open on Android but work on iOS. Anyone going through something similar?
expo-av error
:
com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (FragmentedMp4Extractor, Mp4Extractor, FlvExtractor, FlacExtractor, WavExtractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaEx...
react-native-pdf error
:
cannot create document: File not in PDF format or corrupted.
npx expo install --fix
:
Dependencies are up to date
npx expo-doctor
:
Didn't find any issues with the project!
react-native-blob-util
and react-native-pdf
following the versions recommended in @config-plugins
:
"react-native-blob-util": "~0.18.3"
→ "@config-plugins/react-native-blob-util": "^6.0.0"
"react-native-pdf": "~6.7.1"
→ "@config-plugins/react-native-pdf": "^6.0.0"
yarn outdated (excluding expo-versioned)
:
Package | Current | Wanted | Latest
color | 3.2.1 | 3.2.1 | 4.2.3
i18n-js | 3.9.2 | 3.9.2 | 4.3.0
react-native-paper | 4.12.5 | 4.12.5 | 5.10.3
react-native-text-input-mask | 3.1.5 | 3.1.5 | 3.2.0
string-strip-html | 8.3.0 | 8.3.0 | 13.4.2
typescript | 5.1.6 | 5.1.6 | 5.2.2
The file is not corrupted:
const fileUri = FileSystem.documentDirectory + folderName + item.id;
const downloadResumable = FileSystem.createDownloadResumable(encodeURI(uri), fileUri, {
md5: true,
});
await ensureDirExists(dir);
const download = await downloadResumable.downloadAsync();
const file = await FileSystem.getInfoAsync(fileUri, { md5: true });
console.log(donwload?.md5 === file?.md5); //-> true
Thanks!