Me and anothre dev are currently working on a project where we need a video to play on a mobile device.
We got the video uploaded and on PC it shows us that it downloads the video aswell on the first time we try and acces it. When we tried using it on mobile the only response we got was a short blackscreen followed by nothing. We know that the script works since it has worked before and we didn’t change anything about it but the filename for the video. We tried different video formats and a friend of mine said that it might be a problem with the Unity Meta files(since the code was used in a different Unity project before). Does anyone else have the same problem or is maybe able to help us out with this?
We use Unity 4.6.1f
On mobile the video is played back full screen using mobile APIs. Does the video play back on the device normally outside of Unity? Do you know that Unity finds the movie file when you try to play it?
Hi,
I just had the same issue, the problem was I did not put the “file://” prefix before the path and name. It works on Android without just fine - but on iOS this is required or the player will just show up for a scond and then close.
So a valid call on iOS would lokk like this:
#if UNITY_IOS
Handheld.PlayFullScreenMovie("file://" + Application.persistentDataPath + "/test/big_buck_bunny.mp4");
#endif
Regards,
BPR