Added playlist view and initial playlist view logic.

This commit is contained in:
2025-03-10 09:50:05 -04:00
parent 9890236710
commit bd9b30abbd
19 changed files with 619 additions and 20 deletions

View File

@@ -20,6 +20,7 @@ public class AudioPlayer : IAudioPlayer
{
_playlist = value;
NotifyPropertyChanged(nameof(Playlist));
PlaylistChanged?.Invoke(this, new());
}
}
@@ -112,6 +113,7 @@ public class AudioPlayer : IAudioPlayer
protected virtual int PreviousSongSecondsThreshold => 5;
public event EventHandler? PlaylistChanged;
public event EventHandler? PlayingSongChanged;
public event PropertyChangedEventHandler? PropertyChanged;

View File

@@ -24,6 +24,7 @@ public interface IAudioPlayer
Task PreviousAsync();
Task NextAsync();
event EventHandler PlaylistChanged;
event EventHandler PlayingSongChanged;
event PropertyChangedEventHandler PropertyChanged;
}