Usable sliders for time and volume

This commit is contained in:
2021-08-27 19:49:57 +02:00
parent 8896c13442
commit dda239ec34
3 changed files with 37 additions and 11 deletions

View File

@ -287,6 +287,12 @@ namespace unison
await _mpd.MpdSetVolume(value);
}
public async void SetTime(int value)
{
if (!IsBusy)
await _mpd.MpdPlaybackSeek(_mpd.MpdCurrentSong.Id, value);
}
public bool IsPlaying()
{
return _currentStatus?.MpdState == MPDCtrl.Models.Status.MpdPlayState.Play;