Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Load video from oculus go file

ubachubach Posts: 1
NerveGear
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 ();

Comments

  • imperativityimperativity Posts: 3,587 Valuable Player
    Hi,

    I don't have any best practices to offer you beyond what is present on the creator's portal here. There should be no breaking difference between Gear VR and Go. It may be a good idea to ask around in android forums for this type of assistance.
Sign In or Register to comment.