Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

www.progress not working

Discussion in 'iOS and tvOS' started by cms, Apr 30, 2014.

  1. cms

    cms

    Joined:
    Sep 19, 2011
    Posts:
    43
    Hello,

    www.progress is not working when I download a video from a server and I am using any iOS device. It always returns 0.

    If we move the video to another server, it works. Besides, and strangely, it works in the unity Editor in all cases.

    I suppose there is a difference between the two servers, in their settings or something. We check the size of the video to be read and seems to be ok.

    Any help will be appreciated or at least any hint ..

    thanks in advance
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    we use [NSURLResponse expectedContentLength] to calculate progress.
    So please check that your server fill "Content-Length" response header correctly.
     
  3. Rbhaniwal

    Rbhaniwal

    Joined:
    Jan 23, 2015
    Posts:
    33
    @Alexey
    I do not know much about server. I have an AssetBundle(asset.unity3d) placed on my server.
    Can you please explain me how can i add "Content-Length" in response header on server.
    Thanks in advance.