You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
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(); //暂停
|
|
}
|
|
}
|
|
}
|
|
}
|