@namespace DeepDrftPublic.Client.Controls.AudioPlayerBar

<MudStack Row="false" AlignItems="AlignItems.Center" Spacing="1" Class="@Class">
    <MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
        <PlayerControls IsLoaded="IsLoaded"
                        CanPlay="CanPlay"
                        Fixed="Fixed"
                        TogglePlayPause="TogglePlayPause"
                        Stop="Stop"/>
        @if (IsLoading && !IsStreaming)
        {
            <MudProgressCircular Color="Color.Tertiary"
                                 Size="Size.Small"
                                 Max="1D"
                                 Value="@LoadProgress"
                                 Indeterminate="@(LoadProgress == 0)"/>
        }
    </MudStack>
    <TimestampLabel CurrentTime="DisplayTime" Duration="@Duration"/>
</MudStack>
