예제 #1
0
 public PlayerPage()
 {
     InitializeComponent();
     MediaElem.Stop();
     File.Delete(@"F:\PlayDemo.mp3");
     CreateFileMP3();
     MediaElem.Source = new Uri(@"F:\PlayDemo.mp3", UriKind.Relative);
 }
예제 #2
0
 void PlayCurrent()
 {
     if (voicesIndex == voices.Count)
     {
         return;
     }
     MediaElem.Source = new Uri(voices[voicesIndex]);
     MediaElem.Volume = 1;
     MediaElem.Stop();
     MediaElem.Play();
 }
예제 #3
0
 private void StopMP3_Click(object sender, RoutedEventArgs e)
 {
     MediaElem.Stop();
     PauseMP3.Visibility = Visibility.Collapsed;
     PlayMP3.Visibility  = Visibility.Visible;
 }
예제 #4
0
 private void StopPlay_Click(object sender, RoutedEventArgs e)
 {
     MediaElem.Stop();
 }