- Home /
Where should the video file be located when using Handheld.playfullscreenmovie
Hi There,
I was just reading through the documentation about handheld.playfullscreenmovie and it states that the video file should be placed separate from the build on the target device.
Using that command you need to point to the video file.
So if I create a folder on the root directory of the device called "StreamingAssets" and place the file in there it should load right?
Answer by HarshadK · Jun 30, 2014 at 11:56 AM
If you read the documentation for Handheld.PlayFullScreenMovie it states that:
You will have to create a folder named StreamingAssets inside your Unity project (inside your Assets folder). Store your movies inside that folder.
Yea, I have read that.
Do they mean on my PC before I build or after on the device?
I don't have a "unity project" on my device I just have the installer and the App.
And when I setup a Unity3d project I have a strea$$anonymous$$g assets folder with examples in. so why would they tell me to "create" one?
Regards, $$anonymous$$orph
You create the folder before building your unity project inside your asset folder on your PC itself.
Then you call that video in your code in your Unity project.
If you already have a strea$$anonymous$$g assets folder it is because you are using an example project in which the folder is already created.
But if you start a new blank project without anything in it then there will be no strea$$anonymous$$g assets folder in it. In this case you need to create that folder. That's why it is written in the documentation since it assumes that you are working with a blank project and not an example.
N.B.: Please don't post comment as answer. I've converted your answer to comment this time for you but be careful from next time. :-)
Sorry about the answer thing, wasn't paying attention.
I understand all that stuff you mentioned in your post, have read the documentation. I trying to get 7 movies into my app but can't place the last three. so I have been experimenting with the positions of the movies in the folder structure.
Thank you for your answer.