video in visual loop

0

Hi, I'm doing a project in visual studio and I want to embed a video and play it again and again.

I have added a WindowsMedia Player component and this is the code that controls it.

 axWindowsMediaPlayer1.URL = Application.StartupPath + "/video.mp4";
 axWindowsMediaPlayer1.Ctlcontrols.play(); 

But I do not know how to make it play in a loop.

    
asked by Sergio Carvajal Alonso 23.01.2017 в 20:45
source

1 answer

0

I answer myself in case someone can help.

The code has stayed like this:

 axWindowsMediaPlayer1.URL = Application.StartupPath + "/video.mp4";
 axWindowsMediaPlayer1.settings.setMode("loop", true);
 axWindowsMediaPlayer1.Ctlcontrols.play();
    
answered by 24.01.2017 в 09:48