C# 代码 高分!!! 下面是一段代码 主要实现的功能是播放影音文件 哪位能给出详细的解析! 每

来源:百度知道 编辑:UC知道 时间:2024/05/21 08:25:13

先拖4个暴风影音的DLL进来
然后点击播放状态改变事件
当视频1在播放的时候.视频2,3,4停止
其他如法炮制
然后台代码:

namespace WindowsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}

private void axStormPlayer1_OnPlayStatusChange(object sender, AxMPSLib._IKureePlayerEvents_OnPlayStatusChangeEvent e)
{
this.axStormPlayer2.stop();
this.axStormPlayer3.stop();
this.axStormPlayer4.stop();
}

private void axStormPlayer2_OnPlayStatusChange(object sender, AxMPSLib._IKureePlayerEvents_OnPlayStatusChangeEvent e)
{
this.axStormPlayer1.stop();
this.axStormPlayer3.stop();
this.axStormPlayer4.stop();
}

private void axStormPlayer3_OnPlayStatusChange(object sender, AxMPSLib._IKureePlayerEvents_OnPlayStatusChangeEvent e)
{
this.axStormPlayer1.stop();
this.axStormPlayer2.stop();
this.axStormPlayer4.stop();
}