Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

MediaController inside DialogFragment not showing up

Hi, this is my first post on this forum. I have been developing for Android for the last four months and I am relatively new to programming. I am trying to include a media controller for my video view which is inside a dialog fragment but the media controller gets hidden behind the video view. I can see the controller right before the video starts but then it disappears. Any ideas on how to solve this?

mediaController = new MediaController(this.Activity);
            mediaController.SetAnchorView(videoview);
            mediaController.SetMediaPlayer(videoview);
            videoview.SetMediaController(mediaController);
            videoview.SetVideoPath(path);
            videoview.Start();
Sign In or Register to comment.