Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of MPMovieScalingMode in AVPlayer?

With MPMoviePlayerControllers's, scaling a movie is easy with setting MPMovieScalingMode. (like MPMovieScalingModeFill, MPMovieScalingModeAspectFill)

With AVPlayer/AVPlayerLayer I can't seem to find anything like that. Do I have to do this myself? If so, how do I start on this?

like image 599
steipete Avatar asked Sep 01 '11 10:09

steipete


1 Answers

Take a look at videoGravity property in AVPlayerLayer, looks like it is what you need.

like image 109
Vladimir Avatar answered Sep 21 '22 18:09

Vladimir