/// <summary> /// Performs the actions that this command implements. /// </summary> internal override void ExecuteInternal() { var m = Manager.MediaElement; m.Clock.Reset(); var pause = new PauseCommand(Manager); pause.ExecuteInternal(); var seek = new SeekCommand(Manager, TimeSpan.Zero); seek.ExecuteInternal(); foreach (var renderer in m.Renderers.Values) renderer.Stop(); m.MediaState = CoreMediaState.Stop; }
/// <summary> /// Performs the actions that this command implements. /// </summary> internal override void ExecuteInternal() { var m = Manager.MediaCore; m.Clock.Reset(); m.MediaState = MediaEngineState.Stop; var seek = new SeekCommand(Manager, TimeSpan.Zero); seek.ExecuteInternal(); foreach (var renderer in m.Renderers.Values) { renderer.Stop(); } }
/// <summary> /// Performs the actions that this command implements. /// </summary> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> internal override async Task ExecuteInternal() { var m = Manager.MediaCore; m.Clock.Reset(); m.State.UpdateMediaState(PlaybackStatus.Manual); var seek = new SeekCommand(Manager, TimeSpan.Zero); await seek.ExecuteInternal(); m.State.UpdateMediaState(PlaybackStatus.Stop, m.WallClock); foreach (var renderer in m.Renderers.Values) { renderer.Stop(); } }
/// <summary> /// Performs the actions that this command implements. /// </summary> internal override void ExecuteInternal() { var m = Manager.MediaElement; m.Clock.Reset(); var pause = new PauseCommand(this.Manager); pause.ExecuteInternal(); var seek = new SeekCommand(this.Manager, TimeSpan.Zero); seek.ExecuteInternal(); foreach (var renderer in m.Renderers.Values) { renderer.Stop(); } m.MediaState = System.Windows.Controls.MediaState.Stop; }