Skip to content

Commit f7660a4

Browse files
CopilotTapanila
andcommitted
Add media volume and mute status to interactive mode status display for consistency
Co-authored-by: Tapanila <1529210+Tapanila@users.noreply.github.com>
1 parent aa5e8d6 commit f7660a4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SharpCaster.Console/Controllers/MediaController.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,17 @@ await AnsiConsole.Status().StartAsync($"{(newMediaMuteState ? "Muting" : "Unmuti
415415
statusTable.AddRow("[cyan]Progress[/]", $"[white]{progress:F1}%[/]");
416416
}
417417

418+
// Display media volume and mute status
419+
if (status.Volume != null)
420+
{
421+
statusTable.AddRow("[cyan]Media Volume[/]", $"[white]{status.Volume.Level:P0}[/]");
422+
statusTable.AddRow("[cyan]Media Muted[/]", status.Volume.Muted == true ? "[red]Yes[/]" : "[green]No[/]");
423+
}
424+
else
425+
{
426+
statusTable.AddRow("[cyan]Media Volume[/]", "[dim]Not available[/]");
427+
}
428+
418429
AnsiConsole.Write(statusTable);
419430
}
420431
else

0 commit comments

Comments
 (0)