Skip to content Skip to sidebar Skip to footer

Retrieving And Playing A Video File Stored Locally On An Android Vr Headset (oculus Quest)

I am in the midst of making some prototypes that require me to play large video files from a unity application (10gb+). These are 360 videos that will be played in a hospital envir

Solution 1:

Having your Videos in StreamingAssets won't work for certain file sizes on Android. So what I do with my Oculus Go MediaPlayer is to put all Videos into a folder on my Headset and then load them with an absolute path. In Unity you can fetch the android rootpath like this:

rootPath = Application.persistentDataPath.Substring(0, Application.persistentDataPath.IndexOf("Android", StringComparison.Ordinal));

And from there on just add the path of your own created folder, for example like this:

stringpath = Path.Combine(Path.Combine(rootPath, "ExampleFolder/ExampleSubdirectory"), FileName);

Post a Comment for "Retrieving And Playing A Video File Stored Locally On An Android Vr Headset (oculus Quest)"