Example #1
0
 private void MarkVideoRange(string inOut)
 {
     try
     {
         if (inOut == "In")
         {
             SelectionStart = _mediaElement.GetCurrentTime();
         }
         else if (inOut == "Out")
         {
             SelectionEnd = _mediaElement.GetCurrentTime();
         }
     }
     catch { }
 }
Example #2
0
 /// <summary>
 /// Called when the Loaded event happens on the a MediaElement
 /// </summary>
 /// <param name="mediaPlayer">The media player.</param>
 private void MediaElementLoaded(IMediaPlayer mediaPlayer)
 {
     _mediaElement = mediaPlayer;
     SliderValue   = _mediaElement.GetCurrentTime();
 }