예제 #1
0
 private void _elementPlay()
 {
     try {
         PlayerElement.Play();
         ElementState = PlayerState.Playing;
     }
     catch (Exception e) {
         ElementState = PlayerState.Stopped;
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void PlayContent()
 {
     PlayerElement.Play();
 }
예제 #4
0
 private void BufferEnd(object sender, RoutedEventArgs e)
 {
     PlayerElement.Play();
 }