I think i've got simultaneous playback working but it is hard to test
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user