private void MediaElement_PositionChanged(MediaElementKit.MediaElementPro sender, TimeSpan position) { if (sender.NaturalDuration != null && sender.NaturalDuration.HasTimeSpan) { Debug.WriteLine(position + "\t\t\t" + sender.NaturalDuration.TimeSpan); } else { Debug.WriteLine(position); } }
private void MediaElement_CurrentStateChanged(MediaElementKit.MediaElementPro sender, MediaElementKit.PlayerState state) { Debug.WriteLine(state); }