I am trying to set the videogravity on an avplayerlayer. When I set the player layer like so:
[(AVPlayerLayer *)[self layer] setVideoGravity:AVLayerVideoGravityResizeAspectFill]
The video looks like it drops on the view (some sort of animation effect). Is there any way to avoid this effect? FYI, I've tried assigning the avplayer to the layer before and after setting the gravity and there is no different. When I don't set gravity, the video appears as I want it to (without any drop on screen animation).