日期:2014-05-17  浏览次数:21043 次

winform 中如何实现视频播放功能
在winform中,如何实现视频文件的播放,请高手发下代码,或发我邮箱
cvily1@sina.com

------解决方案--------------------
用Window media Play 组件
------解决方案--------------------
C# code
可以使用realplayer,安装暴风影音之类的软件后在添加com组件里可以看到

this.axRealAudio1.SetControls("ImageWindow");
this.axRealAudio1.Source = fileName;
this.axRealAudio1.SetLoop(true);
this.axRealAudio1.SetFullScreen();
this.axRealAudio1.SetWantErrors(true);
this.axRealAudio1.AutoStart = true;

------解决方案--------------------
工具箱->添加选项卡->选择项->com组件页->我这里可以选择RealPlayer G2 Control


这样你的组件面板里就有了一个realplayer组件,你把他拖到form上就可以使用了