


String filename = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(().FullName), "ocean.mp4") Private void btnPlay_Click(object sender, EventArgs e) Private void Form1_Load(object sender, EventArgs e)

mp4 file (ex: ocean.mp4) to the folder that your.

Currently I am receiving an C00D1179 error while the aforementioned notification doesn't appear anymore. That notification was not coming from VS 2019 but from the player itself.Ģ. When I first tried to see what was going on, I received a notification during the runtime of my app that the file isn't being supported, although insted of showing me the (.mp4) extension, it only showed (,) symbol. At some point, by pressing the play button I was able to hear only audio and no video.Įrrors / Notifications Received. I've checked from the properties that the player is visible and enabled. Although when I am dragging the player in my form, it shows up as it should, but when I am running the application, it becomes blank as it was never being placed there or being dragged / used in my forms. private void button1_Click(object sender, System.EventArgs e)ĪxWindowsMediaPlayer1.URL = "video delphi.mp4" Īctual Result. After that, I drag 'n' dropped it in my form in order to write the following code based on Microsoft Documentation. I installed via the 'COM Components' the Windows Media Player feature, and showed in my Toolbox as it should be (Although the icon doesn't appear next to its title inside the Toolbox). I created a 9-Form application in Visual Studio 2019, and I am trying to play a video file, in one of my forms, stored in the same folder with the executable file (.exe) of my winforms application.
