Example #1
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AxPlayer));
     this.axPlayer1 = new AxAPlayer3Lib.AxPlayer();
     ((System.ComponentModel.ISupportInitialize)(this.axPlayer1)).BeginInit();
     this.SuspendLayout();
     //
     // axPlayer1
     //
     this.axPlayer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.axPlayer1.Enabled  = true;
     this.axPlayer1.Location = new System.Drawing.Point(0, 0);
     this.axPlayer1.Name     = "axPlayer1";
     this.axPlayer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPlayer1.OcxState")));
     this.axPlayer1.Size     = new System.Drawing.Size(312, 239);
     this.axPlayer1.TabIndex = 0;
     //
     // AxPlayer
     //
     this.Controls.Add(this.axPlayer1);
     this.Name = "AxPlayer";
     this.Size = new System.Drawing.Size(312, 239);
     ((System.ComponentModel.ISupportInitialize)(this.axPlayer1)).EndInit();
     this.ResumeLayout(false);
 }
Example #2
0
 public APlayer(AxAPlayer3Lib.AxPlayer control)
 {
     this.player = control;
     player.SetConfig(2, System.Windows.Forms.Application.StartupPath + "//codecs");
     player.OnStateChanged += Player_OnStateChanged;
     player.OnMessage      += Player_OnMessage;
 }