Unable to stream asset bundles from my Apache Server...

Hello There,

I have written a basic script which should stream the assets bundles I have build correctly within the editor. The script uses the WWW class as usual to stream the assets and checks whether if they are loaded or not within the FixedUpdate method. When a particular assetbundle is downloaded completely it instantiates it at a particular position.

I have a apache web server which serves the Web Player’s html and unity file. In addition I have also uploaded my asset bundles to this server. The server is currently protected via username/password combination which I generated from the Apache’s configuration file.

Now the problem is when I try to stream data from my own hard disk my streamer script operates without problems. Assetbundles are loaded correctly given that the urls which start with “file://…” or “localhost/…” do correctly refer to a proper assetbundle file on my file system.

The problem however occurs when it comes to web streaming. If I provide an http link on my web page I get a “Failed to load assetbundle” error whenever I try to access the assetBundle field of the WWW instance(it is null). However WWW’s error field is not set when this problem occurs and also isDone field returns true. So that the only way to catch this error is actually by checking whether the assetBundle field is null or not. And at the first time I try accessing this field the get method(I presume) prints this error saying that it has failed to load the assetbundle.

What may be the problem? Can anyone provide me with an assetbundle link(where a single object is compiled as the mainAsset) which I can test whether if my application would work when I try streaming from other web pages?..

What could be the source of the other problems? Is there any configuration entries I should add to Apache to get it work???

Thanks.

Hi, just bumping this because I have the exact same problem (although I dont know what my server is). It works locally including when run through a webpage. When uploaded to my server WWW.isDone succeeds, the WWW.error is null, but null is returned when trying to extract the assetbundle.

(note: after looking at it a bit longer, I think it might let me open .unity3d files from that location but not .assetbundle files. I will try again tomorrow with unity3d extentions to see if that is the entire problem… still frustrating that there was no www.error)