Problem with StreamingAssets and Android

Hi there,

We’ve been following the instructions to “manually” build the apk in Eclipse (by copying the contents of Temp/StagingArea and so) and everything is working fine, except for the videos we have under StreamingAssets.

When building the apk directly via Unity evrything is ok, but when building the apk from within Eclipse, the video just don’t show (we get a black screen as if the video was not there). It’s an entry video that we play upon app startup, and it seems to be correctly imported in Unity, as we are able to preview it with the editor.

Any hints?

Actually videos that run in the editor don’t tell you anything about mobile usability.
Videos for mobiles are not converted or touches by unity (and must not be!), because the formats used on mobile are not supported by unity at all.

The important place to test if the video is correct is the devices movie player (be it iOS or Android), if it works there the movie is fine, otherwise its out

The movie is fine, for it just plays perfectly on the Android device (an HTC Desire) when building the apk from Unity.

The problem comes when we manually build the final apk from Eclipse (as explained in Unity’s Android documentation)

I’m answering myself, just in case it helps anyone…

After having a closer look at the generated “StagingArea” folder, I noticed the videos belonging to StreamingAsset were being stored in a folder named “raw” that my ant build was not considering. So it was just that…we know directly copy the “raw” contents direclty into the “assets” folder and now everything works fine.

Btw, we finally decided to no longer rely on the StagingArea contents, but directly on the generated .apk (which we unzip to extract everything we need via an ant unzip task).

It hepls A LOT! Thanks!