using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ICSSoft.Frame.APP { public partial class FormICSMedia : Form { public FormICSMedia(string fileName) { InitializeComponent(); this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height); this.WindowState = FormWindowState.Maximized; if (!string.IsNullOrEmpty(fileName)) { axWindowsMediaPlayer1.windowlessVideo = false; //设为false后双击屏幕可以全屏 //axWindowsMediaPlayer.fullScreen = true; //设播放器全屏播放 axWindowsMediaPlayer1.URL = fileName; //axWindowsMediaPlayer.Ctlcontrols.play(); //播放 //axWindowsMediaPlayer.Ctlcontrols.stop(); //停止 //axWindowsMediaPlayer.Ctlcontrols.pause(); //暂停 } } } }