Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
7 years ago

Load video from oculus go file

Hi
I'm trying to dynamic load one 360 video from a specific folder by videoplayer component file, it works on android device but I couldn't make it work on oculus go

Thanks for your time and response
here the code:

        VideoPlayer vp = gameObject.AddComponent<VideoPlayer>();
        url = "file:///mnt/sdcard/Apregon/VR_Kiosk-Movie.mp4";
        vp.url = url;
        vp.renderMode = VideoRenderMode.MaterialOverride;
        vp.targetMaterialRenderer = GetComponent<Renderer>();
        vp.targetMaterialProperty = "_MainTex";
        vp.Play ();

2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Dear @ubach , did you ever got this working? Did you figure out the correct URL path for oculus go?

    Any help appreciated :smile:
  • Anonymous's avatar
    Anonymous
    I am fairly sure the storage location on the Go is different than normal android devices.  You will most likely have to change your URL to correspond to the storage location of the Go.