Ejemplo n.º 1
0
        private void motion_player_PlaybackProgress(object sender, PlaybackProgressEventArgs e)
        {
            // Update the slider in the UI thread
            Action<Slider, double> act = new Action<Slider, double>(updateSlider);
            Dispatcher.BeginInvoke(act, play_slider, e.Timestamp);

            showFrameAtTimestamp(e.Timestamp);
        }
Ejemplo n.º 2
0
 protected virtual void OnPlaybackProgress(PlaybackProgressEventArgs e)
 {
     if (PlaybackProgress != null)
     {
         PlaybackProgress(this, e);
     }
 }