Play .WMV with C # .Net

Hi, I want to play WMV (or video file) in a C # application ..

I made a software in which, when I click on a file, the File menu opens, then I select a media file, but then when I click on playback, then the file should play.

so please help me ...

and if any dll is required, please tell me ...

early

+3
source share
3 answers

You can use the DirectX AudioVideoPlayback library. This is not the best, but rather simple use:

http://msdn.microsoft.com/en-us/library/bb324497(VS.85).aspx

+2
source

you can use

System.Diagnostics.Process.Start("filename");

.

SoundPlayer, .

System.Media.SoundPlayer player = new System.Media.SoundPlayer("filename");
player.Play();

: , SoundPlayer .

0

on the more complex but powerful side of things, you can place one of the silverlight players in your application.

http://silverlightviewport.codeplex.com/

0
source

Source: https://habr.com/ru/post/1760239/


All Articles