Refactor Audio Plaback layers for simplification and improved maintenance

This commit is contained in:
daniel-c-harvey
2025-09-13 08:26:12 -04:00
parent 9ac2c9182a
commit 0f0fd828d2
16 changed files with 545 additions and 534 deletions
@@ -1,4 +1,4 @@
using DeepDrftWeb.Client.Services;
using DeepDrftWeb.Client.Services;
using Microsoft.AspNetCore.Components;
using MudBlazor;
@@ -7,10 +7,11 @@ namespace DeepDrftWeb.Client.Controls.AudioPlayerBar;
public partial class AudioPlayerBar : ComponentBase
{
[CascadingParameter] public required IPlayerService PlayerService { get; set; }
[Parameter] public bool ShowLoadProgress { get; set; } = true;
private bool _isMinimized = true;
private bool IsLoaded => PlayerService.IsLoaded;
private bool IsLoading => PlayerService.IsLoading;
private bool IsPlaying => PlayerService.IsPlaying;
private bool IsPaused => PlayerService.IsPaused;
private double CurrentTime => PlayerService.CurrentTime;