How to play a video using AVPlayerLayer, and AVPlayerViewControler in xamarin iOS?
playerItem = new AVPlayerItem(new NSUrl("https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"));
player = new AVPlayer(playerItem);
AVcontroller.Player = player;
AVcontroller.View.Layer.Frame = this.View.Bounds;
this.View.AddSubview(AVcontroller.View);
//AVcontroller.SetFullscreen(true, true);
AVcontroller.Player.Play();
This is all done in viewDidLoad and its working fine now.
There are two ways to play a video, choose one of them, like the code:
Hope it can help you.