Problem with iPhoneUtils.PlayMovie

Hey folks,

I’m trying to use iPhoneUtils.PlayMovie to play an MP4 on the iPad but it doesn’t seem to be working for me. I added the videos to a folder called “StreamingAssets” at the same level as the “Assets” folder as the documentation suggested.

I see the iPad bar (with time, battery charge, et cetera) briefly appear and then disappear. Has anyone else experienced this? I’m guessing I’m not using the correct location of the movies somehow. Here’s the code I’m using:

iPhoneUtils.PlayMovie(“sample.mp4”, Color.white, iPhoneMovieControlMode.Full);

“sample.mp4” is in the “StreamingAssets” folder.

Thanks,
Jared

Hi,
are you placing “StreamingAssets” folder inside “Assets” or next to it?

I had the “StreamingAssets” folder next to the “Assets” folder (not inside of it). Is that correct?

Yeah that’s a typo in the Unity Docs.

Place it within the Assets folder.