12-14-2019 12:24 AM
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.
On top of that when I plug in the Micro USB stick in my phone I am able to see it mounted in the path storage/4E43-F552/{contents}, but I still can’t figure out the equivalent of that path in the headset. The Video Players which are displaying the path of the video are not running from the headset even from the AppStarter apk I sideloaded.
The way I am running Videos from storage outside the app now:
VideoPlayer videoPlayer = sphere.AddComponent<VideoPlayer>();
videoPlayer.url = "/sdcard/Movies/VIDEO_0116.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!