- Home /
Question by
hannacho700 · Jul 18, 2019 at 06:38 AM ·
androidvideostorage
Please let me know how to load video files that I put in the internal storage of my Android device.
I am making Android app using Unity. I'm trying to play a video using VideoPlayer. I put several mp4 files in a specific folder in the Android device's internal storage, and I change only the videoname, so I want to load the mp4 file there. Below is the code I wrote.
String url = "/sdcard/Download/VR Video/" + videoName;
videoPlayer.source = VideoSource.Url;
videoPlayer.url = url;
videoPlayer.Prepare();
Comment
Your answer
Follow this Question
Related Questions
Is it possible to access a file from the android Internal storage on to a Unity app during run time? 0 Answers
Video sometimes works and other times does not work on Android. 1 Answer
Scene load before video (Handled Android) 0 Answers
Android FullScreenMovieScalingMode.AspectFill problem 0 Answers
Where should the video file be located when using Handheld.playfullscreenmovie 1 Answer