Search code examples
c#.netaxwindowsmediaplayer

Stretch video of AxWindowsMediaPlayer without maintaining aspect ration in C#


Using the AxWindowsMediaPlayer I need to stretch a video to take up the entire screen. The issue with stretchToFit = true, is that stretchToFit maintains the aspect ratio of the video, creating blackbars if the video or monitor is not of the same ratio. I do not want these black bars. I do not want to maintain the aspect ratio when I stretch the video.

I have been looking for an answer to this problem for a long time and have read countless questions posed by others. As far as I can tell, no one has any solution.

*I am posting this question despite there being an exact question already posted since the other question was posted a year ago with no answers.


Solution

  • WMP doesn't allow stretching of the video without maintaining the aspect ratio.