I have to embed a video from my resources in a UIView.
So in first I add my video to my resources folder and put his build action to "content".
My video is in MP4 format.
Then I created this func which is call in ViewDidLoad.
string fileName = "Resources/Movies/menu.mp4";
string locallUrl = Path.Combine(NSBundle.MainBundle.BundlePath, fileName);
NSUrl url = NSUrl.FromFilename("menu.mp4"); _player = new MPMoviePlayerController(url); _player.View.Frame = VideoView.Bounds; VideoView.AddSubview(_player.View); _player.ControlStyle = MPMovieControlStyle.None; _player.PrepareToPlay(); }`
And then I called _player.Play() in ViewDidAppear.
But nothing happen.
I think i missed something but I don't know what.
Thank's in advance,