2b42e01cd0
Queue owns ordered tracks, current index, skip-fwd/back, and auto-advance via the player's TrackEnded hook; binds through Attach (no ctor growth, no service-locator). Player-bar skip controls; empty-queue play unchanged. Adds QueueService unit tests.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
@namespace DeepDrftPublic.Client.Controls.AudioPlayerBar
|
|
@using DeepDrftPublic.Client.Controls
|
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
|
|
@if (!Fixed)
|
|
{
|
|
<MudIconButton Icon="@Icons.Material.Filled.SkipPrevious"
|
|
Color="Color.Primary"
|
|
Size="Size.Large"
|
|
OnClick="@SkipPrevious"
|
|
Disabled="!HasPrevious"/>
|
|
}
|
|
<PlayStateIcon Size="Size.Large"
|
|
Color="Color.Primary"
|
|
Disabled="!CanPlay"
|
|
OnToggle="@TogglePlayPause"/>
|
|
@if (!Fixed)
|
|
{
|
|
<MudIconButton Icon="@Icons.Material.Filled.SkipNext"
|
|
Color="Color.Primary"
|
|
Size="Size.Large"
|
|
OnClick="@SkipNext"
|
|
Disabled="!HasNext"/>
|
|
<MudIconButton Icon="@Icons.Material.Filled.Stop"
|
|
Color="Color.Primary"
|
|
Size="Size.Large"
|
|
OnClick="@Stop"
|
|
Disabled="!IsLoaded"/>
|
|
}
|
|
</MudStack>
|