Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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?