Samuel Toh

Samuel Toh

  • NA
  • 106
  • 16.4k

Windows Media Player Audio

Nov 7 2021 10:29 AM

public partial class About : Form
    {
        public About()
        {
            InitializeComponent();
            CollapseMenu();
            axWindowsMediaPlayer1.uiMode = "none";
            axWindowsMediaPlayer1.URL = @"C:Video.mp4";
            axWindowsMediaPlayer1.settings.autoStart = true;
            axWindowsMediaPlayer1.settings.setMode("loop", true);
        }

}

So after I open up my "About" form, the video will start playing with an audio. When I toggle to another form, the audio still plays, how do I get it to stop playing the audio after I toggle to another form?


Answers (8)