Exemplo n.º 1
0
 /// <summary>
 /// Pause/play currently loaded audio stream if the
 /// StreamingPlaylist property is true.
 /// </summary>
 public void PausePlay()
 {
     if (StreamingPlaylist)
     {
         _mediaPlayer.PausePlayAudio();
     }
 }
Exemplo n.º 2
0
        public void PausePlay()
        {
            A.CallTo(() => _mediaPlayer.Finished).Returns(true);

            _audioPlaylist.StartPlaylistPlayback();
            _audioPlaylist.PausePlay();

            _audioPlaylist.StopPlaylistPlayback();

            A.CallTo(() => _mediaPlayer.PausePlayAudio()).MustHaveHappened();
        }