Code refactoring for cleaner view model design
This commit is contained in:
1 parent
3398d145ac
commit
85ab39defd
15 files changed
+351
-123
No files matched your search
@@ -93,7 +93,6 @@ namespace Aurora.Design.Views.Songs
|
||||
await _player.LoadMedia(base.Media).ConfigureAwait(true);
|
||||
}
|
||||
|
||||
_player.Play();
|
||||
switch (_player.PlaybackState)
|
||||
{
|
||||
case PlaybackState.Buffering:
|
||||
@@ -106,6 +105,11 @@ namespace Aurora.Design.Views.Songs
|
||||
_player.Pause();
|
||||
break;
|
||||
}
|
||||
case PlaybackState.Stopped:
|
||||
{
|
||||
_player.Play();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user