Sir i have a use this code like
- private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
- {
- axWindowsMediaPlayer1.URL = @"L:\about.mp4";
- }
But my query is if click in 1 button then
- private void button1_Click(object sender, EventArgs e)
- {
- axWindowsMediaPlayer1.URL = @"E:/Song/Video/1.mp4";
- axWindowsMediaPlayer1.Ctlcontrols.play();
- }
and if click in 2 button then another video is play
- private void button2_Click(object sender, EventArgs e)
- {
- axWindowsMediaPlayer1.URL = @"E:/Song/Video/2.mp4";
- axWindowsMediaPlayer1.Ctlcontrols.play();
- }
but it not work i need help to solve this problem.
Maen BadwanPosted May 17, 2018, 9:41 AM
http://msdn.microsoft.com/en-us/library/dd562692(VS.85).aspx
Alternatively, you can use the .Net player control from LEADTOOLS SDK. This control support playing different video formats, and its based on DirectShow and Media-Foundation technologies.
You can find more information here:
https://www.leadtools.com/help/leadtools/v20/dh/multimedia/to/creating-a-basic-leadtools-directshow-player-application.html