Added volume control. Updated styling.

This commit is contained in:
2026-08-13 00:29:35 -04:00
parent 321db65154
commit c8ce4ca7f0
9 changed files with 118 additions and 4 deletions

View File

@@ -35,6 +35,8 @@ public class SessionRestorer(
private async Task RestoreAudioPlayerAsync()
{
AudioPlayerState audioPlayerState = sessionService.Session.Player;
audioPlayer.Volume = audioPlayerState.Volume;
audioPlayer.IsMuted = audioPlayerState.IsMuted;
if (string.IsNullOrWhiteSpace(audioPlayerState.PlaylistSongUID))
return;

View File

@@ -34,6 +34,8 @@ public class SessionTracker(
audioPlayerState.Position = audioPlayer.Position;
audioPlayerState.PlaybackState = GetSemanticPlaybackState();
audioPlayerState.Volume = audioPlayer.Volume;
audioPlayerState.IsMuted = audioPlayer.IsMuted;
}
private AudioPlaybackState GetSemanticPlaybackState()