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