Added volume control. Updated styling.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user