private void MarkVideoRange(string inOut) { try { if (inOut == "In") { SelectionStart = _mediaElement.GetCurrentTime(); } else if (inOut == "Out") { SelectionEnd = _mediaElement.GetCurrentTime(); } } catch { } }
/// <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(); }