I’m developing a Unity app for an Oculus GO Headset. It’s written in C#. I have a Micro USB stick for the headset and I am able to see its contents and play them in Moon Player VR from
OculusTV > Settings.apk (Downloaded from here)(It’s essentially the Android settings menu) > Storage.
I am also able to open it with JS USB OTG apk I sideloaded.
Now, as for the app: I got it to READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE. But the amount of videos I am able to store solely on the headset is only 32GB.
I’d like to display from my app, the same permissions dialogue JS USB OTG does for reading USB storage.
And to be able to play videos from the USB from the code with my logic on top.
A Video Player I used to play a video from the USB Stick displaying the path of the video as content://com.android.externalstorage.documents/document/4E43-F552%3Alake.mp4.
The way I am running Videos from storage outside the app now:
VideoPlayer videoPlayer = sphere.AddComponent<VideoPlayer>();
videoPlayer.url = "/sdcard/Movies/lake.mp4";
videoPlayer.Play();
The current permissions in the Android Manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Any help would be greatly appreciated!