- Home /
How use Streaming Assets and Handheld.PlayFullScreenMovie iOS?
How can I merge this methods to get load a video.mov from streaming assets in iOS
Thanks.
Answer by robertbu · Jun 20, 2013 at 06:14 PM
You just have to add a StreamingAssets folder inside the Assets folder (at the same level as the Resources folder). Drag and drop your video into this folder. Then in a script call:
Handheld.PlayFullScreenMovie ("MyVideo.mp4");
Note that not all resolutions will play on iOS. That is, some videos will import into the folder just fine, and play on the Mac just fine, but will fail to play on iOS. Start with something standard.
What format I need to import the videos, 'cause I tried with that, but doesn't worked, even I tried use the Application.dataPath to get the video. I have this:
if UNITY_IPHONE
if(project.loadVideo)
{
Handheld.PlayFullScreen$$anonymous$$ovie (project.videoURL , Color.black, FullScreen$$anonymous$$ovieControl$$anonymous$$ode.Full);
return;
}
endif
Strea$$anonymous$$gAssets must me named correctly and in the right place. QuickTime movies of a common resolutions run fine. You don't need to specify a path. All you need is the file name, but it must match exactly (including extension) with the file in Strea$$anonymous$$gAssets.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Facebook unity sdk: is it possible to send friend invites/app requests to non app users ? 1 Answer
Best Stereoscopic video encoding for Cardboard Android/iOS 0 Answers
How to tilt the gameobject based of Input.Acceleration? 0 Answers
PlayFullscreenMovie on AppleTV 0 Answers