예제 #1
0
 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);
     }
 }
예제 #2
0
 private void MediaElement_CurrentStateChanged(MediaElementKit.MediaElementPro sender, MediaElementKit.PlayerState state)
 {
     Debug.WriteLine(state);
 }