/// <summary>
        /// Handles the SeekCompleted event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The event args instance containing event data.</param>
        private void CoreSmoothStreamingMediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
        {
            this.seekCommand.IsSeeking = false;

            // see if should play
            if (this.seekCommand.Play)
            {
                this.Play();
                this.seekCommand.Play = false;
            }

            // see if should seek to a new position
            if (this.seekCommand.Position.HasValue)
            {
                this.Position             = this.seekCommand.Position.Value;
                this.seekCommand.Position = null;
            }

            // see if playback value changed
            if (this.PlaybackRate != this.seekCommand.LastPlaybackRate)
            {
                // store last value
                this.seekCommand.LastPlaybackRate = this.PlaybackRate;
                this.OnPlaybackRateChanged();
            }

            if (this.seekCommand.StartSeekToLive)
            {
                this.StartSeekToLive();
                this.seekCommand.StartSeekToLive = false;
            }
        }
 /// <summary>
 /// Handles the SeekCompleted event of the <see cref="CoreSmoothStreamingMediaElement"/> media element.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event args instance cointaining event data.</param>
 private void MediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     if (this.seekingToLive)
     {
         this.seekingToLive = false;
         this.OnLiveSeekCompleted(e.Success);
     }
 }
 void SmoothStreamingMediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     if (pendingSeek.HasValue)
     {
         base.Position = pendingSeek.Value;
         pendingSeek   = null;
     }
     else
     {
         seekInProgress = false;
     }
 }
 /// <summary>
 /// Handles the SeekCompleted event of the MediaElement. Stop seek animation.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event args instance containing the event data.</param>
 private void MediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     this.OnBufferEnd();
 }
 private void CoreSmoothStreamingMediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     OnSeekCompleted(e.ActualSeekPosition);
     CheckEndOfVideo();
 }
 void SmoothStreamingMediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     if (pendingSeek.HasValue)
     {
         base.Position = pendingSeek.Value;
         pendingSeek = null;
     }
     else
     {
         seekInProgress = false;
     }
 }
        private void MediaElement_SeekCompleted(object sender, SeekCompletedEventArgs e)
        {
            _seekCommand.IsSeeking = false;

            if (_seekCommand.Play)
            {
                Play();
                _seekCommand.Play = false;
            }

            if (_seekCommand.Position.HasValue)
            {
                Position = _seekCommand.Position.Value;
                _seekCommand.Position = null;
            }

            if (_seekCommand.PlaybackRate.HasValue && _seekCommand.PlaybackRate.Value != MediaElement.PlaybackRate)
            {
                PlaybackRate = _seekCommand.PlaybackRate.Value;
            }
            else
            {
                _seekCommand.PlaybackRate = null;
            }

            if (_seekCommand.StartSeekToLive)
            {
                SeekToLive();
                _seekCommand.StartSeekToLive = false;
            }

            SeekCompleted.IfNotNull(i => i(this));
        }
 private void MediaPlugin_SeekCompleted(object sender, SeekCompletedEventArgs e)
 {
     base.IsSeeking = false;
 }