56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
@if (_isMinimized)
|
|
{
|
|
<MudFab Color="Color.Primary"
|
|
StartIcon="@Icons.Material.Filled.ExpandLess"
|
|
Size="Size.Large"
|
|
Class="minimized-dock"
|
|
OnClick="@ToggleMinimized"/>
|
|
}
|
|
else
|
|
{
|
|
<div class="player-dock d-flex flex-column">
|
|
<MudContainer MaxWidth="MaxWidth.Large" Class="player-inner-container">
|
|
<MudPaper Elevation="8" Class="player-surface pa-3">
|
|
|
|
<div class="player-layout">
|
|
<PlayerTransportZone IsPlaying="IsPlaying"
|
|
IsLoaded="IsLoaded"
|
|
IsLoading="IsLoading"
|
|
IsStreaming="IsStreaming"
|
|
LoadProgress="LoadProgress"
|
|
DisplayTime="DisplayTime"
|
|
Duration="Duration"
|
|
TogglePlayPause="@TogglePlayPause"
|
|
Stop="@Stop"
|
|
Class="transport-zone"/>
|
|
|
|
<VolumeControls Volume="@Volume" VolumeChanged="@OnVolumeChange"/>
|
|
|
|
<PlayerSeekZone DisplayTime="DisplayTime"
|
|
Duration="Duration"
|
|
CanSeek="CanSeek"
|
|
OnSeekStart="@OnSeekStart"
|
|
OnSeekEnd="@OnSeekEnd"
|
|
OnSeekChange="@OnSeekChange"
|
|
Class="seek-zone"/>
|
|
</div>
|
|
|
|
@* Minimize / close — positioned absolutely top-right *@
|
|
<PlayerWindowControls OnMinimize="@ToggleMinimized" OnClose="@Close"/>
|
|
</MudPaper>
|
|
</MudContainer>
|
|
|
|
@if (!string.IsNullOrEmpty(ErrorMessage))
|
|
{
|
|
<MudAlert Severity="Severity.Error"
|
|
ShowCloseIcon="true"
|
|
CloseIconClicked="ClearError"
|
|
Class="ma-2">
|
|
@ErrorMessage
|
|
</MudAlert>
|
|
}
|
|
</div>
|
|
|
|
@* Spacer to prevent content overlap *@
|
|
<div class="player-spacer"></div>
|
|
} |