public void IsPausedTest() { player = instance.CreatePlayer(BaseTestFilePath + "n900_extremely_short.avi"); player.Play(); player.Pause(); Assert.IsTrue(player.IsPaused); }
public void Pause() { //EndInit(); if (myVlcMediaPlayer != null) { myVlcMediaPlayer.Pause(); } }
public void Pause() { // if player exists, pause it if (_mediaPlayer != null) { _mediaPlayer.Pause(); } }
/// <summary> /// Pause media. /// </summary> public void Pause() { if (VlcMediaPlayer == null) { return; } VlcMediaPlayer.Pause(); }
/// <summary> /// Pause media. /// </summary> public void Pause() { if (VlcMediaPlayer == null) { throw new InvalidOperationException("VlcMediaPlayer doesn't have initialize."); } VlcMediaPlayer.Pause(); }
public bool Pause() { if (_vlcMediaPlayer.IsPausable() && _vlcMediaPlayer.IsPlaying()) { _vlcMediaPlayer.Pause(); return(true); } return(false); }
/// <summary> /// Pauses/Unpauses the current media /// </summary> public void Pause() { if (Player.State == MediaStates.Paused) { Player.Play(); } else { Player.Pause(); } }
public void Pause() { EndInit(); myVlcMediaPlayer.Pause(); }
/// <summary> /// Pause media. /// </summary> public void Pause() { ThrowIfNotInitialize(); VlcMediaPlayer.Pause(); }
public void Pause() { myVlcMediaPlayer?.Pause(); }
private void Pauseb_Click(object sender, EventArgs e) { player.Pause(); }
public static Task PauseAsync(this VlcMediaPlayer player, CancellationToken cancellationToken = default) => Task.Run(() => player.Pause(), cancellationToken);