/// <summary> /// Pauses the player. /// </summary> /// <remarks> /// The player must be in the <see cref="PlayerState.Playing"/> state. /// It has no effect if the player is already in the <see cref="PlayerState.Paused"/> state. /// </remarks> /// <exception cref="ObjectDisposedException">The player has already been disposed of.</exception> /// <exception cref="InvalidOperationException">The player is not in the valid state.</exception> /// <seealso cref="Start"/> /// <since_tizen> 3 </since_tizen> public virtual void Pause() { if (State == PlayerState.Paused) { Log.Warn(PlayerLog.Tag, "pause state already"); return; } ValidatePlayerState(PlayerState.Playing); NativePlayer.Pause(Handle).ThrowIfFailed(this, "Failed to pause the player"); }
public void Pause() { nativePlayer.Pause(); model.IsPlaying = false; }