react-native-video: Can not play local video with content:// file:// in iOS or Android device
I got onerror:
{
"error": { "domain": "NSURLErrorDomain", "code": -1100 }
...
}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 15 (1 by maintainers)
actually, i found a way to play the videos without any modification.
(Using React Native File System library)
i sent
${RNFS.DocumentDirectoryPath}/${fileName}.mp4as an uri.my flow is that i download a video, and after that i play it directly.
I found out the names also caused problems, using simple names (only alphanumeric, no underscores or anything) fixed my problem
I am having the same issue and renaming didn’t solve the issue 😦
@xumine i had problems too, but later i discovered that the name i was adding to the downloaded file caused weird issues.
then i tried with very simple names, just for test, and it worked. right now im using the ids of my videos as names. everything is working perfectly.
This issue also happens to me.