Ejemplo n.º 1
0
 /// <summary>
 /// Pause the current song, if it is playing. Does nothing if it is not.
 /// </summary>
 public void Pause()
 {
     if (isPlaying)
     {
         lastMusicPosition = currentSong.CurrentPosition;
         currentSong.Pause();
     }
 }
Ejemplo n.º 2
0
 public void Pause()
 {
     if (checkInit())
     {
         if (isVideo)
         {
             _video.Pause();
         }
         else
         {
             _audio.Pause();
         }
     }
 }