C# MediaPlayer的详细用法

来源:互联网 发布:嵌入式linux系统开发 编辑:程序博客网 时间:2024/06/10 12:46

1、相关说明:

http://blog.csdn.net/hutao1101175783/article/details/9340699

2、屏蔽双击最大化的方式为:

axWindowsMediaPlayer1.MouseDownEvent += new _WMPOCXEvents_MouseDownEventHandler(axWindowsMediaPlayer1_MouseDownEvent);

        void axWindowsMediaPlayer1_MouseDownEvent(object sender, _WMPOCXEvents_MouseDownEvent e)
        {
            if (this.axWindowsMediaPlayer1.fullScreen == true) this.axWindowsMediaPlayer1.fullScreen = false;
        }

3、右键播放器时不显示相关菜单

axWindowsMediaPlayer1.enableContextMenu = false;

4、当出现播放报错时,不会弹出框

axWindowsMediaPlayer1.settings.enableErrorDialogs = true;


原创粉丝点击