public void uruchom() { timer1.Start(); // włączanie wideo if (status.poziom % 4 != 3) { if (kontrCale.get_isAvailable("play")) { kontrCale.play(); } if (kontrNogi.get_isAvailable("play")) { kontrNogi.play(); } } }
private void play() { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols; if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPaused) // Paused { controls.play(); } }
public void playMedia() { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols; // Check first to be sure the operation is valid. if (controls.get_isAvailable("play")) { controls.play(); } }
public void playMedia(double tick) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols; // Check first to be sure the operation is valid. controls.currentPosition = tick; if (controls.get_isAvailable("play")) { controls.play(); } }
private void Principal_MouseEnter(object sender, EventArgs e) { //cuando se abre el form los dos videos se ponen en marcha try { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)PlayerPeli.Ctlcontrols; WMPLib.IWMPControls3 controls2 = (WMPLib.IWMPControls3)PlayerSerie.Ctlcontrols; controls.play(); controls2.play(); lblVideoPeli.Visible = false; lblVideoSerie.Visible = false; } catch (Exception) { } }
public void film() { int p = status.poziom; startButton.Enabled = false; vCale.settings.setMode("loop", false); vCale.URL = status.zFilmu1[p]; //vNogi.URL = status.zFilmuStopy; //vNogi.Ctlcontrols.stop(); vNogi.settings.volume = 0; kontrCale = (WMPLib.IWMPControls3)vCale.Ctlcontrols; kontrNogi = (WMPLib.IWMPControls3)vNogi.Ctlcontrols; licznik = 0; czas = 0; iKroki = 0; licznikZP = 0; czytaniec = false; koniec = false; if (status.poziom % 4 == 0) { // muzyka progl = 200; } lpoprawne = 0; // liczba poprawnych odpowiedzi lniepoprawne = 0; // liczba niepoprawnych odpowiedzi sCzasReakcji = 0; // suma czasów reakcji w decysekundach this.pbG.Image = global::WindowsFormsApplication1.Properties.Resources.gora; this.pbD.Image = global::WindowsFormsApplication1.Properties.Resources.dol; this.pbP.Image = global::WindowsFormsApplication1.Properties.Resources.prawo_z; this.pbL.Image = global::WindowsFormsApplication1.Properties.Resources.lewo; this.pbGL.Image = global::WindowsFormsApplication1.Properties.Resources.x; this.pbDL.Image = global::WindowsFormsApplication1.Properties.Resources.t; this.pbDP.Image = global::WindowsFormsApplication1.Properties.Resources.k; this.pbGP.Image = global::WindowsFormsApplication1.Properties.Resources.o; kontrCale.play(); //vCale.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(vCale_PlayStateChange); }
public void Pause(double _opacity) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)MediaPlayer1.Ctlcontrols; if (controls.get_isAvailable("pause")) { controls.pause(); isPause = true; } else { if (isPause) { isPause = false; this.Opacity = _opacity; controls.play(); } } controls = null; }