How to load video in mediaplayer from Android external storage?

Hello,

I’m doing an application that will show some videos. They are big (hundreds of MBs) and they could be numerous /changed (e.g. I could phisically load them via USB or download them from the internet), so I would like to store them in the Android External Storage / sdcard, or somewhere else in the filesystem, and then reference them and load them in the MediaPlayer. Is it possible, either with blueprint or C++ scripting?

Hi!

Have you configured the Android Manifest to request permissions to access files in the SD Card?
You should add this command to your Project Settings→Platforms - Android→Advanced APKPackaging
Extra permissions.

You’ll need to do that for starters.

Thank you! I didn’t notice that I could add specific extra permissions to the manifest ( I didn’t event thought that I should… I thought that UE4 packaging was handling these by itself)
Still I don’t know what path I have to use to access the sdcard or Internal Storage, but that’s a start.

You can get the file path this way: adb shell “echo $EXTERNAL_STORAGE”
I don’t know if you can run that command from within UE4 and check the validity of the result or not.

Hello,

I’m having the same problem and would like to know if you could figure out a solution?
I tried using LoadVideo, but I could not make the video work and I didn’t find the documentation for that function.

Also I tried to generate a DLC package, they work very well, but I could not make the videos stay inside the DLC package :frowning:

The DLC installation was done this way below

Hello, I’m sorry but I eventually gave up and stored the files I needed in the /Movie filder, inside the .obb file. Of course I couldn’t download any other.
Still, I tried to solve this problem in 4.11, before the MediaPlayer overhaul in 4.13 (or was it 4.14?), so my answer would probably not be valid anymore.