Beispiel #1
0
        public async Task <bool> UpdateNowPlayingAsync(Track track, int duration)
        {
            _track    = track;
            _duration = duration;

            if (!_userSettings.Scrobbling)
            {
                return(true);
            }

            return(await _asyncMethodInterceptor.TryMethod(
                       _scrobbler.UpdateNowPlayingAsync(track, duration),
                       false,
                       WebServiceType.LastFm,
                       "UpdateNowPlayingAsync (Track: " + track.Title + " by " + track.Artist.Name + ")"));
        }
 public void Pause()
 {
     _player.Pause();
     _playProgressTracker.Stop();
     _scrobbler.UpdateNowPlayingAsync(_currentTrack, _scrobblingRules.MinimumUpdateNowPlayingDuration);
 }
 public void Pause()
 {
     _scrobbler.UpdateNowPlayingAsync(_currentTrack, _scrobblingRules.MinimumUpdateNowPlayingDuration);
 }