Forum Discussion

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

Url path to Oculus GO

Building an VR/360 player app where I want the videos to be played from a local map on Oculus Go, having an hard time trying to find the right path. Let¨s say I drop the videos on Oculus Go video map. What would the url for unity video player be?

Thank you

10 Replies

Replies have been turned off for this discussion
  • Same problem here, would really appreciate help with this... Is it possible to just change the path in the Unity video player and if so what is the file path? 

    Thanks!
  • thank you @imperativity, I will give these a try. Just to clarify - in my specific case this is an art installation and the app is not intended for distribution, so I can easily hard code the link and copy manually to each device this will be on. Do you have a tip for how to get this done quickly in the VideoPlayer url field? 

    Much appreciated!
    Ziv
  • @zivschneider I tried this but couldn't get it to work. Can you paste your code? This is the code I am using.  I attached a screenshot of where the file is when I connect the go to my computer

    string fileName = "01-nape-pain.mp4";

    string path = "/mnt/sdcard/myfolder/" + fileName;


    VideoPlayer.source = VideoSource.Url;

    VideoPlayer.url = path;

    VideoPlayer.Pause();






     On my computer if I change the code to use Application.persistentDataPath it works



    string fileName = "01-nape-pain.mp4";

    string path = Application.persistentDataPath + "/" + fileName;


    VideoPlayer.source = VideoSource.Url;

    VideoPlayer.url = path;

    VideoPlayer.Pause();




    That will work in windows, but on the oculus go it wont. But maybe because maybe I put the file in the wrong place? I read that its in the files folder. See screenshot.




  • @zivschneider were you able to try it view the editor? please see screenshot, the string below doesnt work ive tried removing "file://". Actually anything I put there doesnt work. please help me


  • Anonymous's avatar
    Anonymous
    Dear @zivschneider , thanks for the insight! So what exactly did you write into the URL field?
    In your case: /mnt/sdcard/Movies/38MBPS_1.mp4  ?
    And what gameobject did you attach your script to?

    Thanks in advance
    Felix from Berlin

  • lolo2k's avatar
    lolo2k
    Honored Guest
    Hi, im working on exactly this right now. I entered the mnt/sdcard/Movies/xx.mp4 in the video url and loaded the script on my video manager object but it doesn't work. Can some1 please help me?