private void _elementPlay() { try { PlayerElement.Play(); ElementState = PlayerState.Playing; } catch (Exception e) { ElementState = PlayerState.Stopped; } }
public bool PlayContent(string path) { if (!IsVisible) { Show(); } try { PlayerElement.Source = new System.Uri(path); PlayerElement.Play(); ElementState = PlayerState.Playing; } catch (Exception e) { Debug.Print(e.Message); return(false); } return(true); }
public void PlayContent() { PlayerElement.Play(); }
private void BufferEnd(object sender, RoutedEventArgs e) { PlayerElement.Play(); }