Looking for a component (.NET or COM/ActiveX) that can play AVI files in a WinForms app [closed]

匆匆过客 提交于 2019-12-01 00:43:34

You might try the DirectX SDK from Microsoft for .Net: download

It contains a AudioVideoPlayback namepsace with the Video class that is easy to use in any .Net project. You bind the Video class to a Panel control like this:

Video video;

public Form1(string[] args) {
    InitializeComponent();

    video = new Video(dialog.FileName);
    video.Owner = panel1;
}

The video class contains several methods for playback like Play, Pause, Stop and of course FromFile.

Documentation and examples of using the AudioVideoPlayback namespace in C#:

With these MSDN articles and my sample code above you should be able to display a video and extend your class to play multiple videos in a playlist.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!