• 周三. 4 月 22nd, 2026

物嫩软件资讯网

软件资讯来物嫩

在C#应用程序中嵌入暴风影音播放器

admin@wunen

4 月 30, 2025

先去下载一个 暴风影音2007  然后坐下冲杯咖啡,

慢慢来

在C#应用程序中嵌入暴风影音播放器


步骤1、建立新项目

步骤2、在项目中导入暴风影音中的mps.dll,(“Com组件”中名为“StormPlayer Object”)工具箱里就出现了名为“StormPlayer Object”的组件,直接拖到窗体上就可以用了。

步骤3、

设置窗体FormBorderStyle为None;

设置axStormPlayer1.controlBarVisible=0;

设置axStormPlayer1.infoBarVisible=0;

设置axStormPlayer1.titleVisible=0;

设置axStormPlayer1.URL=”E:\\电影1.rmvb”;

设置axStormPlayer1.autoplay=1;

步骤4、OK,F5~!完成。

—————————————————————————————————

axStormPlayer1主要属性:

URL:这个是播放文件的路径;

autoplay:0和1,是否自动播放;

controlBarVisible:0和1,是否显示控制栏;

enableFullScreen:0和1,是否允许全屏播放;

infoBarVisible:0和1,是否显示剪辑信息栏;

titleVisible:0和1,是否显示标题栏;

titleImage:标题栏显示的图片;

titleText:标题栏显示的文字;

volume:音量大小;

axStormPlayer1主要方法:

play():开始播放;

pause():暂停播放;

stop();停止播放;

转载于:https://www.cnblogs.com/guoguo521/archive/2011/03/15/guoguo521.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注