I think i've got simultaneous playback working but it is hard to test

This commit is contained in:
watsonb8
2019-11-09 14:55:09 -05:00
parent 426a368385
commit bbf8f3ae57
6 changed files with 234 additions and 139 deletions

View File

@ -20,7 +20,7 @@ namespace Aurora.Design.Views.Songs
{
_player = PlayerService.Instance;
_songsList = new ObservableCollection<BaseMedia>();
PlayCommand = new Command(OnPlayExecute, CanPlayExecute);
PlayCommand = new Command(OnPlayButtonExecute, CanPlayButtonExecute);
_player.PlaybackStateChanged += OnPlaybackStateChanged;
@ -56,16 +56,16 @@ namespace Aurora.Design.Views.Songs
#endregion Methods
#region Commmands
public override bool CanPreviousExecute()
public override bool CanPreviousButtonExecute()
{
return true;
}
public override void OnPreviousExecute()
public override void OnPreviousButtonExecute()
{
}
public override bool CanPlayExecute()
public override bool CanPlayButtonExecute()
{
switch (_player.PlaybackState)
{
@ -85,7 +85,7 @@ namespace Aurora.Design.Views.Songs
return false;
}
public async override void OnPlayExecute()
public async override void OnPlayButtonExecute()
{
base.Media = _selectedSong;
if (!_player.IsMediaLoaded(base.Media))
@ -109,12 +109,12 @@ namespace Aurora.Design.Views.Songs
}
}
public override bool CanNextExecute()
public override bool CanNextButtonExecute()
{
return true;
}
public override void OnNextExecute()
public override void OnNextButtonExecute()
{
}