I have a UIView which contains an AVPlayer to show a video. When changing orientation, I need to change the size and location of the video.
Any one searching for Xamarin Version as i was searching
don't add the AVPlayerLayer as sublayer but set the layer to Avplayer Layer
[Export("layerClass")]
public static Class LayerClass()
{
return new Class(typeof(AVPlayerLayer));
}
The following line set the layer
(this.Layer as AVPlayerLayer).Player = _player; // Acplayer