- Home /
FullScreenMovieScalingMode.AspectFit not working on iOS and Android
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) 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.
Your answer
Follow this Question
Related Questions
Play video to chromecast 1 Answer
Handheld.PlayFullScreenMovie() works on Android but not iOS? 2 Answers
Knowing the position 1 Answer
Best Stereoscopic video encoding for Cardboard Android/iOS 0 Answers
handheld.playfullscreen 1 Answer