Search Unity

Video Loading .mp4 from external folder outside "Assets".

Discussion in 'Audio & Video' started by eden2000, Sep 13, 2018.

  1. eden2000


    Sep 13, 2018
    I'm making an application for MacOs and Windows, which is a simple video archive containing 180 videos (.mp4).
    The problem is that I'll have to distribute the app in an USB flash drive and my space is kinda limited. To solve that I've tried to have a folder in the same path as the app's .exe that both versions could access.
    I've successfully loaded my video files with Resources.Load() and got my VideoPlayer functions ready. But with that method there are no external files to access and both versions are very large duo to videos being "embedded". Later I was able to load my files from a url but now all my functions are useless. While loading from url I cannot access video informations such as ".time", ".frame" and ".clip.length", all very important to my video player for scrubing through the video and displaying current/total time.
    I've been searching and trying to find a solution for about a week now and fell like I've lost the battle.
    Can any one shed a light upon this problem? Thank you, guys.
  2. patrick_scheper


    Mar 18, 2015
    I've come across the same problem. When you load the files via a URL, it doesn't seem to cache the information. .time, .frame, .frameCount, are all 0 and the clip isn't even set.

    It seems as if the VideoPlayer is half finished which is very sad to see. Does someone know a solution?