/// <summary> /// Provides the implementation for the Stop Media Command. /// </summary> /// <returns>True if the command was successful.</returns> private bool CommandStopMedia() { if (State.IsSeekable == false) { return(false); } MediaCore.ResetPlaybackPosition(); SeekMedia(new SeekOperation(TimeSpan.MinValue, SeekMode.Stop), CancellationToken.None); foreach (var renderer in MediaCore.Renderers.Values) { renderer.OnStop(); } State.MediaState = MediaPlaybackState.Stop; return(true); }