Hello,
I am using the Handheld class to play videos on iOS and Android. The videos have different resolutions and I want to scale them until one side fits the screen while keeping their aspect ratio. I am using the FullScreenMovieScalingMode parameter and setting it to AspectFit (see the [Unity Scripting Reference][1]) but smaller videos are not being scaled up but rather still dispalyed in their original size. Is this a bug or am I doing something wrong?
There is very little relevant code but I'm pasting it anyways just to be thorough:
private FullScreenMovieControlMode controlMode = FullScreenMovieControlMode.Full;
private FullScreenMovieScalingMode scaling = FullScreenMovieScalingMode.AspectFit;
void PlayMovie(string url, Color bgColor){
Handheld.PlayFullScreenMovie(url, bgColor, controlMode , scaling);
}
On iOS, the video player at least has a button to let the user scale the video manually, but on Android there is no such button and anyways I would like to open the video in the intended size initially.
I am currently using Unity 4.6.2. Hope somebody can help me even if it is just by confirming, that this currently does not work.
[1]: http://docs.unity3d.com/ScriptReference/FullScreenMovieScalingMode.html
↧