react-native-video: [ANDROID ONLY] Short video on internal storage of an app won't load

Current behavior

My video won’t start if it’s duration is under 8/10 seconds (I’ve a video of 19 seconds (internal storage) that played correctly)

If I film and saveToCameraRoll a video regardless of its duration the player works “almost” correctly.

BUT If i wanna see a video from

/data/user/0/my_app/files/my/folder/structure/medias/tpl/demonstration_video.mp4
// or
/data/user/0/my_app/files/my/folder/structure/medias/scene-0/demonstration_video.mp4

and it’s length is < 10 seconds it won’t works

On IOS it works perfectly (same video of course), with the controls set to true.

Reproduction steps

Have a short video in internal app storage (2seconds, 4 seconds, 6 seconds) and try to play it on ANDROID.

Expected behavior

The video must start, but it’s not.

Platform

  • Android ExoPlayer

With multiple android device (at least 3 -> means that’s a generic issue)

Guess

I suspect that is related to the duration of the video & the Internal storage because this is the only discriminant I managed to identify throught my tests Is some MP4 files cant be loaded for a reason ?

is someone can reproduce this issue ?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

@cobarx ping

Hi again, we’ve tested it again. Magically it works now. I supposed this is indeed relative to the master branch. That’s have not been tested well by my intern since the logcat output.

For now I will say its working on the master branch and not on the latest release, like you said.

My intern will try to validate this statement right now. Sorry for the inconvenience. And thanks to pointed that out.

@cobarx ping. If you can confirm that you tried to play your video from the “internal storage” then I will try to install the new version 4.0 and see if it changes anything

Edit : With the latest version master the error is still happening. 😦