在WinForms应用程序中嵌入视频 [英] Embedding Video in a WinForms app
本文介绍了在WinForms应用程序中嵌入视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要能够使用C#在WinForms应用程序中嵌入和控制AVI文件的播放.视频需要以表格的形式嵌入,而不是在单独的媒体播放器窗口中启动.
I need to be able to embed and control the playback of an AVI file in a WinForms app, using C#. The video needs to be embedded in the form, not launched in a separate media player window.
执行此操作的最佳方法是什么?我发现System.Media命名空间听起来不错,但似乎只对声音有用.
What's the best approach to do this? I found the System.Media namespace, which sounded promising, but it appears that is only useful for sound.
我是否使用DirectX来做到这一点?MCI?还是其他方法?
Do I use DirectX to do this? MCI? Or some other approach?
推荐答案
您可以使用您的Winform中的媒体播放器.这将是一个简单的方法.
You can use Media Player inside your Winform. This would been an easy way to do it.
这篇关于在WinForms应用程序中嵌入视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文