How to Play MJP Files in C# WinForm by using Vlc.DotNet? -
how play mjp files in c# using vlc.dotnet ? here code-
vlccontrol player = new vlccontrol(); panel1.controls.add(player); player.backcolor = system.drawing.color.aqua; player.imemode = system.windows.forms.imemode.nocontrol; player.location = new system.drawing.point(0, 0); player.name = "test"; player.rate = 0.0f; player.size = new system.drawing.size(1024, 768); player.play(new fileinfo(@"e:\sample\2.mjp"));
try this. works me:
private void play() { if (vlcvideo.isplaying) { vlcvideo.stop(); } string path = @"e:\sample\2.mjp"; locationmedia media = new locationmedia(path); vlcvideo.media = media; vlcvideo.play(); }
Comments
Post a Comment