I have a scene with a camera and white background and a gameobject to play a movie using:
Handheld.PlayFullScreenMovie(videoPath, Color.white, FullScreenMovieControlMode.CancelOnInput);
(ive also tried without camera)
However the screen is black, the white movie then slides into view and at the end it slides out exposing the black
On Twitter it was suggested that its the iOS viewController.
Search results so far:
“Black screen for a short while when playing fullscreen movie”
http://forum.unity3d.com/threads/206431-Black-screen-for-a-short-while-when-playing-fullscreen-movie
from 2011
http://forum.unity3d.com/threads/85739-Video-on-iOS-fullscreen-yes-but
Stop sliding transition animation when playing a movie with iOS
response from 2011:
“Ok, At the moment this hasn’t been changed/exposed from the Apple default movieTexture player. i.e. [moviePlayer setFullscreen:YES animated:YES] isn’t actually called any where. It might be possible for you to set non-animated via a custom plugin… Otherwise atm there is nothing out of the box to enable/disable this…”
Hmm.
One of the selling points of Unity Pro is the ability to play video, but there is no mention of this issue in the licence comparison:
“2 Video playback can only occur fullscreen on iOS and Android devices, playback as a texture on a surface is not supported.”
Here
http://docs.unity3d.com/Documentation/Manual/VideoFiles.html
it says:
“As soon as you call Handheld.PlayFullScreenMovie the screen will fade from your current content to the designated background color. It might take some time before the movie is ready to play but in the meantime, the player will continue displaying the background color and may also display a progress indicator to let the user know the movie is loading. When playback finishes, the screen will fade back to your content.”
This from what I can see isn’t what happens on iOS.
Either I’m doing it wrong or something else is wrong
Any thoughts?
Thanks
Chris