Consolidate play/pause icon logic into PlaybackIcons mapper and PlayStateIcon component
Add Disabled parameter to PlayStateIcon; forward to MudIconButton; pass Disabled="!IsLoaded" from PlayerControls to match Stop button parity.
This commit is contained in:
@@ -17,8 +17,6 @@ public partial class AudioPlayerBar : ComponentBase, IAsyncDisposable
|
||||
private bool IsLoading => PlayerService?.IsLoading ?? false;
|
||||
private bool IsStreaming => PlayerService?.CanStartStreaming ?? false;
|
||||
private bool IsStreamingMode => PlayerService?.IsStreamingMode ?? false;
|
||||
private bool IsPlaying => PlayerService?.IsPlaying ?? false;
|
||||
private bool IsPaused => PlayerService?.IsPaused ?? false;
|
||||
private double? Duration => PlayerService?.Duration;
|
||||
private double Volume => PlayerService?.Volume ?? 0;
|
||||
private double LoadProgress => PlayerService?.LoadProgress ?? 0;
|
||||
|
||||
Reference in New Issue
Block a user