Search Unity

Question Loading and playing video from persistent data with quest 2

Discussion in 'Audio & Video' started by ThomasCanalCentraleNantes, Jul 26, 2022.

  1. ThomasCanalCentraleNantes

    ThomasCanalCentraleNantes

    Joined:
    Sep 27, 2021
    Posts:
    10
    Hello,

    My current project needs playing some 360° videos. As my apk can't be >2Gb I'm now trying to load these videos from persistent data. I edited script and AndroidManifest.xml to have permission to read external data which seems to work (oculus ask for the permission before launching the app) but the video still won't load.
    Yet the path I use is the right one and video is here.

    Do someone have an idea of what I did wrong ?
    Thanks.
     
  2. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    Can you share what the path looks like? I found out that on Android, if you add file:// it doesn't work. If it is your case, maybe remove it.
     
  3. ThomasCanalCentraleNantes

    ThomasCanalCentraleNantes

    Joined:
    Sep 27, 2021
    Posts:
    10
    Hello, I tried with and without the android prefix
    there is the path : /storage/emulated/0/android/data/com...../files/video.mp4