question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not play local video with content:// file:// in iOS or Android device

See original GitHub issue

I got onerror:

{
  "error": { "domain": "NSURLErrorDomain", "code": -1100 }
  ...
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
charliesbotcommented, Jun 7, 2016

actually, i found a way to play the videos without any modification.

(Using React Native File System library)

i sent ${RNFS.DocumentDirectoryPath}/${fileName}.mp4 as an uri.

my flow is that i download a video, and after that i play it directly.

1reaction
ospfrancocommented, Oct 27, 2016

I found out the names also caused problems, using simple names (only alphanumeric, no underscores or anything) fixed my problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Play Videos On Your Android And IPhone? Try These ...
If you want to play the video from your Phone's default media player, it might be broken due to bugs. That's why it...
Read more >
Embedded local video file not playing on Android - Telerik
Embedded local video file not playing on Android in release build but fine in debug build when using AppBuilder (Windows Client).
Read more >
How to fix unsupported video format error on Android - NextPit
The most likely reason you see a “can't open file,” “unsupported audio codec,” or “unsupported video format" error is because your current media...
Read more >
local video file doesn't play on Android release app #1324
I have several local files that I'm loading in the app, on different screens. The thing is, in emulator works perfect, and if...
Read more >
Local video files won't play in Cordova Android App
Its not possible to read video from inside assets folder on android, you need to place it somewhere outside app, sdcard or remotely....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found